Tuesday, December 25, 2007

HCL Interview Questions

Interview Questions
*******************

1. Family backgroud.

2. Do you have any other offer in hand ?

3. Suppose there are a few systems all connected through some technique and
are independent of each other. Each system identifies the other(s) by
it's name but actually the name has to be mapped with some logical number.
Devise a mechanism to implement it.

4. Suppose there is round robin scheduling in some multi-processing environ-
ment. There are only three processes in the system. First one is to be
alloted 25 % of the total CPU time, second one is to be given 50 % of CPU
time and third one is to be given rest of the CPU time in that order.
Their is no other facility available at OS level. How will you accomplish
it ?

5. What is a B-tree ?

6. What are signals ?

7. What are interrupts ?

8. What is a tree ? Design a data-structure for tree. How would you creat the
first child of any node ? Write code for it ?

9. What are device files ?

10. What are major numbers and minor numbers ?

Adjit went through a job interview and said:

NOTE : Please check answers once again.

section 1.

1.which of the following involves context switch,
a) system call b)priviliged instruction
c)floating poitnt exception
d)all the above
e)none of the above
ans: a
2.In OSI, terminal emulation is done in
a)semion b)appl.. c)presenta… d)transport
ans: b
3……. 25MHz processor , what is the time taken by the
instruction which needs 3 clock cycles,
a)120 nano secs b)120 micro secs
c)75 nano secs d)75 micro secs

4. For 1 MBmemory no of address lines required,
a)11 b)16 c)22 d) 24
ans: 16
5. Semafore is used for
a) synchronization b0 dead-lock avoidence
c)box d) none
ans : a
6. class c: public A, public B
a) 2 member in class A,B shouldnot have same name
b) 2 member in class A,C " " " "
c) both
d) none
ans : a
7. question related to java
8. OLE is used in
a)inter connection in unix
b)interconnection in WINDOWS
c)interconnection in WINDOWS NT
9.No given in HEX —- write it in OCTAL
10.macros and function are related in what aspect?
a)recursion b)varying no of arguments
c)hypochecking d)type declaration
11.preproconia.. does not do one of the following
a)macro …… b)conditional compliclation
c)in type checking d)including load file
ans: c

SECTION B
__________

1.enum day = { jan = 1 ,feb=4, april, may}
what is the value of may?
a)4 b)5 c)6 d)11
e)none of the above
2.main
{
int x,j,k;
j=k=6;x=2; ans x=1
x=j*k;
printf("%d", x);
3. fn f(x)

{ if(x9 && Y++!=10 && Y++>10)
printf("…….. Y);
else printf(""…. )
ans : 13
8. f=(x>y)?x:y
a) f points to max of x and y
b) f points to min of x and y
c)error
d) ……..
ans : a

9. if x is even, then
(x%2)=0
x &1 !=1
x! ( some stuff is there)
a)only two are correct
b) three are correct
c), d) ….

ans : all are correct
10. which of the function operator cannot be over loaded
a) 10

Ajit went through a job interview and said:

1. Which of the following involves context switch,

(a) system call
(b) priviliged instruction
(c) floating poitnt exception
(d) all the above
(e) none of the above

Ans: (a)

2. In OST, terminal emulation is done in

(a) sessions layer
(b) application layer
(c) presentation layer
(d) transport layer

Ans: (b)

3. For a 25MHz processor , what is the time taken by the instruction which needs 3 clock cycles,

(a)120 nano secs
(b)120 micro secs
(c)75 nano secs
(d)75 micro secs

4. For 1 MB memory, the number of address lines required,

(a)11
(b)16
(c)22
(d) 24

Ans. (b)

5. Semaphore is used for

(a) synchronization
(b) dead-lock avoidence
(c) box
(d) none

Ans. (a)

6. Which holds true for the following statement

class c: public A, public B

a) 2 member in class A, B should not have same name
b) 2 member in class A, C should not have same name
c) both
d) none

Ans. (a)

7. Question related to java

8. OLE is used in

a) inter connection in unix
b) interconnection in WINDOWS
c) interconnection in WINDOWS NT

9. Convert a given HEX number to OCTAL

10. Macros and function are related in what aspect?

(a)recursion
(b)varying no of arguments
(c)hypochecking
(d)type declaration

11.Preproconia.. does not do which one of the following

(a) macro
(b) conditional compliclation
(c) in type checking
(d) including load file

Ans. (c)

12. Piggy backing is a technique for

a) Flow control
b) Sequence
c) Acknowledgement
d) retransmition

Ans. (c)

13. In signed magnitude notation what is the minimum value that can be represented with 8 bits

(a) -128
(b) -255
(c) -127
(d) 0

14. There is an employer table with key fields as employer number data
in every n'th row are needed for a simple following queries will get required results.

(a) select A employee number from employee A , where exists from employee B where A employee no. >= B
employee having (count(*) mod n)=0

(b) select employee number from employe A, employe B where A employe number>=B employ number group by employee number having(count(*) mod n=0 )
(c) both (a) &a