Vous êtes sur la page 1sur 13

QUANTITATIVE APTITUDE QUESTIONS

1. Find the odd man out. 12, 21, 32, 45, 60, 77 , 95
A. 95 B. 45 C. 32 D. 21
2. The speed of a boat in still water is 11 km/hr. It can go 12 km upstream and return
downstream to the original point in 2 hours 45 minutes. Find the speed of the stream.
A. 3 kmph B. 6 kmph C. 5 kmph D. 10 kmph
3. A man can row 6 km/hr in still water. If the speed of stream is 2km/hr, it takes him 3 hours to
row to a place and back. How far is the place?
A. 8 km B. 10 km C. 4 km D. 1 km
4. A candidate who scores 30% fails by 5 marks, while another candidate who scores 40%
marks get 10 more then minimum pass marks. The minimum marks required to pass are:
A. 45 B. 40 C. 55 D. 50
5. In an examination, a candidate must secure 40% marks to pass. A candidate, who gets 220
marks fails by 20 marks. What are the maximum marks for the examination?
A. 600 B. 450 C. 550 D. 650
6. If 17 labourers can dig a ditch 20 m long in 18 days, working 8 hours a day, how many more
labourers should be engaged to dig a similar ditch 39 m long in 6 days, each labourer working
9 hours a day?
A. 52 B. 72 C. 74 D. 64
7. The sum of the present ages of a father and his son is 60 years. Six years ago, father's age was
five times the age of the son. After 6 years, son's age will be:
A. 12 Years B. 14 Years C. 18 years D. 20 Years
8. One year ago, Promila was four times as old as her daughter Sakshi. Six years hence, Promila’s
age will exceed her daughter’s age by 9 years. The ratio of the present ages of Promila and her
daughter is:
A) 9: 2 B) 11: 3 C) 12: 5 D) 13: 4
9. A man can row 7.5 kmph in still water and he finds that it takes him twice as long to row up
as to row down the river. Find the rate of stream.
A. 10 km/hr B. 2.5 km/hr C. 5 km/hr D. 7.5 km/hr
10. Six bells start ringing together and ring at intervals of 4, 8, 10, 12, 15 and 20 seconds
respectively. How many times will they ring together in 60 minutes?
A. 31 B. 15 C. 16 D. 30
11. What is the smallest number which when diminished by 12, is divisible 8, 12, 22 and 24?
A. 276 B. 274 C. 272 D. 268
12. 9 examiners can examine a certain number of answer books in 12 days by working 5 hours a
day. How many hours in a day should 4 examiners work to examine twice the number of
answer books in 30 days?
A. 9 B. 10 C. 11 D. 12
13. Find the odd man out. 1, 8, 27, 64, 125, 196, 216, 343
A. 64 B. 196 C. 216 D. 1
14. Find the odd man out: 187, 264, 386, 473, 682, 781
A. 386 B. 187 C. 781 D. 682
15. The sum of the ages of a father and son is 45 years. Five years ago the product of their ages
was 4 times the father’s age at that time. The present ages of the father and son, respectively
are,
A. 25 years, 10 years B. 36 years, 9 years
C. 39 years, 5 years D. none of these
16. The volumes of a sphere and a right circular cylinder having the same radius are equal. The
ratio of the diameter of the sphere to the height of the cylinder is
A. 1:2 B. 2:1 C. 2:3 D. 3:2
17. A sphere of radius r has the same volume as that of a cone with a circular base of radius r.
Find the height of the cone.
A. 2r B. r/3 C. 4r D. (4/3)r
18. A student who secures 20% marks in an examination fails by 30 marks. Another student who
secures 32% marks gets 42 marks more than those required to pass. The percentage of marks
required to pass is:
A. 20 B. 25 C. 28 D. 30
19. 8 men can dig a pit in 20 days. If a man works half as much again as a boy, then 4 men and 9
boys can dig a similar pit in :
A. 10 days B. 12 days C. 15 days D. 16 days
20. A car reached Raipur from Sonagarh in 35 min with average speed of 69 km/h. if the average
speed is increased by 36 km/h, how long will it take to cover the same distance?
A. 36 min B. 23 min C. 34 min D. 39 min
21. The average speed of a bus is 55 kmph. How much distance will a car cover in 8 hours if the
average speed of the car is 26% more than the average speed of the bus?
A. 553.5 km B. 553.9 km C. 554.4 km D. 555.4 km
22. A solid consists of a circular cylinder with an exact fitting right circular cone placed on the
top. The height of the cone is h. If the total volume of the solid is three times the volume of
the cone, then the height of the cylinder is:
A. 2 h B. 4 h C. 2h/3 D. 3h/4
23. A, B and C run around a circular track of length 1200 m with respective speeds 9, 18, 27
kmph. If they started at the same time from the same point and run in the same direction.
When will they meet for the first time?
A. 360 sec B. 480 sec C. 240 sec D. None
24. 3 years ago the population of a town was 1,60,000. In the three respective years the
population increased by 4%, 5% and 8% respectively. What is the population of town after 3
years?
A. 1,88,697 B.1,66,733 C. 1,76,736 D. 1,80,766
25. In a certain school, 20% of students are below 8years of age. The number of students above 8
years of age is 2/3of the number of students of 8 years of age which is 48. What is the total
number of students in the school?
A. 72 B. 80 C. 120 D. 100
26. A car reached a certain place ‘Q, from ‘P’ in 35 min with an average speed of 69 kmph. If the
average speed is increased by 36 kmph, then how long will it take to cover the same distance?
A. 25 min B. 23 min C. 27 min D. 29 min
27. N is the smallest number which when added to the 2000 makes the resulting number divisible
by 12, 16, 18, and 21. Then the N is
A. 11 B. 7 C. 9 D. 16
28. Three people A, B, and C run around a circular track of length 400 m starting simultaneously
from the same direction at 5m/sec, 8 m/sec and 3 m/sec respectively. When will they meet for
the first time at the starting point?
A. 450 sec B. 550 sec C. 500 sec D. 400 sec
29. A can run one full round of a circular track in 6 min and B in 15 min. If both A and B start
simultaneously from the same starting point then How many times would they met in the
time B has completed 10 rounds when running in same direction, and In opposite direction?
A. 15, 10 B. 25, 30 C. 25, 35 D. None
30. Pankaj gave 50% of the amount to akash. Akash in return gave two-fifth of the amount to
Venu. After paying a bill of 500 rupees, Venu now have 8000 rupees left with him. Find the
amount hold by Pankaj initially.
A. 41500 B. 42500 C. 43500 D. 44500
PROGRAMMING QUESTIONS

