|
Infosys Placement Paper 5
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
For 1 MB memory no of
address lines required,
a)11
b)16
c)22
d) 24
Ans: 16
Semaphore is used for
a) synchronization
b) dead-lock avoidance
c)box
d) none
Ans : a
Y=10;
if( Y++>9 && Y++!=10 && Y++>10)
printf("........ Y);
else printf("".... )
Ans : 13
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
d) ........
Ans : a
if x is even, then
(x%2)=0
x &1 !=1
x! ( some stuff is there)
a)only two are correct
b)three are correct
Ans : all are correct
Which of the function
operator cannot be over loaded
a) <=
b)?:
c)==
d)*
Ans: b and d
10,20,30,40,50,60 : give the
order when put in a queue and in a stack
Ans : Queue : 10,20,30,40,50,60
stack : 60,50,40,30,20,10
Debugging is the process of
finding
Ans : logical and runtime errors
Trace the error:
void main()
{
int &a;
/* some other stuff here */
}
Ans: syntax error
A problem with a function
named 'myValue' will be given and asked to find the value of main() for an
argument of 150,
Ans : 150
Check
Aptitude Interview Questions
for more Aptitude Questions
Check
Placement Papers for more IT
Companies Paper
|