Professional Documents
Culture Documents
Batch: MCA/MSC
Q2: The least number which should be added to 2497 so that the sum is exactly divisible by 5, 6, 4
and 3 is:
a) 3
b) 13
c) 23
d) 33
Q3: A number consists of 3 digits whose sum is 10. The middle digit is equal to the sum of the other
two and the number will be increased by 99 if its digits are reversed. The number is:
a) 145
b) 253
c) 370
d) 352
Q4: A motorist travels to a place 150 km away at an average speed of 50 km per hour and returns at
30 km per hour. His average speed for the whole journey in km per hour is
a) 35
b) 37
c) 37.5
d) 40
Q5: A clock is started at noon. By 10 minutes past 5, the hour hand has turned through:
a) 145
b) 150
c) 155
d) 160
Q6: Let N be the greatest number that will divide 1305, 4665 and 6905, leaving the same remainder in
each case. Then sum of the digits in N is:
a) 4
b) 5
c) 6
d) 8
Q7: The sum of the squares of three numbers is 138, while the sum of their products taken two at a
time is 131. Their sum is:
a) 20
b) 30
c) 40
d) None of these
Q8: A family consists of two grandparents, two parents and three grandchildren. The average age of
the grandparents is 67 years, that of the parents is 35 years and that of the grandchildren is 6 years.
What is the average age of the family?
a) 28 4/7 years
b) 31 5/7 years
c) 32 1/7 years
d) none of these
Q9: At what time between 5.30 and 6 will the hands of a clock be at right angles?
a) 43 min. past 5
b) 43 min. past 5
c) 40 min. past 5
d) 45 min. past 5
Q10: Six bells commence tolling together and toll at intervals of 2, 4, 6, 8 10 and 12 seconds
respectively. In 30 minutes, how many times do they toll together?
a) 4
b) 10
c) 15
d) 16
Q11: It is being given that (232 + 1) is completely divisible by a whole number. Which of the
following numbers is completely divisible by this number?
a) (216 + 1)
b) (216 - 1)
c) (7 x 223)
d) (296 + 1)
Q12: The average of 20 numbers is zero. Of them, at the most, how many may be greater than zero?
a) 0
b) 1
c) 10
d) 19
Q14: A, B and C start at the same time in the same direction to run around a circular stadium. A
completes a round in 252 seconds, B in 308 seconds and c in 198 seconds, all starting at the same
point. After what time will they again at the starting point?
a) 26 minutes and 18 seconds
b) 42 minutes and 36 seconds
c) 45 minutes
d) 46 minutes and 12 seconds
Q15: Which one of the following can't be the square of natural number?
a) 30976
b) 75625
c) 28561
d) 143642
e)None of these
Q16: The average weight of A, B and C is 45 kg. If the average weight of A and B be 40 kg and that
of B and C be 43 kg, then the weight of B is:
a) 17kg
b) 20kg
c) 31kg
d) 26kg
------
b) 0
d) error
Q18: main()
{
int a[5] = {2, 3};
printf(\n%d %d %d, a[2], a[3], a[4]);
}
a) garbage value
c) 2 3 3
b) 3 2 2
d) 0 0 0
Q19: main()
{
int i=5;
switch(i)
{
printf(A);
case 0:
case 1: printf(B);
case 2:
default : printf(C);
printf(D);
case 3:
case 4: printf(E);
}
}
a) C
c) CDE
b) CD
d) compilation error
Q20: main()
{
int x=10, y=20, z=5, i;
i = x < y < z;
printf(\n%d, i);
}
a) 0
c) error
b) 1
d) None of the above
b) C++
d) None of the above
b) 1.0
d) None of the above
Q23: main()
{
structemp
{
char name[20];
int age;
floatsal;
};
structemp e = {Tiger};
printf(\n%d %f, e.age, e.sal);
}
a) error
c) 0 0.000000
b) garbage value
d) none of the above
Q24: main()
{
int i=2;
printf(\n%d %d, ++i, ++i);
}
a) 3 4
c) 4 3
b) 4 4
d) output may vary from compiler to compiler
b) j= i++*i++
d) none of these
Q26: In a file contains the line "I am a human\r\n" then on reading this line into the array str
using fgets(). What will str contain?
a) "I am a human\r\n\0"
b) "I am a human\n\0"
c) "I am a human\r\0"
d) "I am a human"
Q28: What is the maximum number of characters that can be held in the string variable
char address[40] ?
a) 38
b) 39
c) 40
d) 41
Q30: Which of the following function is correct that finds the length of a string?
a) intxstrlen(char *s)
{
{
int length=0;
while(*s!='\0')
{ length++; s++; }
return (length);
}
b) int xstrlen(char s)
c) intxstrlen(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);
}
int length=0;
while(*s!='\0')
length++; s++;
return (length);
}