|
1. The layer in the OSI model handles terminal emulation a) session b) application c) presentation d) transport Answer : b) application 2. What is the output of the following program? main() { int x=20; int y=10; swap(x,y); printf("%d %d",y,x+2); } swap(int x,int y) { int temp; temp =x; x=y; y=temp; } a) 10,20 b) 20,12 c) 22,10 d)10,22 e)none Answer : d 3. Given that A,B,C,D,E each represent one of the digits between 1 and 9 and that the following multiplication holds: A B C D E X 4 -------------- E D C B A -------------- What digit does E represent ? a) 4 b) 6 c) 8 d) 7 Answer : c 4. Worker W produces n units in 5 hours. Workers V and W, workers independently but at the same time, produce n units in 2 hours. how long would it take V alone to produce n units? a) 1 hr 26 min b) 1 hr 53 min c) 2 hr 30 min d) 3 hr 30 min e) 3 hr 20 min Answer : d 5. What is semaphore? 6. Explain the data struture (code) for the data structures i) Double linklist ii) Minimum spanning tree iii) BFS and DFS iv) AVL tree v) Reverse the linklist 7. What is a deadlock? explain it? 8. if a=2,b=4,c=5 then a+b c ----- - ---- = c a+b a) 1 b) 11/30 c) 0 d) -11/30 e) -1 Answer : b 9. Consider the following program main() { int i=20,*j=&i; f1(j); *j+=10; f2(j); printf("%d and %d",i,*j); } f1(k) int *k; { *k +=15; } f2(x) int *x; { int m=*x,*n=&m; *n += 10; } The values printed by the program will be a) 20 and 55 b) 20 and 45 c) 45 and 45 d) 45 and 55 e) 35 and 35 Answer : c 10. HCL prototyping machine can make 10 copies every 4 seconds. At this rate, How many copies can the machine make in 6 min.? a) 900 b) 600 c) 360 d) 240 e) 150 Answer : a
|