You are on page 1of 5

1.

What is Ann's relation with her husband's mother's only daughter-in-law's sis
ter's husband?
Ans: Brother-in-law
2. Some guy holding a glass of wine in his hand looking around in the room says,
"This is same as it was four years ago, how old are your two kids now?" Other g
uy says "Three now, Pam had one more in the meanwhile." Pam says, "If you multip
ly their ages, answer is 96 and if you add the ages of first two kids, addition
is same as our house number." The first guy says, "You are very smart but that d
oesn't tell me their ages." Pam says, "It's very simple, just think." What are t
he ages of three kids?
Ans: 8, 6, 2
3. A motor cyclist participant of a race says "We drove with the speed of 10 mil
es an hour one way, but while returning because of less traffic we drove on the
same route with 15 miles per hour." What was their average speed in the whole jo
urney?
Ans: 12 miles per hour
4. Given following sequence, find the next term in the series:
(i) 0, 2, 4, 6, 8, 12, 12, 20, 16, ____
Ans: 12
(ii) 3, 6, 13, 26, 33, 66, ___
Ans: 53
5. Three customers want haircut and a shave. In a saloon, two barbers operate at
same speed. They take quarter of an hour for the haircut and 5 mins for the sha
ve. How quickly can they finish the haircut and shave of these three customers?
Ans: 30 minutes
6. A shopkeeper likes to arrange and rearrange his collection of stamps. He arra
nges them sometimes in pair, sometimes in bundle of three, sometimes in bundle o
f fours, occasionally in bundle of fives and sixes. Every time he's left with on
e stamp in hand after arrangement in bundles. But if he arranges in the bundle o
f seven, he's not left with any stamp. How many stamps does a shopkeeper have?
Ans: 301
7. Three different types of objects in a bucket. How many times does one need to
select object from the bucket to get atleast 3 objects of the same type?
Ans: 7
8.
main()
{
char *a = "Hello ";
char *b = "World";
clrscr();
printf("%s", strcat(a,b));
}

a.
b.
c.
d.

Hello
Hello World
HelloWorld
None of the above

Ans: (B)
9.
main()
{
char *a = "Hello ";
char *b = "World";
clrscr();
printf("%s", strcpy(a,b));
}
a. Hello
b. Hello World
c. HelloWorld
d. None of the above
Ans: (D) World, copies World on a, overwrites Hello in a.
10. Find the output for the following C program
int i =10
main()
{int i =20,n;
for(n=0;n<=i;)
{int i=10;
i++;
}
printf("%d", i);
Ans. i=20
-------------------------------------------------------------------------------------------------------------------------------------------------------------------1. In a group of six women, there are four dancers, four vocal musicians, one ac
tress and three violinists. Girija and Vanaja are among the violinists while Jal
aja and Shailaja do not know how to play on the violin. Shailaja and Tanuja are
among the dancers. Jalaja, Vanaja, Shailaja and Tanuja are all vocal musicians a
nd two of them are also violinists. If Pooja is an actress, who among the follow
ing is both a dancer and violinist ?
A)
B)
C)
D)

Jalaja
Shailaja
Tanuja
Pooja

Ans: (C)
2. Salay walked 10 m towards West from his house. Then he walked 5 m turning to
his left. After this he walked 10 m turning to his left and in the end he walked
10 m turning to his left. In what direction is he now from his starting point?

(A)
(B)
(C)
(D)
(E)

South
North
East
West
None of these

Ans: (B)
3. Manish goes 7 km towards South-East from his house, then he goes 14 km turnin
g to West. After this he goes 7 km towards North West and in the end he goes 9 k
m towards East. How far is he from his house?
(A)
(B)
(C)
(D)
(E)

5 km
7 km
2 km
14 km
None of these

Ans : (A)
4. Laxman went 15 kms from my house, then turned left and walked 20 kms. He then
turned east and walked 25 kms and finally turning left covered 20kms. How far w
as he from his house.
(A)
(B)
(C)
(D)
(E)

5 kms
10 kms
40 kms
80 kms
None of these

Ans : (D)
5.
const int perplexed = 2;
#define perplexed 3
main()
{
#ifdef perplexed
#undef perplexed
#define perplexed 4
#endif
printf("%d",perplexed);
}
a.
b.
c.
d.

0
2
4
none of the above

Ans: (C)
6.
struct Foo
{
char *pName;
};
main()

{
struct Foo *obj = malloc(sizeof(struct Foo));
clrscr();
strcpy(obj->pName,"Your Name");
printf("%s", obj->pName);
}
a.
b.
c.
d.

Your Name
compile error
Name
Runtime error

Ans (A)
7.
struct Foo
{
char *pName;
char *pAddress;
};
main()
{
struct Foo *obj = malloc(sizeof(struct Foo));
clrscr();
obj->pName = malloc(100);
obj->pAddress = malloc(100);
strcpy(obj->pName,"Your Name");
strcpy(obj->pAddress, "Your Address");
free(obj);
printf("%s", obj->pName);
printf("%s", obj->pAddress);
}
a.
b.
c.
d.

Your
Your
Your
None

Name, Your Address


Address, Your Address
Name Your Name
of the above

Ans: d) printd Nothing, as after free(obj), no memory is there containing


obj->pName & pbj->pAddress
8. The door of Aditya's house faces the east. From the back side of his house, h
e walks straight 50 metres, then turns to the right and walks 50 metres, then tu
rns towards left and stops after walking 25 metres . Now Aditya is in which dire
ction from the starting point?
(A)
(B)
(C)
(D)
(E)

South-East
North-East
South- West
North-West
None of these

Ans : (D)
9. P, Q, R and S are playing a game of carrom. P, R, and S, Q are partners. S is
to the right of R who is facing west. Then Q is facing ?

(A)
(B)
(C)
(D)
(E)

North
South
East
West
None of these

Ans : (A)
10. A clock is so placed that at 12 noon its minute hand points towards north-ea
st. In which direction does its hour hand point at 1.30 p.m?
(A)
(B)
(C)
(D)
(E)

North
South
East
West
None of these

Ans: (C)

You might also like