1. Which of the following involves context switch,
(a) system call
(b) privileged instruction
(c) floating point exception
(d) all the above
(e) none of the above
Ans: (a)
(a) system call
(b) privileged instruction
(c) floating point exception
(d) all the above
(e) none of the above
Ans: (a)
2. In OST, terminal emulation is done in
(a) sessions layer
(b) application layer
(c) presentation layer
(d) transport layer
Ans: (b)
(a) sessions layer
(b) application layer
(c) presentation layer
(d) transport layer
Ans: (b)
3. For a 25MHz processor , what is the time taken by the instruction which needs 3
clock cycles,
(a)120 nano secs
(b)120 micro secs
(c)75 nano secs
(d)75 micro secs
Ans: (d)
clock cycles,
(a)120 nano secs
(b)120 micro secs
(c)75 nano secs
(d)75 micro secs
Ans: (d)
4. For 1 MB memory, the number of address lines required,
(a)11
(b)16
(c)22
(d) 24
Ans. (b)
(a)11
(b)16
(c)22
(d) 24
Ans. (b)
5. Semaphore is used for
(a) synchronization
(b) dead-lock avoidence
(c) box
(d) none
Ans. (a)
(a) synchronization
(b) dead-lock avoidence
(c) box
(d) none
Ans. (a)
6. Which holds true for the following statement class c: public A, public B
a) 2 member in class A, B should not have same name
b) 2 member in class A, C should not have same name
c) both
d) none
Ans. (a)
a) 2 member in class A, B should not have same name
b) 2 member in class A, C should not have same name
c) both
d) none
Ans. (a)
7.Preproconia.. does not do which one of the following
(a) macro
(b) conditional compliclation
(c) in type checking
(d) including load file
Ans. (c)
(a) macro
(b) conditional compliclation
(c) in type checking
(d) including load file
Ans. (c)
8. Piggy backing is a technique for
a) Flow control
b) Sequence
c) Acknowledgement
d) retransmission
Ans. (c)
a) Flow control
b) Sequence
c) Acknowledgement
d) retransmission
Ans. (c)
9. Find the output for the following C program
i=20,k=0;
for(j=1;j
{k+=j<10?4:3;
}
printf(“%d”, k);
Ans. k=4
i=20,k=0;
for(j=1;j
{k+=j<10?4:3;
}
printf(“%d”, k);
Ans. k=4
10. Find the output for the following C program
int i =10
main()
{int i =20,n;
for(n=0;n<=i;)
{int i=10;
i++;
}
printf(“%d”, i);
Ans. i=20
int i =10
main()
{int i =20,n;
for(n=0;n<=i;)
{int i=10;
i++;
}
printf(“%d”, i);
Ans. i=20
11. Find the output for the following C program
int x=5;
y= x&y
7.Find the output for the following C program
Y=10;
if( Y++>9 && Y++!=10 && Y++>10)
{printf(“%d”, Y);
else
printf(“%d”, Y);
}
Ans. 13
int x=5;
y= x&y
7.Find the output for the following C program
Y=10;
if( Y++>9 && Y++!=10 && Y++>10)
{printf(“%d”, Y);
else
printf(“%d”, Y);
}
Ans. 13
12. Find the output for the following C program
f=(x>y)?x:y
a) f points to max of x and y
b) f points to min of x and y
c)error
Ans. (a)
f=(x>y)?x:y
a) f points to max of x and y
b) f points to min of x and y
c)error
Ans. (a)
13.What does the hexanumber E78 in radix 7.
(a) 12455
(b) 14153
(c) 14256
(d) 13541
(e) 131112
Ans. (d)
(a) 12455
(b) 14153
(c) 14256
(d) 13541
(e) 131112
Ans. (d)
14. 10 : 4 seconds :: ? : 6 minutes
Ans. 900
Ans. 900
沒有留言:
張貼留言