Você está na página 1de 4

Placement Mock Test

1) How many terms are there in 3, 9, 27, 81........531441?

a) 25 b) 12 c) 13 d) 14

2) If the average of four consecutive odd numbers is 12, find the smallest of these numbers?

a) 5 b) 7 c) 9 d) 11

3) If the sum of two numbers is 13 and the sum of their square is 85. Find the numbers?

a) 6 & 7 b) 5 & 8 c) 4 & 9 d) 3 & 10

4) The difference between a two-digit number and the number obtained by interchanging the positions
of its digits is 45. What is the difference between the two digits of that number?

a) 5 b) 7 c) 6 d) None of these

5) A two-digit number is such that the product of the digits is 12. When 9 is subtracted from the
number, the digits are reversed. The number is:

a) 34 b) 62 c) 43 d) 26

6) Find a positive number which when increased by 16 is equal to 80 times the reciprocal of the number

a) 20 b) -4 c) -10 d) 4

7) Sum of 4 children born at interval of 4 years is 36. What is the age of youngest child?

a) 2 years b) 3 years c) 4 years d) 5 years

8) At present father’s age is thrice of son’s age. After 15 years father’s age will be double of son’s age.
What is son’s present age?

a) 16 years b) 15 years c) 12 years d) 10 years

9) Samuel covers the distance from his home to his office at a speed of 25 km/hr and comes back at a
speed of 4 km/hr. He completes the whole journey within 5 hours 48 minutes. Find out the distance
from his home to office:

a) 20 km b) 18 km c) 15 km d) 25 km

10) The ratio of the speed of two trains is 7:8. If the second train covers 400 km in 4 h, find out the
speed of the first train.

a) 69.4 km/hr b) 78.6 km/hr c) 87.5 km/hr d) 40.5 km/hr

11) Two numbers are in the ratio 3 : 5. If their L.C.M. is 75. What is sum of the numbers?

a) 25 b) 45 c) 40 d) 50

12) A boat runs at the speed of 13 km/h in still water. If the speed of the stream is 4 km/h, how much
time will it take to go 68 km downstream? ______________________
13) Find wrong number in series: 34, 7, 37, 14, 36, 28, 43, 56

a) 14 b) 36 c) 28 d) 56

14) Sixteen people are to be seated at two circular tables, one of which seats 10 while the other seats
six. How many different seating arrangements are possible? _______________________

15) How many words can be formed by using the letters from the word “DRIVER” such that all the
vowels are always together? ___________________________

16) When does the following function print “True”?


void main ()
{
int n;
printf (“\n Enter any no:”);
scanf (“%d”, & n);
if (n & & ((n& n-1) = = 0))
printf (“True”);
else
printf (“False”);
}
17) What is the output?
void main ()
{
if ( ! printf (“Hello”));
printf (“Hello”);
else
printf (“world !”);
}

18) What does the following function do?


void main ()
{
int i=0;
while (100 – i++)
printf (“ %d”, i);
}

19) What does the following statements do?


int x=0x1234;
x = x<<8 | x>>8;

20) When will the following code print true?


int main()
{
scanf("%d",&no);
(no&1)?printf("odd"):printf("even");
}

21) What is the output?


a=0?(3>2?23:(2>5?(7<6?34:48):64)):1
printf("%d",a);
22) Predict the output
#include<stdio.h>
int main()
{
int x = 10, y = 100%90, i;
for(i=1; i<10; i++)
if(x != y);
printf("x = %d y = %d\n", x, y);
return 0;
}

23) Predict the output


void main(){
int a=-12;
a=a>>3;
printf("%d",a);
}

24) Predict the output


void main(){
int i=0;
if(i==0){
i=((5,(i=3)),i=1);
printf("%d",i);
}
else
printf("equal");
}

25) Predict the output


#include<stdio.h>
int main()
{
static int i;
for(++i;++i;++i) {
printf(“%d “,i);
if(i==4) break;
}
return 0;
}

26) Suppose n and p are unsigned int variables in a C program. We wish to set p to nC3. If n is large,
which of the following statements is most likely to set p correctly?

a) p = n*(n-1)*(n-2)/6;
b) p = n*(n-1)/2*(n-2)/3;
c) p = n*(n-1)/3*(n-2)/2;
d) p = n*(n-1)*(n-2)/6.0;

27) Predict the output


#include<stdio.h>
int main()
{
float x = 0.1;
if ( x == 0.1 )
printf("IF");
else if (x == 0.1f)
printf("ELSE IF");
else
printf("ELSE");
}

28) Predict the output


#include<stdio.h>
int main()
{
float x = 0.5;
if (x == 0.5)
printf("IF");
else if (x == 0.5f)
printf("ELSE IF");
else
printf("ELSE");
}

29) Predict the output


#include <stdio.h>
int main()
{
char a = 0xfb;
unsigned char b = 0xfb;

printf("a = %c", a);


printf("\nb = %c", b);

if (a == b)
printf("\nSame");
else
printf("\nNot Same");
return 0;
}

30) Predict the output


main()
{
char s[ ]=”man”;
int i;
for(i=0;s[ i ];i++)
printf(“\n%c%c%c%c”,s[ i ],*(s+i),*(i+s),i[s]);
}

Você também pode gostar