1. To create a linked structure, each element must have one number that is a
A. Reference to the element type B. pointer to NULL
C.Pointer to the element type D. pointer to the head of the list
2. What is the output of the program given below ?
#include<stdio.h>
int main()
{
enum status { pass, fail, atkt};
enum status stud1, stud2, stud3;
stud1 = pass;
stud2 = atkt;
stud3 = fail;
printf("%d, %d, %d\n", stud1, stud2, stud3);
return 0;
}
A. 0,1,2 B. . 1,2,3 C. 0,2,1 D. 1,3,2
3. What will be the output when following code is executed
int main()
{
float f = 10.0;
printf(“\n f=%d”,f);
return 0;
}
A. 20.0 B. 10 C. 0 D. garbage value
4. Is there any difference in the following declarations?
int myfun(int arr[]);
int myfun(arr[20]);
A. Yes B. No
5. Which of the following declares a to be a const pointer to an integer?
A. int const a; B. const int *a; C. int * const a;
D. intconst * a const
6. What will be the output when following code is executed
#include<stdio.h>
void fun(int*, int*);
int main()
{
int i=5, j=2;
fun(&i, &j);
printf("%d, %d", i, j);
return 0;
}
void fun(int *i, int *j)
{
*i = *i**i;
*j = *j**j;
}
A. 5, 2 B. 10, 4 C. 2, 5 D. 25, 4
7. Point out the error in the program
f(int a, int b)
{
int a;
a = 20;
return a;
}
A. Missing parenthesis in return statement
B. The function should be defined as int f(int a, int b)
C. Redeclaration of a
D. None of above
8. Point out the error in the program
#include<stdio.h>
int main()
{
int a=10;
void f();
a = f();
printf("%d\n", a);
return 0;
}
void f()
{
printf("Hi");
}
A. Error: Not allowed assignment
B. Error: Doesn't print anything
C. No error
D. None of above
9. What output is produced by the following code?
int main()
{
char str[] = “basic”;
char *s= str;
printf(“\n%s”,s+++3);
printf(“\t%s”,s);
return 0:
}
A. ic asic B. c basic C. asic sic D. cc
10. Which of the following statements are correct about the function?
long fun(int num)
{
int i;
long f=1;
for(i=1; i<=num; i++)
f = f * i;
return f;
}
A. The function calculates the value of 1 raised to power num.
B. The function calculates the square root of an integer
C. The function calculates the factorial value of an integer
D. None of above
11. How will you print \n on the screen?
A. printf("\n"); B. echo "\\n";
C. printf('\n'); D. printf("\\n");
12. Which of the following function is correct that finds the length of a string?
A.
int xstrlen(char *s)
{
int length=0;
while(*s!='\0')
{ length++; s++; }
return (length);
}
B.
int xstrlen(char s)
{
int length=0;
while(*s!='\0')
length++; s++;
return (length);
}
C.
int xstrlen(char *s)
{
int length=0;
while(*s!='\0')
length++;
return (length);
}
D.
int xstrlen(char *s)
{
int length=0;
while(*s!='\0')
s++;
return (length);
}
13. Consider the following code:
int x[] = {0,1,2,3};
int temp, i=0, j=3;
while (i<j)
{
temp = x[i];
x[i] = x[j];
x[j] = 2*temp;
i++;
j--
}
After this code is executed, the array x stores the following values:
A. {0,1,2,3} B. {0,2,4,6} C. {3,2,1,0} D. {3,2,2,0}
14. #include<stdio.h>
#include<string.h>
int main()
{
char str1[20] = "Hello", str2[20] = " World";
printf("%s\n", strcpy(str2, strcat(str1, str2)));
return 0;
}
A. Hello B. World C. Hello World D. WorldHello
15. What will be the output of the program ?
#include<stdio.h>
#include<string.h>
int main()
{
printf("%d\n", strlen("123456"));
return 0;
}
A. 6 B. 12 C. 7 D. 2
16. What output is produced by the following code?
#include<conio.h>
Void main()
{
char s{}={‘a’,’b’,’c’,’d’,’c’,’\0’};
char*p,*str,?*str1;
` p=&s[3];
str1=s;
print f(“%d”,++*p+++*str1 – 32);
}
A. 166 B. 167 C. 168 D. None of these
17. What will be the output of the program ?
#include<stdio.h>
int main()
{
union var
{
int a, b;
};
union var v;
v.a=10;
v.b=20;
printf("%d\n", v.a);
return 0;
}
A. 10 B. 20 C. 30 D. 0
18. What will be the output of the program ?
#include<stdio.h>
int main()
{
enum days {MON=-1, TUE, WED=6, THU, FRI, SAT};
printf("%d, %d, %d, %d, %d, %d\n", MON, TUE, WED, THU, FRI, SAT);
return 0;
}
A. -1, 0, 1, 2, 3, 4 B. -1, 2, 6, 3, 4, 5
C. -1, 0, 6, 2, 3, 4 D. -1, 0, 6, 7, 8, 9
19. What output is produced by the following code?
#include<stdio.h>
int main()
{
printf(“%d,%d,%d”,sizeof(3.0),sizeof(‘3’),sizeof(3.0f));
return 0;
}
A. 8,1,4 B. 4,1,4 C. 8,2,4 D. 10,2,4
20. What output is produced by the following code?
#include<stdio.h>
void main()
{
static int var = 5;
printf(“%d”,var- -);
if (var)
main();
}
A. 5 5 5 5 5 B. 5 4 3 2 1
C.5 4 3 2 1 0 D. infinite loop.
21. Specify the 2 library functions to dynamically allocate memory?
A. malloc() and memalloc() B. alloc() and memalloc()
C. malloc() and calloc() D. memalloc() and faralloc()
22. What is the output of the following program?
#include<stdio.h>
main()
{
int i = 1;
while(i++<=5);
printf("%d ",i++);
}
A. 4 B. 6 C. 2 6 D. 2 4
23. What is the output of this C code?
int main()
{
enum {ORANGE = 12, MANGO, BANANA = 11, APPLE};
printf("APPLE = %d\n", APPLE);
}
A. APPLE= 11 B. APPLE= 12 C. APPLE= 23 D. APPLE= 0
24. What is the size of an int data type?
A. 4 Bytes B. 8 Bytes C. Depends on the system/compiler
D. Cannot be determined
25. What is the output of this C code
int main()
{
int a = 0, i = 0, b;
for (i = 0;i < 5; i++)
{
a++;
continue;
}
}
A. 2 B. 3 C. 4 D. 5
26. What output is produced by the following code?
#include<stdio.h>
void main()
{
printf (“%x”,-1<<4);
}
A. 0 B. fff0 C. 10 D. ffe0
27. An identifier must begin with a
A. Letter or digit and can contain letters, digits, or underscores
B. Digit and can contain letters, digits, or underscores
C. Letter, digit, or underscore and can contain letters, digits, or underscores
D. Letter or underscore and can contain letters, digits, or underscores
28. calloc() returns a storage that is initialized to.
A. Zero B. Null C. Nothing D. One
29. C preprocessor is conceptually the first step during compilation.
A. true B. false C. Depends on the compiler
D. Depends on the standard
30. Which of the following is not a valid variable name declaration?
A. int _a3; B. int a_3; C. int 3_a; D. int _3a

PROGRAMMING TEST
CIRCULAR PRIME
“Write a program in C to display all circular prime numbers below a given integer. A
circular prime number is a prime number and whose all rotations of digits are
themselves prime.”
For Example :
 197 is a circular prime number because all rotations of 197, 971 and 719 are
prime numbers.
 1931 is a circular prime number because all rotations of 1931, 1193, 3119,
9311 are prime numbers.
Print the circular prime numbers until N
Input:
First line of input contains a single integer N, the upper limit.
Output:
Print all the circular numbers <= N.
Constraints:
 1≤N≤65536
Example:
Sample Input:
Enter a number : 20
Output:
2
3
5
7
11
13
17

Vous aimerez peut-être aussi