You are on page 1of 3

MSC PLACEMENTS 2k12

(Standard Format)

Date: 21-11-2014

1. A motor car starts with the speed of 70 km/hr with its speed increasing every
two hours by 10 kmph. In how many hours will it cover 345 kms?
A) 2 (1/4) hrsB) None of theseC) 4(1/2) hrsD) 4 hrs 5 minE) Can not be
determined
2.It was Sunday on Jan 1, 2006. What was the day of the week Jan 1, 2010?
A) Sunday
C)Friday

B)Saturday
D)Wednesday

3.Of the following two statements, both of which cannot be true, but both can
also be false. Which are these two statements ?
I. All machines make noise
II. Some machines are noisy
III. No machine makes noise
IV. Some machines are not noisy
A) I & II
B)III & IV
C) I & III
D) II & IV
4.Bombay Express Left Delhi from Bombay at 14.30 hrs, travelling at a speed
of 60 kmph and Rajdhani Express left. Delhi for Bombay on the same day at
16.30 hrs, travelling at a speed of 80 kmph. How far away from Delhi will the
two trains meet?
A) 120 km
B) 360 km
C) 480 km
D) 500 km
5.Ramesh and Rahul were making joint-study for their semester examinations
and the lights went off. It was around 10.00 pm . They lighted two uniform
candles of equal length but one thicker than the other. The thick candle is
supposed to last six hours and the thin one two hours less. When they finally
went to sleep, the thick candle was thrice as long as the thin one. Approximately
at what time did they go to sleep?
A) 12.46 am
B) 1:24 am
C) 11.24 pm
D) none of these.
6. Find the number which does not belong in this series 6, 15, 35, 77, 165, 221
A) 35
B)77
C) 165
D) 15
7.If South-East becomes North, North-East becomes West and so on. What will
West become?
A)North-East
B)North-West
C)South-East
D)South-West

8.The minimum number of arithmetic operations required to evaluate the


polynomial P(X) = X5 + 4X3 + 6X + 5 for a given value of X using only one
temporary variable.
A) 6
B) 7
C) 8
D) 9
9.#include<stdio.h>
int main() {
float x = 0.1;
printf("%d %d %d", sizeof(x), sizeof(0.1), sizeof(0.1f));
return 0;
}
10. void main() {
int i =5;
printf(%d,i+++++i);
}
11. Determine if an integer is power of 2 using bitwise operators
12.What is the error in the following declaration
struct outer{
int a;
struct inner{
char c;
};
};
13. struct marks{
int p:3;
int c:3;
int m:2;
};
void main() {
struct marks s={2,-6,5};
printf("%d %d %d",s.p,s.c,s.m);
}
14.What will be output if you will compile and execute the following c code?
void main(){
char *str="c-pointer";
printf("%*.*s",10,7,str);

}
15. What will be output if you will compile and execute the following c code?
void main(){
int a,b;
a=1,3,15;
b=(2,4,6);
clrscr();
printf("%d ",a+b);
getch();
}
(a) 3
(b) 21
(c) 17
(d) 7
(e) Compiler error
16.Find the first repeating element in an array
17. Find nth number in a number system with only 3 and 4
18.Would the following program compile? Explain.
#include<stdio.h>
int main(){
int a=10,*j;
void *k;
j=k=&a;
j++;
k++;
printf("\n%u%u",j,k);
}
19.What is the output of this program?
#include<stdio.h>
void main(){
if(0xA)
if(052)
if('\xeb')
if('\012')
printf(Hello world);
else;
else;
else;
else;
}
20. Check if two nodes are cousins in a binary tree.