# NIIT Technical Aptitude Paper March 2013

Posted on :29-02-2016
NIIT Technologies Placement Paper - March 2013:-

Q1. The ages of A and B are in the ratio 9:4. After 7 years the ratio of their ages will be 5:3. Find B-s present age.

a) 18
b) 8
c) 7
d) 16

ANS: b

Q2. A mixture contains spirit and water in the ratio 5:1. Another mixture contains spirit and water in the ratio 2:1. What is the ratio in which two mixtures are added to get the mixture in the ratio 5:2?

a) 5:2
b) 2:5
c) 2:7
d) 3:2

ANS: b

Q3. A boy has Rs 2. He wins or loses Re 1 at a time. If he wins he gets Re 1 and if he loses the game he loses Re 1. He can loose only 5 times. He is out of the game if he earns Rs 5. Find the number of ways in which this is possible?

ANS: 16

Q4. What will be the output of the following program?

void f(int *p){
static val=100;
val=&p;
}
main(){
int a=10;
printf(%d ,a);
f(&a);
printf(%d ,a);
}

Q5. Size of integer is

a) 2 bytes
b) 4 bytes
c) machine dependant
d) compiler dependent.

Q6. What is the output of the following program?

main()
{
int *s = ;
if(strcmp(s,NULL)== 0)
printf(
s is null)p
else
printf(
s is not null);
}

Register