Home Company Questions HCL Interview Questions HCL Interview Questions - 4

Login Form




HCL Interview Questions - 4 Print E-mail

Reasoning Questions

Six knights - P,Q,R,S,T and U - assemble for a long journey in two travelling parties. For security, each travelling party consists of at least two knights. The two parties travel by separate routes, northern and southern. After one month, the routes of the northern and southern groups converge for a brief time and at that point the knights can, if they wish, rearrange their travelling parties before continuing, again in two parties along separate northern and southern routes. Throughout the entire trip, the composition of travelling parties must be in accord with the following conditions

P and R are deadly enemies and, although they may meet briefly, can never travel together.
p must travel in the same party with s
Q cann't travel by the southern route
U cann't change routes

 

1) If one of the two parties of knights consists of P and U and two other knights and travels by the southern route, the other members of this party besides P and U must be

a) Q and S
b) Q and T
c) R and S
d) R and T
e) S and T

Answer : e

 

2) If each of the two parties of knights consists of exactly three members, which of the following is not a possible travelling party and route?

a) P,S,U by the northern route
b) P,S,T by the northern route

c) P,S,T by the southern route
d) P,S,U by the southern route
e) Q,R,T by the southern route

Answer : b

 

3) If one of the two parties of knights consists of U and two other knights and travels by the northern route, the other members of this party besides U must be

a) P and S              b) P and T               c) Q and R                 d) Q and T               e) R and T

Answer : c

 

4) If each of the two parties of knights consists of exactly three members of different parties, and R travels by the northern route, then T must travel by the

a) southern route with P and S
b) southern route with Q and R
c) southern route with R and U
d) northern route with Q and R
e) northern route with R and U

Answer : a

 

5) If, when the two parties of knights encounter one another after a month, exactly one knight changes from one travelling party to the other travelling party, that knight must be

a) P             b) Q              c) R                d) S              e) T

Answer : e


 

6. What is fragmentation? How to overcome?

 

7. What is structure and union in c? write the code and explain how they are storing in the memory?

 

8. Difference between malloc and calloc?

 

9. What are the IPC Mechanism available? Illustrate with example

 

10. What is bit slice processor?