A man had Rs 100 in the denominator of Rs 5 coins, Rs 1 coins and Rs 25 paisa coins. If he had a total of 100 coins and at least 1 of each denominator, in how many possible combinations could he have had the money?
A :
5
B :
6
C :
7
D :
8
Answer: A
Q. No. :
2
Question :
Two taps, which can fill a tank in 12 hour and 36 hour, are opened simultaneously. When the tank was supposed to be full, it was found that only (5/6)th of it was full due to leak at the bottom. Find the time in which the remaining part of the tank would be filled (in hours).
A :
2.4
B :
3.6
C :
1.8
D :
1.5
Answer: C
Q. No. :
3
Question :
In a LMA election for the post of president, the winner gets 35 more votes than his nearest rival and 55 more votes than the third candidate. The second runner up and the first runner up got average 75 votes. If there was no invalid vote, then find the total no. of votes cast.
A :
260
B :
290
C :
310
D :
270
Answer: D
Q. No. :
4
Question :
B is 37.5% less efficient than A whereas C is 60% less efficient than B. If A and C together can do a work in 42 days. Find how long will all three together take to complete the same work.
A :
14 days
B :
21 days
C :
28 days
D :
32 days
Answer: C
Q. No. :
5
Question :
In how many ways can seven friends be seated in a row having 35 seats, such that no two friends occupy adjacent seats?
A hash table implementation uses function of (% 7) and linear probing
to resolve collision. What is the ratio of numbers in the following
series with out collision and with collision if 7 buckets are used:
32, 56, 87, 23, 65, 26, 93
A :
2,5
B :
3,4
C :
4,3
D :
5,2
Answer: C
Q. No. :
2
Question :
If one uses straight two-way merge sort algorithm to sort the following elements in ascending order: 20,47,15,8,9,4,40,30,12,17 then the order of those elements after the second pass of the algorithm is
A :
8,9,15,20,47,4,12,17,30,40
B :
8,15,20,47,4,9,30,40,12,17
C :
15,20,47,4,8,9,12,30,40,17
D :
4,8,9,15,20,47,12,17,30,40
Answer: B
Q. No. :
3
Question :
A Priority-Queue is implemented as a Max-Heap. Initially, it has 5
elements. The level-order traversal of the heap is given below: 10,
8,5,3,2 Two new elements 1 and 7 are inserted in the heap in that order.
The level-order traversal of the heap after the insertion of the
elements is :
A :
10,8,7,5,3,2,1
B :
10,8,7,2,3,1,5
C :
10,8,7,1,2,3,5
D :
10,8,7,3,2,1,5
Answer: D
Q. No. :
4
Question :
The following numbers are inserted into an empty
binary search tree in the given order: 10, 1, 3, 5, 15, 12, 16. What is
the height of the binary search tree (the height is the maximum distance
of a leaf node from the root)?
A :
2
B :
3
C :
4
D :
5
Answer: B
Q. No. :
5
Question :
A computer company wants to hire 25 programmers to handle systems programming jobs and 40 programmers for applications programming. Of those hired 10 will be expected to perform jobs of both types. How many programmers must be hired?
A :
65
B :
45
C :
75
D :
55
Answer: D
Q. No. :
6
Question :
What will be the output of the program ?
#include<stdio.h>#include<string.h>int main()
{
int i, n;
char *x="Alice";
n = strlen(x);
*x = x[n];
for(i=0; i<=n; i++)
{
printf("%s ", x);
x++;
}
printf("\n", x);
return0;
}
Divisible by all even number, not divisible by odd number
Answer: C
Q. No. :
8
Question :
Which of the following statements is correct? (i) A static variable may be either an internal type or an external type, depending on the place of declaration. (ii) Internal static variables are those which are declared inside a function. The scope of internal static variables extends upto the end of the function in which they are defined. (iii) The Internal static variables are similar to auto variables, except that they are remain in existence through out the remainder of the program.