# EMC Placement Paper January 2012

1. In a group of six women, there are four dancers, four vocal musicians, one actress and three violinists. Girija and Vanaja are among the violinists while Jalaja 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 and two of them are also violinists. If Pooja is an actress, who among the following is both a dancer and violinist ?

A) Jalaja
B) Shailaja
C) Tanuja
D) 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) South
(B) North
(C) East
(D) West
(E) None of these

Ans: (B)

3. Manish goes 7 km towards South-East from his house, then he goes 14 km turning to West. After this he goes 7 km towards North West and in the end he goes 9 km towards East. How far is he from his house?

(A) 5 km
(B) 7 km
(C) 2 km
(D) 14 km
(E) 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 was he from his house.

(A) 5 kms
(B) 10 kms
(C) 40 kms
(D) 80 kms
(E) 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. 0
b. 2
c. 4
d. none of the above

Ans: (C)

6.
struct Foo
{
char *pName;
};

main()
{
struct Foo *obj = malloc(sizeof(struct Foo));
clrscr();
printf("%s", obj->pName);
}

b. compile error
c. Name
d. Runtime error

Ans (A)

7.
struct Foo
{
char *pName;
};

main()
{
struct Foo *obj = malloc(sizeof(struct Foo));
clrscr();
obj->pName = malloc(100);

free(obj);
printf("%s", obj->pName);
}

d. None of the above

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

8. The door of Aditya's house faces the east. From the back side of his house, he walks straight 50 metres, then turns to the right and walks 50 metres, then turns towards left and stops after walking 25 metres . Now Aditya is in which direction from the starting point?

(A) South-East
(B) North-East
(C) South- West
(D) North-West
(E) 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) North
(B) South
(C) East
(D) West
(E) None of these

Ans : (A)

10. A clock is so placed that at 12 noon its minute hand points towards north-east. In which direction does its hour hand point at 1.30 p.m?

(A) North
(B) South
(C) East
(D) West
(E) None of these

Ans: (C)