296
HCL Sample Test Paper 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,

HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

Embed Size (px)

Citation preview

Page 1: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

  HCL

Sample Test Paper

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)

Page 2: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (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

Page 3: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

(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

Page 4: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

HELLO SOFT

 

1. What is diners phylosophers algorithm. 2. What is atomicity.Explain 3. Give an example of source- level debugger in unix/linx. 4. What is Pre-emptive multitasking. 5. Do not remember this one.

DataStructures: (ONly 5 Questions)

1. Where will the parameters be stored when a function is called in a program. 2. What is recursion?What are its disadvantages. 3. Which one is the best and efficient sort?

Networking:(Only 5 Questions)

1. ASN.1 belongs to which layer. 2. Give an example of popular Transport Layer Protocol 3. What is the netmask of Class B IP address? 4.  Explain CSMA/CD. 5. Given a size from 0-7 what would be the least window size.

C Language (Total 13 Questions)

1. main() {  printf("%d",printf("HelloSoft"));} Output?

2. case 1: case 2:  typedef Struct { typedef Struct {int a; char p;char b; int q;int d; char k;char e; int l;  }A; }A;Assuming 'packing' is not enabled, which case will give an error of Sizeof(A) less.

3.  main()  { int i=3;printf("%d %d %d",i++,i,++i);}

4. main() { int i=10;int j,k=5;int a[10];for(j=0;j<10;j++)a[j]=(i+k)+(i*k);} Optimize the above code.

5. Write In Order Tree Traversal Pseudo-code. 6.  main()

  { int *p=0x100; int *q=0x100;

Page 5: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

 int k=p*q; printf("%x\n",k); } Output ?

7. Char* foo(Str...) { char str[4]; strcpy(str,"HelloSoft"); return str;} Output?

8. int a[10][20][30][40];int *p  How to access an element of a using p?

9. main(){int i=10;if(i>20)if(i==10) print("Hi"); elseprintf("Bye"); } Output ?

10. main(){float f;int i;  //something like this not remember these 4 questionsexactlyf=(float *)malloc(sizeof((float *)*4)); }Some Question was asked  not remenber .

  HCL

 HCL TECHNOLOGIES

Q)Piggy backing is a technique for

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

ans: c 

Q)The layer in the OST model handles terminal emulation

a) session b) application c) presentation d) transport

ans: b application

Q)In signed magnitude notation what is the minimum value that

can be represented with 8 bits

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

Q)There is an employer table with key feilds as employer no.

data in every n'th row are needed for a simple following queries

will get required results.

a) select A employe no. from employe A , where exists from employe B

where A employe no. >= B employe having (count(*) mod n)=0

b) select employe no. from employe A, employe B where

Page 6: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

A employe no.>=B employ no.grouply employe no.having(count(*) mod n=0 )

c) both a& b

d) none of the above

Q)Type duplicates of a row in a table customer with non uniform

key feild customer no. you can see

a) delete from costomer where customer no. exists

( select distinct customer no. from customer having count )

b) delete customer a where customer no. in

b rowid

c) delete customer a where custermor no. in

( select customer no. from customer a, customer b )

d) none of the above

Q)long int size

a) 4 bytes b) 2 bytes c) compiler dependent d) 8 bytes

ans: compiler dependent

Q)x=2,y=6,z=6

x=y==z;

printf(%d",x) ?

Q}what does the hexanumber E78 in radix 7.

(a) 12455 (b) 14153 (c) 14256 (d) 13541 (e) 131112 

ans: (d)

Q) Q is not equal to zero and k = (Q x n - s)/2 find n?

(a) (2 x k + s)/Q (b) (2 x s x k)/Q (c) (2 x k - s)/Q

(d) (2 x k + s x Q)/Q (e) (k + s)/Q

(from GRE book page no:411)

data:

A causes B or C, but not both

F occurs only if B occurs

D occurs if B or C occurs

E occurs only if C occurs

J occurs only if E or F occurs

D causes G,H or both

H occurs if E occurs

G occurs if F occurs

NOTE: check following answers.

Page 7: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

Q). If A occurs which of the following must occurs

I. F & G

II. E and H

III. D

(a) I only (b) II only (c) III only (d) I,II, & III

(e) I & II (or) II & III but not both 

ans: (e)

Q). If B occurs which must occur

(a) D (b) D and G (c) G and H (d) F and G (e) J 

ans: (a)

Q). If J occurs which must have occured

(a) E (b) either B or C (c) both E & F (d) B (e) both B & C 

ans: (b)

Q). which may occurs as a result of cause not mentioned

(1) D (2) A (3) F

(a) 1 only (b) 2 only (c) 1 & 2 (d) 2 & 3 (e) 1,2,3 

ans: (c)

Q). E occurs which one cannot occurs

(a) A (b) F (c) D (d) C (e) J 

ans: (b)

* * * * *

HCL-TECH (MADURAI)

Ordering is changed this time.So don't byheart by

a,b,c,d. Byheart

the

answers. Pls check answer once again

Don't hesitate to answer all. Ever HR knows that

Students have

this qp.

Page 8: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

Ist section of the Question is as such in the

placement

papers.com

Section II - C Programming

1. Which of the following about the following two

declaration is

true

i ) int *F()

ii) int (*F)()

Choice :

a) Both are identical

b) The first is a correct declaration and the second

is wrong

c) The first declaraion is a function returning a

pointer to an

integer and the second is a pointer to function

returning int

d) Both are different ways of declarin pointer to a

function

Answer : c) The first de...

2. What are the values printed by the following

program?

#define dprintf(expr) printf(#expr "=%d\n",expr)

main()

{

int x=7;

int y=3;

dprintf(x/y);

}

Choice:

a) #2 = 2 b) expr=2 c) x/y=2 d) none

Answer: c)x/y=2

Page 9: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

3. Which of the following is true of the following

program

main()

{

char *c;

int *p;

c =(char *)malloc(100);

p=(int *)c;

free(p);

}

ans: The code functions properly releasing all the

memory

allocated

4.output of the following.

main()

{

int i;

char *p;

i=0X89;

p=(char *)i;

p++;

printf("%x %x\n",p,i);

}

*

ans:0X8A

5.

which of the following is not a ANSI C language

keyword?

ans:Function.

6. When an array is passed as parameter to a function,

which of

the following statement is correct

Page 10: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

choice:

a) The function can change values in the original

array

b) In C parameters are passed by value. The funciton

cannot

change

the original value in the array

c) It results in compilation error when the function

tries to

access the

elements in the array

d) Results in a run time error when the funtion tries

to access

the elements

in the array

Answer: a) The fu...

7. The type of the controlling expression of a switch

statement

cannot be of

the type

a) int b) char c) short d)float e) none

Answer : d)float

8.What is the value of the expression (3^6) + (a^a)?

a) 3 b) 5 c) 6 d) a+18 e) None

Answer : 5

9. What is the value assigned to the variable X if b

is 7 ?

X = b>8 ? b <<3 : b>4 ? b>>1:b;

a) 7 b) 28 c) 3 d) 14 e) None

ans: 3;

10. Which is the output produced by the following

Page 11: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

program

main()

{

int n=2;

printf("%d %d\n", ++n, n*n);

}

a) 3,6 b) 3,4 c) 2,4 d) cannot determine

Answer : b) 3,4

11. What is th output of the following program? 

int x= 0x65;

main()

{

char x;

printf("%d\n",x);

}

a) compilation error b) 'A' c) 65 d)

unidentified

12. What is the output of the following program

main()

{

int a=10;

int b=6;

if(a=3)

b++;

printf("%d %d\n",a,b++);

}

a) 10,6 b)10,7 c) 3,6 d) 3,7 e) none

Answer : d) 3,7

13. What can be said of the following program? 

main()

{

enum Months {JAN =1,FEB,MAR,APR};

Months X = JAN;

Page 12: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

if(X==1)

{

printf("Jan is the first month");

}

}

a) Does not print anything

b) Prints : Jan is the first month

c) Generates compilation error

d) Results in runtime error

Answer: b) Prints : Jan..

14. What is the output of the following program?

main()

{

char *src = "Hello World";

char dst[100];

strcpy(src,dst);

printf("%s",dst);

}

strcpy(char *dst,char *src)

{

while(*src) *dst++ = *src++;

}

a) "Hello World" b)"Hello" c)"World" d) NULL e)

unidentified

Answer: d) NULL

15. What is the output of the following program?

main()

{

int l=6;

switch(l)

{ default : l+=2;

case 4: l=4;

case 5: l++;

break;

}

Page 13: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

printf("%d",l);

}

a)8 b)6 c)5 d)4 e)none

Answer : c)5

16. What is the output of the following program?

main()

{

int x=20;

int y=10;

swap(x,y);

printf("%d %d",y,x+2);

}

swap(int x,int y)

{

int temp;

temp =x;

x=y;

y=temp;

}

a)10,20 b) 20,12 c) 22,10 d)10,22 e)none

Answer:d)10,22

17. What is the output of the f

ollowing problem ?

#define INC(X) X++

main()

{

int X=4;

printf("%d",INC(X++));

}

a)4 b)5 c)6 d)compilation error e) runtime error

Answer : d) compilation error

18. what can be said of the following

Page 14: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

struct Node {

char *word;

int count;

struct Node left;

struct Node right;

}

a) Incorrect definition

b) structures cannot refer to other structure

c) Structures can refer to themselves. Hence the

statement is OK

d) Structures can refer to maximum of one other

structure

Answer :c)

19. What is the size of the following union.

Assume that the size of int =2, size of float =4 and

size of char 

=1.

Union Tag{

int a;

flaot b;

char c;

};

a)2 b)4 c)1 d) 7

20) What is the output of the following program? (.

has been used 

to

indicate a space)

main()

{

char s[]="Hello,.world";

printf(%15.10s",s);

}

a)Hello,.World...

b)....Hello,.Wor

Page 15: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

c)Hello,.Wor....

d)None of the above

(1) The combined length of the longer two pieces of

rope is 12 

metres.

(2) The combined length of the shorter two pieces of

rope is 11 

metres.

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

10) A certain company paid bonuses of Rs. 125 to each

of its 

executive

emplyees and Rs 75 to each of its nonexecutive

employees. If 100

of the employees were nonexecutive, how many were

executive?

1) The company has a total of 120 employees

2) The total amount that the company paid in bonuses

to its 

employees was

Rs.10,000

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

11. What fraction of his salary did Mr. Johnson put

into savings 

last week ?

1) Last week Mr.Johnson put Rs 17 into savings.

2) Last week Mr.Johnson put 5% of his salary into

savings.

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

12. Each M-type memory unit will increase the base

memory 

Page 16: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

capacity

of a certain computer by 3 megabytes. What is the base

memory 

capacity,

in megabytes, of the computer ?

1) 2 M-type memory units will increase the computer's

base memory 

capacity

by 300%

2) The memory capacity of the computer after 2-M type

memory 

units

are added to the base memory capacity, is 1.6 times

the memory 

capacity

of the computer after 1 M-type unit is added to the

base memory 

capacity.

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

13. What fractional part of the total surface area of

cube C is 

red?

1) Each of 3 faces of C is exactly 1/2 red

2) Each of 3 faces of C is entirely white

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

SECTION C

Instructions ALL NUMBER USED ARE REAL NUMBERS

FOLLOWING

EACH QUESTIONS ARE FIVE POSSIBLE ANSWERS LABELED

A).B).C).D)&E).TICK THE BEST CHOICE.

14. How many of the integers between 25 and 45 are

even ?

Page 17: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

(A)21 (B)20 (C)11 (D)10 (E)9

Answer:d)10

15. If taxi fares were Rs 1.00 for the first 1/5 mile

and Rs 

0.20

for each 1/5 miles thereafter. The taxi fare for a

3-mile ride 

was

(A)Rs 1.56 (B)Rs 2.40 (C)RS 3.00 (D)Rs 3.80 (E)Rs 4.20

Answer :d)Rs 3.80

16. A computer routine was developed to generate two

numbers 

(x,y)

the first being a random number between 0 and 100

inclusive, and

the second being less than or equal to the square root

of the 

first.

Each of the following pair satisfies the routine

EXCEPT

(A) (99.10) (B) (85.9) (C) (50.7) (D) (1.1) (E)

(1.0)

Answer : A) (99.10)

17. A warehouse had a square floor with area 10,000

sq.meters. A

rectangular addition was built along one entire side

of the 

warehouse

that increased the floor by one-half as much as the

original 

floor.

How many meters did the addition extend beyond the

original 

buildings ?

Page 18: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

(A)10 (B)20 (C)50 (D)200 (E)500

Answer: c)50

18. A digital wristwatch

HCL

 HCL System Software Sample Test PaperNOTE : This is a system paper and not application paper

Section 1- General Computer Concepts

1. Piggy backing is a technique for

a) Flow control 

b) Sequence 

c) Acknowledgement 

d) retransmition

Ans. (c)

2. In OSI, terminal emulation is done in

(a) sessions layer 

(b) application layer 

(c) presentation layer 

(d) transport layer

Ans: (b)

3.Bit parity check,when performed on a byte ,can

catch

a)odd number of errors

b)even number of errors

c)any number of errors

d)none of the above

Ans: (a)

4. In signed magnitude notation what is the minimum

value that can be represented with 8 bits

(a) -128 

(b) -255 

(c) -127 

(d) 0

Ans: (c)

5. For 1 MB memory, the number of address lines

Page 19: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

required,

(a)11 

(b)16 

(c)20 

(d) 24

Ans. (c)

6.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

Ans: (a)

7. Semaphore is used for

(a) synchronization 

(b) dead-lock avoidence

(c) both a and b 

(d) none

Ans. (c)

8. 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)

9.Virtual address are translated to physical 

address by

(a)the process

(b)operating system

(c)MMU

(d)All of the above

(e) None of the above

10.convert the hexadecimal number 0xFEDB to the

octal

(a) 177333

ans: (a)

11. OLE is a mechanism

a)in UNIX for network communication

b)in INTERNET for communication between nodes

Page 20: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

c)for communication between processes in a NT system

d)used as a network layer protocol in NT & Windows

systems

12. an internet IP address of a node

a)has to be unique only for the domain of the node

b)has to be unique in the node's sub-network

c)has to be unique in the country in which the node

is present

d)none of the above

13. There is an employee table with key feilds as

employer no.data in every n'th row are needed for a

sample. Which of the following queries will get

required results.

a) select A employe no. from employe A , where

exists (select (max (emp_no)))from employe B

where A employe no. >= B employe having (count(*)

mod

n)=0

b) select employe no. from employe A, employe B

where A.employe no.>=B employ no.group by employe

no.having(count(*) mod n)=0 )

c) both a& b

d)none of the above

ans: (d)

14. Type duplicates of a row in a table customer

with

non unique key feild customer no. can use

a) delete from costomer where customer no. exists(

select distinct customer no. from customer having

count )

b) delete customer a where customer no. in (select

cust_no from customer b where a.cust_no=b.cust_no)

and

a.rowid>b.rowid

c) delete customer a where custermor no. in ( select

customer no. from customer a, customer b group by

a.cust_no 

having (count(*)>1) and a.rowid>b.rowid);

d) none of the above

Page 21: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

15.which of the following is a feature of the ANSI C

language and not present in Java?

a)forward referencing

b)variable length argument lists

c)volatile modifier

d)none of the above

ans: (b)

section 2 - C Programming

1.which of the following about the following two

declarations is true

i) int *F();

ii)int (*F)();

a)Both are identical

b)the first is a correct declaration and second is

wrong

c) the first declaration is a function returning a

pointer to an integer and the second is a pointer

to

function returning int

d)Both are different ways of declaring pointer to a

function

ans : (c) 

2.what are the values printed by the following

program?

#define dprintf(expr) printf(#expr=%d\n",expr)

main()

{

int x=7;

int y=3;

dprintf(x/y);

}

a)#2=2 b)expr=2 c)x/y=2 d)none

ans ( c)

3.which of the following is true of the following

program

main()

{

char *c;

int *ip;

Page 22: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

c=(char *)malloc(100);

ip=(int *)c;

free(ip);

}

a)the code functions properly by releasing all the

memory allocated

b)results in compilation error as a pointer of

various

types cannot be equated

c)the program ties to free more memory than

allocated

and results in run time error

d) works well except when the machine runs low on 

memory and malloc is unabel to allocate the memory

ans : (d)

4.output

main()

{

int I;

char *p;

i=0x89;

p=(char *)i;p++;

printf("%x\n"p);

}

a)0x8c b)0x4566788A c)0x8A d)0x8B e)none

5.which of the following is not an ANSI c language

keyword?

a)volatile b)function c)default d)const e)void

ans; (b)

6.when an array is passed as parameter to a function

,which of the following statement is correct

a)the function can change values in the original

array

b)in c parameters are passed by value . the function

cannot change the original value in the array

c)it results in compilation error.Array cannot be

passed as a parameter to a function

Page 23: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

d)results in runtime error when the function tries

to

access the elements in the array

7.the type of the controlling expression of a switch

statement cannot be of the type

a)int b)char c)short d)float e)none

ans (d)

8.value of (3^6)+(a ^a)=?

Ans :value=5

9. x= b>8?b<<3:b>4?b>>1:b;

ans: x=3

10.output:

main()

{

int n=2;

printf("%d %d\n"++n,n*n);

}

a)3,6 b)3,4 c)2,4 d)cannot determine

ans :( b)

11.output:

int x=0x65;

main()

{

char x;

printf("%d\n",x);

]

a)compilation error b)'A' c)65 d)undefined

12.output

main()

{

int a=10;

int b=6;

if(a=3)

b++;

printf("%d %d",a,b++);

}

a)10,6 b)10,7 c)3,6 d)3,7 e)none

Page 24: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

13.main()

{

enum months {jan=1,feb,mar,apr};

months x=jan;

if(x==1)

printf("jan is the first month");

}

a)does not print anything

b)prints : jan is the first month

c)generates compilation error

d)results in runtime error

14.what is the output of the following program?

Main()

{

char *src="hello world";

char dst{100];

strcpy(src,dst);

printf("%s",dst);

}

strcpy(char *dst,char *src)

{

while (*src) *dst++=*src++;

}

a)"hello world" b)"hello" c)"world" d)NULL 

e)undefined

15.main()

{

int i=6;

switch(i)

{

default: i+=2;

case 4;i=4;

case 5:i++;

break;

}

printf("%d",i);

}

a)8 b)6 c)5 d)4 e)none

Page 25: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

16.main()

{

int x=20;

itn y=10;

swap(x,y);

printf("%d %d",y,x+2);

}

swap(int x,int y)

{

int temp;

temp=x;

x=y;

y=temp;

}

a)10,20 b)20,12 c)22,10 d)10,22 e)none

17.#define INC(x) x++

main()

{

int x=4;

printf("%d",INC(x++));

}

a)4 b)5 c)6 d)compilation error e)runtime

error

18.struct node{

char *word;

int count;

struct node left;

struct node right;

};

a)incorrect definiton

b)structures cannot refer to other structrues

c)structures can refer to themselves.Hence the

statement is ok

d)structures can refer to maximum of one other

structure

19.what is the size of the following union

Page 26: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

union tag{

int a;

float b;

char c;

};

a)2 b)4 c)1 d)7

ans :( b)

20. main()

{

char s[]="hello world";

printf("%15.10s",s);

}

a)hello,.world...

b).....hello world

c)heloo,.wor.....

d)none of the above

ans: (b)

section C - analysing program segements

1)struct dlink{

int nodeid;

struct dlink *next;

struct dline *prev;

} dlink_t;

A pointer to the head of tha linked list is

maintained

as a global variable whose definition is 

dlink_t *head;

The function remove_element(dlink_t*rp), needs to

remove the node pointed to by rp and adjust the head

The first node's prev and the last node's text are

NULL

remove_element (dlink_t *rp)

{

rp->prev->next =rp->next;

rp->next->prev =rp->prev;

if(head ==rp)

head =rp->next;

Page 27: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

}

which of the following statement is true about the

function remove_element

a)it works when head is the same as rp;

b)it does not work whe rp is the last element on the

list

c)it sets the head of the list correctly

d)it works in all cases

ans:( b)

2.#define NULL 0

char *

index (sp,c)

register char *sp,c;

{

do {

if(*sp==c)

return(sp);

}while (*sp++);

return (NULL);

}

The first argument sp,is a pointer to a C string.

The

second argument c is a character. This function

searches for the character c in the string . If it

is

found

a pointer to that location is returned ,else NULL is

returned

This function works

a)Always

b)always but fails when the first byte contains the

character c

c)works when c is a non NULL character array

d)works only when the character c is found in the

string

3.main()

{

printf("%d\n",f(7));

Page 28: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

}

f(x)

{

if(x<=4)

return x;

return f(--x);

}

a)4

b)5

c)6

d)7

4.on a machine where pointers are 4 bytes long,what

happens when the following code is executed

main()

{

int x=0 ,*p=0;

x++;p++;

printf("%d and %d\n",p);

}

a) 1 and 1 is printed

b) 1 and 4

c) 4 and 4

d) causes an exception

5.which is correct?

a)strcpy(char *dst,char *src)

{

while (*src)

*dst++=*src++;

}

b) strcpy(char *dst,char *src)

{

while (*dst++=*src++);

}

c) strcpy(char *dst,char *src)

{

while (*src){

Page 29: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

*dst=*src;

dst++;src++;

}

}

d) strcpy(char *dst,char *src)

{

while (*++dst=*++src);

}

6. main()

{

int i=20,*j=&i;

f1(j);

*j+=10;

f2(j);

printf("%d and %d ',i,*j);

}

f1(k)

int *k;

{ *k+=15;}

f2(x)

int *x;

{ int m=*x, *n=&m;

*n+=10;

}

The values printed by the program will be

a)20 and 55

b)20 and 45

c)45 and 45

d)55 and 55

e)35 and 35

ans : ( c )

7.int 

func(int x)

{

if(x<=0)

return (1);

return func(x-1)+x;

}

main()

Page 30: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

{

printf("%d",func(5));

}

a)12 b)16 c)15 d)11

8.consider the following fragments of c code in two

files which will be linked together and executed

a.c

int i;

main()

{

i=30;

f1();

printf("%d",i);

}

b.c

static int f1()

i+=10;

}

which of the following is true?

a)a.c will fail in compilation phase because f1() is

not declared

b)b.c will fail in compilation because the variable

i

is not declared

c)will print 30

d)will print 40

d)a & b

9. void 

funca(int *k)

{

*k+=20;

}

void 

funcb(int *k)

{

int m=*x,*n=&m;

*n+=10;

}

Page 31: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

main()

int var=25,;

*varp=&var;

funca(varp)

*varp+=10;

funcb(varp);

printf("%d%d,var,*varp);

}

(a) 20,55(b) 35,35(c) 25,25(d)55,55

ans : (d )

9. #include <stream.h>

class x{

public :

int a;

x();

};

x::x() { a=10;cout<< a ;}

class b:public x {

public :

b(); x();

};

b::b() { a=20;cout<<a;}

main()

{

b temp;

}

what will be the output of the following program?

a)10 b)20 c)20 10 d)10 20

section 4 - General Aptitude Section

1. In a murder case there are four suspects

P,Q,R,S.

Each of them makes a statement . They are

P : I had gone to the theatre with S at the time of

the murder

Q: I was playing cards with P at the time of the

murder

R: Q did not commit the murder

S: R is not the murdere

Page 32: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

Assuming that only one of the above statement is

false

and that one of them is the murderer,who is the

murderer?

a)p b)Q c)R d)cannot be concluded e)S

2.Mohan earned twice as much and deep.Yogesh earned

Rs.3/- more than half as much as deep.If the amounts

earned by mohan,deep and yogesh are M,D and y

respectively which of the following is the correct

ordering of these amounts?

a)M<D<Y

B)M<Y<D

C)D<M<Y

D)it cannot be determined from the information given

e)D<Y<M

3.Statistics indicate that men drivers are involved

in

more accidents than women drivers.Hence it may be

concluded that

a)sufficient information is not there to conclude

anything

b)men are actually better drivers but drive more

frequently

c)woment certainly drive more cautiously than men

d)men chauvinists are wrong about women's abilities

e)statistics sometimes present a wrong picture of

things

4.convert hex number 0xE78 to radix 7

ans : 13541

5.given that A,B,C,D,E represent one of the digits

between 1 and 9 and that the following

multiplication

holds

ABCDE X4=EDCBA

Which digit does E represent?

a)4 b)6 c)8 d)7 e)insufficient data provided

Page 33: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

6.HCL photocopying machine can make 10 copies every

4

seconds.

At this rate,how may copies can the machine make in

6

minutes?

a)900

b)600

c)360

d)240

e)150

ans : ( a)

7. if a=2 , b=4 ,c=5 then

(a+b)/c - c/(a+b)=?

Ans : 11/30

8.10^2 (10 ^8 +10 ^8)/ 10^4=?

Ans : 2(10^6)

9.worker W produces n units in 5 hours.Workers V and

W,working independently but at the same time produce

n

units in 2 hours. How long would it take V alone to

produce n units?

Ans : 3 hr 20 min

10 . If q#0 and k=(rq/2) - s ,then what is r in

terms

of k,q ans s?

ans : 2(k+s)/q

1.A causes B or C ,but not both

2.F occurs only if B occurs

3. D occurs if B or C occurs

4.E occurs only if C occurs

5.J occurs only if E or F occurs

6.D causes G,H or both

7.H occurs if E occurs

8.G occurs if F occurs

Page 34: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

11) if A occurs which of the following may occur?

I . F and G

II. E and H

III.D

a)I only

b)II only

c)III only

d) I & II & III

e)I & II or II & III but not both

12. If B occurs which must occur?

a)D

b)D and G

c)G and H

d)F and G

e)J

13. if J occurs ,which must have occurred?

a)E

b) Either B or C

c)both E & f

d)B

e) Both B & C

14. which may occur as a result of a cause not

mentioned?

I.D

II.A

III.F

a) I only

b) II only

c) I & II

d) II & III

e) I , II & III

15. If E occurs which one cannot occur?

a)A

b)F

c)D

d)C

e)J

Page 35: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

Qestions 16-20

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 routs,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 cannot travel by the southern route

U cannot change routes

16. 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 memebers 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

17.if each of the two parties of knights consists of

exactly three members,which of the following is not

a

possible travelling pary 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

Page 36: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

e)Q,R,T by the northern route

18.if one of the two parties of knights consisits 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

19.if each of the two parties of knights consists of

exactly three members ,S and U are 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

20. 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

  HCL

HCL technologies paper { MANIT , bhopal ( 25th -26th july) }

Application software

Page 37: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

Two section were there one section is aptitude ( 35 questions 35 minutes ) and other is

general technical awareness ( 25 qus-25 min)

Each qus have 1 mark for correct and -1/4 for incorrect answer . 

General technical awareness is very very simple need not to be 

send .It was based on c, c++ and computer awareness. 

Q1. In a island there are people of two community type 'A' and type 'B'. 

people of this island can ask question only. Questions asked by type 'A' 

have correct answer YES and question asked by type 'B' have correct 

answer 'NO'. 

Five question are based on this paragraph. 

1) One person asked another person "am I a type of 'B'"? what is type of 

person who asked question. 

a) type 'A' 

b) type 'B' 

c) either 'A' or 'B' 

d) such question can not be asked. 

2) person of type 'A' asked to his wife " are we of same type" . What is 

type of his wife? 

Three more question were there of same type read this paragraph 

carefully so that this does not take much time. 

Q2 . There are six people A,B,C,D,E,F and five cars .cars are stand in 

sequence numbered 1 to 5 and each car can be share by two persons 

only.and conditions are 

'A' will share car 

'B' will sit alone 

'F' will not share car with 'D' and 'E' 

'D' will drive car 3rd or 4th car 

'E' will drive a car which is behind 

the car with vacant seat. 

Following are the qus based on this para 

6) if 'D' are sit on the 3rd car how many different 

arrengment will be there. 

Page 38: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

total 7- 8 question asked from this paragraph search this qus. in 

GRE book. I don't remember the qus. And there ans because this was very 

tough

Q3

DATA SUFFICIENCY

Direction:Read the following instructions carefully and answer questions 

11-15 given below:

Each question below is followed by two numbered facts. You have to 

determine whether the data given in the statement is sufficient for 

answering the question. Choose one of the following choices best 

fitting the question and mark A,B,C,D or E as explained below. 

(A) if statement 1 alone is sufficient to answer the question, but 

statement 2 is not sufficient. 

(B) If statement 2 alone is sufficient to answer the question, but 

statement 1 is not sufficient. 

(C) If both statements together are needed to answer the question, but 

neither statement alone is sufficient. 

(D) If either statement by itself is sufficient to answer the question. 

(E) If enough facts are not available to answer the question. 

13. Is X =Y? 

(1) X-Y=X^2-Y^2 ans:( ) 

(2) X and Y are greater than 1. 

14. Is CAB a code word in language Q? 

(1) ABC is the base word. 

(2) If c immediately follows B, then C can be moved to the front of 

the code word to generate another word? 

ans:( ) 

15. A dress was initially listed at a price that would have given the 

store a profit of 20 percent of the wholesale cost. What was the 

wholesale cost of the dress? 

(1) After reducing the asking price by 10 percent, the dress sold for a 

net profit of 10 dollars. 

(2) The dress sold for 50 dollars. 

ans:( ) 

Page 39: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

16. If X and Y do not equal 0, is X/Y an integer? 

(1) X is prime 

(2) Y is even ans:( ) 

17. What is the price of a banana? 

(a) 14 banana and 35 oranges cost Rs. 84 

(b) with a 50% discount on banana, Rs. 12 can buy 4 bananas and 5 

oranges. 

ans:( ) 

two deadly questions on series. 

Some qus on fill in the blanks . 

6.A+B=C+D;A+C=B+D ;2A>B+D;2C<B+D; Find the arrangements of the 

letters 

like 

e.g:A>B>C>D> etc and all. 

Q.NO.1&2 

A FACTORY produces a product (measured in cubic feet) over seven days as 

per the following schedule: 

Day1 Day2 Day3 Day4 Day5 Day6 Day7 

150 180 120 250 160 120 150 

The finished goods are to be transported to the market by a truck having 

a capacity of 2000 cubic feet. Any finished goods (ready at the end of 

the day) retained overnight at the factory will incur a storage cost of 

rs.5 per cubic foot for each night of storage. The hiring cost for the 

truck is rs.1000 per day. 

1.If the total cost of transportation and storage is to be minimized, 

the truck should operate on 

(a) 2nd,4th,6thand 7th days 

(b) only the 7th day 

(c) 2nd,4th,5th and 7th days 

(d) only on 4th and 5th days 

Page 40: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

(e) none of these 

ans:( ) 

2.if the storage cost reduces to re.0.80per cubic foot per night,the 

truck should operate on 

(a)2nd,4th,5thand 7th days 

(b)only the 7th day 

(c)2nd,4th,5th and 7th days 

(d)only on 4th and 5th days 

(e)none of these 

ans:( ) 

6.if a+d=b+c,a+e=c+d,2cb+d,then 

(a) a>b>c>d>e 

(b) b>a>d>c>e 

(c) d>b>c>a>e 

(d) b>c>d>e>a ans:( ) 

(e) none of these 

Q21. three students appear in a test but no one write there name on 

answer sheet .and they submitted their sheet to teacher . when teacher 

distributed their answer sheet . what is probability that no one get 

their own answer sheet. 

HCL Sample Paper

Sample Test Paper

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) 

Page 41: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

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 

Page 42: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

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 

Page 43: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

HCL TECHNOLOGIES

Ist section of the Question is as such in the 

placement papers.com 

Section II - C Programming

1. Which of the following about the following two 

declaration is true 

i ) int *F() 

ii) int (*F)() 

Choice : 

a) Both are identical 

b) The first is a correct declaration and the second 

is wrong 

c) The first declaraion is a function returning a 

pointer to an integer and the 

second is a pointer to function returning int 

d) Both are different ways of declarin pointer to a 

function 

Answer : c 

2. What are the values printed by the following 

program? 

#define dprint(expr) printf(#expr "=%d\n",expr) 

main() 

int x=7; 

int y=3; 

dprintf(x/y); 

Choice: 

a) #2 = 2 b) expr=2 c) x/y=2 d) none 

Answer: c 

Page 44: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

3. Which of the following is true of the following 

program 

main() 

char *c; 

int *p; 

c =(char *)malloc(100); 

ip=(int *)c; 

free(ip); 

ans: The code functions properly releasing all the 

memory allocated 

4.output of the following. 

main() 

int i; 

char *p; 

i=0X89; 

p=(char *)i; 

p++; 

printf("%x\n",p); 

ans:0X8A 

5. 

which of the following is not a ANSI C language 

keyword? 

ans:Function. 

6. When an array is passed as parameter to a function, 

which of the following 

statement is correct 

Page 45: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

choice: 

a) The function can change values in the original 

array 

b) In C parameters are passed by value. The funciton 

cannot change the original 

value in the array 

c) It results in compilation error when the function 

tries to access the 

elements in the array 

d) Results in a run time error when the funtion tries 

to access the elements in 

the array 

Answer: a 

7. The type of the controlling statement of a switch 

statement cannot be of the 

type 

a) int b) char c) short d)float e) none 

Answer : d 

8.What is the value of the statement (3^6) + (a^a)? 

a) 3 b) 5 c) 6 d) a+18 e) None 

Answer : b 

9. What is the value assigned to the variable X if b 

is 7 ? 

X = b>8 ? b <<3 : b>4 ? b>>1:b; 

a) 7 b) 28 c) 3 d) 14 e) None 

ans: c 

10. Which is the output produced by the following 

program 

main() 

Page 46: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

int n=2; 

printf("%d %d\n", ++n, n*n); 

a) 3,6 b) 3,4 c) 2,4 d) cannot determine 

Answer : b 

11. What is th output of the following program? 

int x= 0x65; 

main() 

char x; 

printf("%d\n",x) 

a) compilation error b) 'A' c) 65 d) unidentified 

12. What is the output of the following program 

main() 

int a=10; 

int b=6; 

if(a=3) 

b++; 

printf("%d %d\n",a,b++); 

a) 10,6 b)10,7 c) 3,6 d) 3,7 e) none 

Answer : d 

13. What can be said of the following program? 

main() 

enum Months {JAN =1,FEB,MAR,APR}; 

Months X = JAN; 

if(X==1) 

printf("Jan is the first month"); 

Page 47: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

a) Does not print anything 

b) Prints : Jan is the first month 

c) Generates compilation error 

d) Results in runtime error 

Answer: b 

14. What is the output of the following program? 

main() 

char *src = "Hello World"; 

char dst[100]; 

strcpy(src,dst); 

printf("%s",dst); 

strcpy(char *dst,char *src) 

while(*src) *dst++ = *src++; 

a) "Hello World" b)"Hello" c)"World" d) NULL e) 

unidentified 

Answer: may be d 

15. What is the output of the following program? 

main() 

int l=6; 

switch(l) 

{ default : l+=2; 

case 4: l=4; 

case 5: l++; 

break; 

printf("%d",l); 

a)8 b)6 c)5 d)4 e)none 

Page 48: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

Answer : c 

16. What is the output of the following program? 

main() 

int x=20; 

int y=10; 

swap(x,y); 

printf("%d %d",y,x+2); 

swap(int x,int y) 

int temp; 

temp =x; 

x=y; 

y=temp; 

a)10,20 b) 20,12 c) 22,10 d)10,22 e)none 

Answer:d 

17. What is the output of the following problem ? 

#define INC(X) X++ 

main() 

int X=4; 

printf("%d",INC(X++)); 

a)4 b)5 c)6 d)compilation error e) runtime error 

Answer : d 

18. what can be said of the following 

struct Node { 

char *word; 

int count; 

Page 49: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

struct Node left; 

struct Node right; 

a) Incorrect definition 

b) structures cannot refer to other structure 

c) Structures can refer to themselves. Hence the 

statement is OK 

d) Structures can refer to maximum of one other 

structure 

Answer :c 

19. What is the size of the following union. 

Assume that the size of int =2, size of float =4 and 

size of char =1. 

Union Tag{ 

int a; 

flaot b; 

char c; 

}; 

a)2 b)4 c)1 d) 7 

may be b 

20) What is the output of the following program? (. 

has been used to indicate a 

space) 

main() 

char s[]="Hello,.world"; 

printf(%15.10s",s); 

a)Hello,.World... 

b)....Hello,.Wor 

c)Hello,.Wor.... 

d)None of the above 

may be c 

Page 50: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

9) 

(1) The combined length of the longer two pieces of 

rope is 12 metres. 

(2) The combined length of the shorter two pieces of 

rope is 11 metres. 

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

10) A certain company paid bonuses of Rs. 125 to each 

of its executive emplyees 

and Rs 75 to each of its nonexecutive employees. If 

100 of the employees were 

nonexecutive, how many were executive? 

1) The company has a total of 120 employees 

2) The total amount that the company paid in bonuses 

to its employees was 

Rs.10,000 

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

11. What fraction of his salary did Mr. Johnson put 

into savings last week ? 

1) Last week Mr.Johnson put Rs 17 into savings. 

2) Last week Mr.Johnson put 5% of his salary into 

savings. 

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

12. Each M-type memory unit will increase the base 

memory capacity of a certain 

computer by 3 megabytes. What is the base memory 

capacity, in megabytes, of the 

computer ? 

1) 2 M-type memory units will increase the computer's 

base memory capacity by 

300% 

2) The memory capacity of the computer after 2-M type 

memory units are added to 

the base memory capacity, is 1.6 times the memory 

Page 51: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

capacity of the computer after 

1 M-type unit is added to the base memory capacity. 

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

13. What fractional part of the total surface area of 

cube C is red? 

1) Each of 3 faces of C is exactly 1/2 red 

2) Each of 3 faces of C is entirely white 

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

SECTION C

Instructions ALL NUMBER USED ARE REAL NUMBERS 

FOLLOWING 

EACH QUESTIONS ARE FIVE POSSIBLE ANSWERS LABELED 

A).B).C).D)&E).TICK THE BEST CHOICE. 

14. How many of the integers between 25 and 45 are 

even ? 

(A)21 (B)20 (C)11 (D)10 (E)9 

Answer:d 

15. If taxi fares were Rs 1.00 for the first 1/5 mile 

and Rs 0.20 for each 1/5 

miles thereafter. The taxi fare for a 3-mile ride was 

(A)Rs 1.56 (B)Rs 2.40 (C)RS 3.00 (D)Rs 3.80 (E)Rs 4.20 

Answer :d 

16. A computer routine was developed to generate two 

numbers (x,y) the first 

being a random number between 0 and 100 inclusive, and 

the second being less 

than or equal to the square root of the first. Each of 

the following pair 

Page 52: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

satisfies the routine EXCEPT 

(A) (99.10) (B) (85.9) (C) (50.7) (D) (1.1) (E) (1.0) 

Answer : A 

17. A warehouse had a square floor with area 10,000 

sq.meters. A rectangular 

addition was built along one entire side of the 

warehouse that increased the 

floor by one-half as much as the original floor. How 

many meters did the 

addition extend beyond the original buildings ? 

(A)10 (B)20 (C)50 (D)200 (E)500 

Answer: c 

18. A digital wristwatch was set accurately at 8.30 

a.m and then lost 2 seconds 

every 5 minutes. What time was indicated on the watch 

at 6.30 p.m of the same 

day if the watch operated continuously that time ? 

(A)5:56 B)5:58 (C)6.00 (D)6.23 (E)6.26 

Answer :E 

19) A 5 litre jug contains 4 litres of a salt water 

solution that is 15 percent 

salt. If 1.5 litres of the solution spills out of the 

jug, and the jug is then 

filled to capacity with water, approximately what 

percent of the resulting 

solution in the jug is salt? 

(A)7.5% (B)9.5% (C) 10.5% (D)12% (E)15% 

Answer :A 

20) A plane travelled K miles in the first 96 miles of 

flight time. If it 

Page 53: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

completed the remaining 300 miles of the trip in 1 

minute, what was its average 

speed in miles per hour for the entire trip ? 

(A) 

(B) 

(C) 

(D) 

(E) 

Answer :(300+k)/97 * 60 

21) A merchant sells an item at a 20 percent discount. 

but still makes a gross 

profit of 20 percent of the cost. What percent of cost 

would be gross profit on 

the item have been if it had been sold without the 

discount? 

(A)20% (B)40% (C)50% (D)60% (E)66.6% 

Answer :c 

22) A millionaire bought a job lot of hats 1/4 of 

which were brown. The 

millionaire sold 2/3 of the hats including 4/5 of the 

brown hats. What fraction 

of the unsold hats were brown. 

(A)1/60 (B)1/15 (C)3/20 (D)3/5 (E)3/4 

Answer :c 

23) How many integers n greater than and less than 100 

are there such that, if 

the digits of n are reversed, the resulting integer is 

n+9 ? 

(A)5 (B)6 (C)7 (D)8 (E)9 

Answer :D 

24) An investor purchased a shares of stock at a 

Page 54: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

certain price. If the stock 

increased in price Rs 0.25 per share and the total 

increase for the x shares was 

Rs 12.50, how many shares of stock had been purchased 

(A)25 (B)50 (C)75 (D)100 (E)125 

Answer :B 

25) At a special sale, 5 tickets can be purchased for 

the price of 3 tickets. If 

5 tickets are purchased at the sale, the amount saved 

will be what percent of 

the original price of the 5 tickets? 

(A)20% (B)33.3% (C)40% (D)60% (E)66.6% 

Answer :c 

26) Working independently, Tina can do a certain job 

in 12 hours. Working 

independently, Ann can do the same job in 9 hours. If 

Tina works independently 

at the job for 8 hours and then Ann works 

independently, how many hours will it 

take Ann to complete the remainder of the jobs? 

(A)2/3 (B)3/4 (C)1 (D)2 (E)3 

Answer :E 

27) A decorator bought a bolt of d 

m number of red 

chips in any one stack ? 

(A)7 (B)6 (C)5 (D)4 (E)3 

Answer :C 

Page 55: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

SECTION III - ANALYSIS PROGRAM SEGMENTS

1) Here is the structure declaration of a doubly 

linked list 

struct dlink { 

int nodeid; 

struct dlink *next; 

struct dlink *prev; 

} dlink_t; 

A pointer of the head of the linked list is maintained 

as a global variable, 

whose definition is 

dlink_t *head; 

The funtion remove_element(dlink_t *rp), needs to 

remove the node pointed to 

the rp and adjust the head. 

The first node's prev and the last node's next are 

NULL. 

remove_element(dlink_t *rp) 

rp->prev->next = rp->next; 

rp->next->prev = rp->prev; 

if( head == rp) 

head = rp->next; 

Which of the following statement is true about the 

function remove_element 

A) It work when head is the same as rp 

B) It does not work when rp is the last element on the 

list 

c) It sets the head of the list correctly 

D) It works in all cases 

Answer :B 

Page 56: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

2) Consider the following function written in c: 

#define NULL 0 

char * 

index(sp,c) 

register char *sp,c; 

do { 

if(*sp == c) 

return (sp); 

} while (*sp++); 

return NULL; 

The first argument sp, is a pointer to a C string. The 

second 

argument, c, is a character. This function scarches 

for the character 

c, in the string. If it is found a pointer to that 

location is returned 

else NULL is returned. 

This function works 

a) Always 

b) Always, but fails when the first byte contais the 

character c 

c) works when c is a non NULL character only 

d) Works only when the character c is found in the 

string 

answer: a 

03) What is printed when this program is executed 

main() 

printf ("%d\n",f(7)); 

f(X) 

if (x<= 4) 

return x; 

return f(--x); 

Page 57: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

a) 4 

b) 5 

c) 6 

d) 7 

answer: a 

04) On a machine where pointers are 4 bytes long, what 

happens when the 

following code is executed. 

main() 

int x=0,*p=0; 

x++; p++; 

printf ("%d and %d\n",x,p); 

a) 1 and 1 is printed 

b) 1 and 4 is printed 

c) 4 and 4 is printed 

d) causes an exception 

05) Which of the following is the correct code for 

strcpy, that is 

used to copy the contents from src to dest? 

a) strcpy (char *dst,char *src) 

while (*src) 

*dst++ = *src++; 

b) strcpy (char *dst,char *src) 

while(*dst++ = *src++) 

c) strcpy (char *dst,char *src) 

while(*src) 

{ *dst = *src; 

dst++; src++; 

Page 58: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

d) strcpy(char *dst, char *src) 

while(*++dst = *++src); 

answer:b 

6) Consider the following program 

main() 

int i=20,*j=&i; 

f1(j); 

*j+=10; 

f2(j); 

printf("%d and %d",i,*j); 

f1(k) 

int *k; 

*k +=15; 

f2(x) 

int *x; 

int m=*x,*n=&m; 

*n += 10; 

The values printed by the program will be 

a) 20 and 55 

b) 20 and 45 

c) 45 and 45 

d) 45 and 55 

e) 35 and 35 

7) what is printed when the following program is 

compiled and executed? 

int 

func (int x) 

Page 59: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

if (x<=0) 

return(1); 

return func(x -1) +x; 

main() 

printf("%d\n",func(5)); 

a) 12 

b) 16 

c) 15 

d) 11 

08) COnsider the following of c code in two files 

which will be linked together 

and executed . 

a.c 

___ 

int i; 

main() 

i = 30; 

f1(); 

printf("%d\n",i) 

b.c 

___ 

static int f1() 

i+=10; 

which of the following is true ? 

a) a.c will fail in compilation phase because f1() is 

not declared 

b) b.c will fail in compilation because the variable i 

is not declared 

c) will print 30 

d) will print 40 

Page 60: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

e) a & b 

answer: e 

9) Consider the following prg 

void funca (int *k) 

*k += 20 

void funcb (int *x) 

int m=*x,*n = &m; 

*n+=10; 

main() 

int var = 25,*varp=&var; 

funca(varp); 

*varp += 10; 

funcb(varp); 

printf ("%d and %d\n",var,*varp); 

The values printed when the above prg is complied and 

executed 

are: 

a) 20 and 55 

b) 20 and 45 

c) 45 and 55 

d) 55 and 55 

e) 35 and 35 

answer: d 

10) consider the following program: 

# include 

class x { 

public: 

int a; 

x(); 

}; 

x::x() { a=10; cout<< q if 10) d ans: min 20 hr 3 e) 30 d) 2 c) 53 1 b) 

26 a) units? n produce to alone V take it would long how hours. in units 

Page 61: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

time, same the at but independently workers W, and Workers 5 produces W 

Worker 9) b answer: 10^10 2(10)^8 10^8 2(10)^6 2(10)^4 10^4 

10^2(10^8+10^8)="--------------" 8) -1 -11 0 11 a+b ----="c" - ----- c 

then a="20;" 7) 150 240 360 600 900 min.? 6 make machine can copies many 

How rate, this At seconds. 4 every 10 prototyping HCL 6) Answer: 7 8 ? 

represent E does digit what -------------- A B C D X holds: 

multiplication following that 9 between digits of one each A,B,C,D,E 

5)Given answer:d 13112 13541 14256 14153 12455 radix correspond E78 

number hex What 04) things picture wrong present sometimes Statistics 

abilties. women?s about are chauvinists Men than cautiously more drive 

Certainly Women frequently drivers better actually anything conclude 

there not is information sufficiently concluded be may Hence drivers. 

women accidents involved men indicate 03) M Y given from determined 

cann?t It amounts? these ordering correct Which respectively, M,D,Y 

Mohan,Deep,Yogesh by earned amounts If deep. as much half rs.3 Yogesh 

Deep. twice Mohan 2) S Cann?t R Q P murderer? who murderer, them false 

statement above only Assuming murderer?. ?R s: murder?. commit didn?t ?Q 

r: time with cards playing was ?I q: theatre gone had p: They statement. 

makes Each P,Q,R,S. suspects four case murder In 1) Section Aptitude 

General IV 1020 2010 prg? output will } temp; { () main cout< 0 and k = 

qr -s, then what is r in terms 

of k,q,s? 

a) 2k+s 

---- 

b) 2sk 

---- 

c) 2(k-s) 

----- 

d) 2k+sq 

----- 

e) 2(k+s) 

------ 

answer: e 

11-15 is the reasoning Questions: 

Page 62: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

Occurs and Causes available in placement papers.com 

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 

16) 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 

17) If each of the two parties of knights consists of 

Page 63: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

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 

ans: b 

18) If one of the two parties of knights consists of U 

and two other 

knights and travels by the northern route, the other 

memnbers 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 

19) 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 

20) If, when the two parties of knights encounter one 

another after 

a month, exactly one knight changes from one 

travelling party to the 

Page 64: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

other travelling party, that knight must be 

a) P 

b) Q 

c) R 

d) S 

e) T 

answer: e 

HCL TECH interview qp

Technical interview is held for 30 min to 1 hr 20min depending upon 

the stuff. Concentrated areas are 

1) OS Concepts 

2) C Programming skill 

3) OOPs concepts 

4) Basics of Networking 

5) Data structures 

Only basic QP like 

1) What is fragmentation? How do overcome? 

2) What is semaphore? 

3) What are the IPC Mechanism available? Illustrate 

with example 

4) What is structure and union in c? write the code 

and explain 

how they are storing in the memory? 

5) They will ask to write one c program ? 

6) Explain the data struture (code) for the data 

structures 

i) Double linklist 

ii) Minimum spanning tree 

iii) BFS and DFS 

iv) AVL tree 

v) Reverse the linklist 

7) Difference between malloc and calloc? 

8) write a prg in macro in c? 

9) Write a simple MFC program to create a window? 

(They aaked me 

write a prg to create a window) 

Page 65: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

10) Tell about the existing scheduling algorithm? 

11) what are all E.F.Codd rule? 

12) what is bit slice processor? 

13) what is a deadlock? explain it? 

14) what is virtual memory? 

15) what is circuit switching and packet switching 

16) What is the significance of friend keyword in C++? 

17) Different types of inheritance? 

18) do u want to ask anything from us? 

HR interview

This ranges from 20 min to 45 min. They expecting ur 

i) Focussing towards the technology 

ii) Adaptability 

iii) Family Background 

iv) Team spirit 

i) Tell abt yourself? 

ii) what are all ur hobbies? 

iii)why did u prefer your area of interest? 

iv) why did u wanna be in HCL? 

v) why did u choose MCA? 

vi) howz interview is going on? 

vii) Some general technical qp from ur area of 

interest? 

viii) how'll u react if u r assigned in the non area 

of interest? 

(adaptability) 

ix) how're getting information abt the company? 

(weightage is given to communciating with the seniors) 

x) In which project do u want to work in HCL? 

xi) do u want to ask anything from us? 

There'll be no HR interview for some shortlisted 

candidates. 

70+ and no current arrear is the criteria. 

The shortlisted student should have more than 73%.

Aptitude

Setion I ( 25 ques 30 mins apttitude type)

Page 66: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

1. There were four questions based on the data . 

5.Five students has appeared for the test on Calculus.The lowest 

possible 

score was 0, and the highest score was 100.aparna ,rahul rohit,shijit, 

and 

shana.Shahana got 8 more marks than Aparna, Shigit got 2 more marks 

than aparna, rohit got 3/2 of rohit or 10 more than aaparna.The 

second highest 

score was 89.What were the score of each students. 

6.A+B=C+D;A+C=B+D ;2A>B+D;2C<B+D; Find the arrangements of the 

letters 

like 

e.g:A>B>C>D> etc and all. 

7.MBC=(BE)2; where M,B,C,E represent different numbers What does M 

represent. 

8.There was a question on number series. 

9. 

20 ? 15 

0 18 11 

Ans(6) 

Five questions were on data sufficiencies all of them I can^Òt recall 

the ones 

can remember I have written them. 

A) The first condition is sufficient and the second condition is not 

necessary. 

B) The second condition is sufficient and the first condition is not 

necessary 

C) Both the conditions are necessary but alone is not sufficient 

D) Both the conds. Are necessary and any one alone is sufficient 

condition. 

E) Insufficient conditions 

10.X =Y; 

a)X2-Y2=0 is the sufficient conditions 

b)X-Y =0 is the sufficient condition 

11.28 bananas and 35 orange scost Rs 84.After a deduction of 10 % Rs 

Page 67: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

12 can 

buy 4 bananas and 5 oranges.Find the cost of each items. 

12 The distance between two pts is 335 kms.A car starts from a point 

A towards 

B with a speed of 65 km/hr at 8.00 am.Another car started from B 

towards A at 

9.00 am at a speed of 70km/hr.When will they meet each other. 

a)11.00 am(ans) b)11.30am c)12.00 pm d)1.00 pm e)10.30 am 

A,B,C,D,E are travelling in a car.Three of them are drivers.there is 

one 

couple,B is wife of D and is a Driver. A is the brother of D .Of them 

only one 

lady can drive.A drove for a while followed by A and then by E. 

24.Which among of the following pairs are brothers, 

a)AD(ans) 

b)CD 

c)EA 

d)BA 

e)ED 

25.Which is the other lady present there? 

a)B b)A c)D d)C(ans) e)E 

Four question were based on the logical reasining.given below: 

There are six inverted cups below which there are one ball each under 

each 

cup.colored by solid colours.-red,orange 

,magenta,purple,yellow,green.The 

arrangements was such that one can tell which ball is under a 

particular 

cup.The green ball was under the 5thcup, 

The purple ball at a number lower than the orange ball.the red ball 

and magenta 

Page 68: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

ball are kept side by side. 

16.Find the arrangement of the balls 

ans:---------,-----------,-----------,-----------,green,orange 

(I don^Òt remember the other options but the correct pattern 

consisits of 

green and orange at the last) 

17.Which ball is under the 6th cup? 

21.In a clock how many times does the hands of a clock are at right 

angle in a 

day? 

Ans(44 times) 

23.A man said to a woman ^ÓYour brother^Òs son^Òs sister is my wife^Ô 

What is 

the relation between the man and the lady? 

Those who qualified from section I were shortlisted to sit for the 

second test 

on techinal questions.The second test consists of two parts Section I 

consists 

of Only Operating system and the Section II consists of only Cand C++ 

fundamentals 

I got HCL full paper. I am mailing it. The quetions are in order. 

So you no need to prepare answers and mugging that quetions. Just 

Jyou mug that answers which are in order or you write all these 

Page 69: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

answers on the hand compactly while you are going to exam. 

Paper Model:

Section I: computer awareness(i.e general things about computer)

Q.15 

-ve marks -1/4 

Section II: Simple C- language Q. 15 & -ve marks: -1/4

Section III: On pointers & structures

C++,JAVA( only 1 on this) Q.10 each quetion ->2 marks

-ve marks: -1 

Section IV: Analytical Q.20 each quetion -> 2 marks.

-ve marks: -1/4 

VIJAYA from each section Iam giving one are to quetions also because 

for checking whether the same paper or not. And for doubtful 

answers also I am writing quetions but not writing 

answers for these quetions. 

SECTION-I

1). Piggy backing is a technique for 

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

ans: c piggy backing 

2). The layer in the OST model handles terminal emulation 

a) session b) application c) presentation d) transport 

ans: b application 

3) ans: a odd numbers of errors 

Page 70: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

4)Q. In signed magnitude notation what is the minimum value that 

can be represented with 8 bits 

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

5) c 20 

6) a 120 

7) b synchronise the access 

8) a system call 

9) b the operating system 

10) a 177333 

11) d used as a network layer protocall in network and 

windows system 

12) b has to be unique in the sub network 

13)Q. there is an employer table with key feilds as employer no. 

data in every n'th row are needed for a simple following queries 

will get required results. 

a) select A employe no. from employe A , where exists from employe B 

where A employe no. >= B employe having (count(*) mod n)=0 

b) select employe no. from employe A, employe B where 

A employe no.>=B employ no.grouply employe no.having(count(*) mod n=0 ) 

c) both a& b 

d)none of the above 

14)Q. type duplicates of a row in a table customer with non uniform 

key feild customer no. you can see 

a) delete from costomer where customer no. exists 

( select distinct customer no. from customer having count ) 

b) delete customer a where customer no. in 

b rowid 

c) delete customer a where custermor no. in 

( select customer no. from customer a, customer b ) 

d) none of the above 

Page 71: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

15) c Volatile modifier 

Section I over with 15 quetions

SECTION-II

Section II is not covered completly But it is very very easy 

. You can do it very easely. 

1) ans: recursion 

2) long int size 

a) 4 bytes b) 2 bytes c) compiler dependent d) 8 bytes 

ans: compiler dependent 

note: order of a,b,c,d are doubt but answer is correct. 

3) x=2,y=6,z=6 

x=y==z; 

printf(%d",x) ? 

4) if(x>2)?3:4 

5) 

6) 

7) ans: c 6 ( quetion on enum ) 

8) ---- 

--- 

--- 

-- 

14) c : class A,B and C can have member functions with same name. 

15) ans: d none of the above 

SECTION-III

1) ans: b It does not work when rp is the last element in the 

linked list 

Page 72: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

2) ans: a always 

3) ans: b 13 

4) ans: b 16 

5) ans: d 55,55 

6) ans: c 5,10,10,3 

7) --- 

8) ans:d 4 

9) ans: c 5 

10)ans: c semicolon missing 

SECTION-IV

following are not in order: 

2. M > D > Y ans: (a) 

6. 10 in 4 seconds, 

? in 6 minutes = 10x6x60/4 = 900 ans: (a) 

7. a=2, b=4, c=5 

(a+b)/c - c/(a+b) = 11/30 (ans). 

8. 100(100000000+100000000)/10000 = 2x1000000 (ans). 

9. what does the hexanumber E78 in radix 7. 

(a) 12455 (b) 14153 (c) 14256 (d) 13541 (e) 131112 ans: (d) 

10. Q is not equal to zero and k = (Q x n - s)/2 find n? 

(a) (2 x k + s)/Q (b) (2 x s x k)/Q (c) (2 x k - s)/Q 

(d) (2 x k + s x Q)/Q (e) (k + s)/Q 

Page 73: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

(from GRE book page no:411) 

data: 

A causes B or C, but not both 

F occurs only if B occurs 

D occurs if B or C occurs 

E occurs only if C occurs 

J occurs only if E or F occurs 

D causes G,H or both 

H occurs if E occurs 

G occurs if F occurs 

NOTE: check following answers. 

11. If A occurs which of the following must occurs 

I. F & G 

II. E and H 

III. D 

(a) I only (b) II only (c) III only (d) I,II, & III 

(e) I & II (or) II & III but not both ans: (e) 

12. If B occurs which must occur 

(a) D (b) D and G (c) G and H (d) F and G (e) J ans: (a) 

13. If J occurs which must have occured 

a) E (b) either B or C (c) both E & F (d) B (e) both B & C ans: (b) 

14. which may occurs as a result of cause not mentioned 

(1) D (2) A (3) F 

(a) 1 only (b) 2 only (c) 1 & 2 (d) 2 & 3 (e) 1,2,3 ans: (c) 

15. E occurs which one cannot occurs 

(a) A (b) F (c) D (d) C (e) J ans: (b) 

Page 74: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

11 to 15:- ----------- e , a , b , c , b --------------- 

Below are in order: 

16. to 20. answers: 

HCL SYSTEM SOFTWARE PAPER: 60 qs; 90 min. (4 sections)

NOTE : Please check answers once again. 

only this much i got , which is available here in iit-kgp 

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, 

Page 75: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

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 

Page 76: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

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(x<=0) 

return; ans fn(5) ....? 

else f(x-1)+x; 

4. i=20,k=0; 

for(j=1;j<i;j=1+4*(i/j)) 

k+=j<10?4:3; 

printf("%d", k); ans k=4 

5. int i =10 

main() 

int i =20,n; 

for(n=0;n<=i;) 

Page 77: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

int i=10 

i++; 

printf("%d", i); ans i=20 

6. int x=5; 

y= x&y 

( MULTIPLE CHOICE QS) 

ans : c 

7. Y=10; 

if( Y++>9 && 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 

Page 78: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

10. which of the function operator cannot be over loaded 

a) <= 

b)?: 

c)== 

d)* 

ans: b and d 

SECTION.C (PRG SKILLS)

(1) STRUCT DOUBLELIST 

{ DOUBLE CLINKED 

INT DET; LIST VOID 

STRUCT PREVIOUS; BE GIVEN AND A PROCEDURE TO DELETE 

STRUCT NEW; AN ELEMENT WILL BE GIVEN 

DELETE(STRUCT NODE) 

NODE-PREV-NEXT NODE-NEXT; 

NODE-NEXT-PREV NODE-PREV; 

IF(NODE==HEAD) 

NODE 

IN WHAT CASE THE PREV WAS 

(A) ALL CASES 

(B) IT DOES NOT WORK FOR LAST ELEMENT 

(C) IT DOES NOT WORK FOR----- 

(2) SIMILAR TYPE QUESTION 

ANS: ALL DON'T WORK FOR NON NULL VALUE 

(3) VOID FUNCTION(INT KK) 

KK+=20; 

VOID FUNCTION (INT K) 

INT MM,N=&M 

KN = K 

KN+-=10; 

SECTION D

Page 79: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

(1) a=2,b=3,c=6 c/(a+b)-(a+b)/c=? 

(2) no.rep in hexadecimal, write it in radiv 7 

(3) A B C D E 

* 4 

---------- find E ANS: 13 

E D C B A 

------------ 

(4) GRE-MODEL TEST-1, SECTION-6(19-22) 

(5) M HAS DOUBLE AMOUNT AS D, Y HAS RS. 3 MORE THAN HALF OF AMOUNT OF D 

THE ORDERING A,B,C M C D C Y 

ANS:DATA INSUFFICIENT D C M C Y 

(6)IN STASTIC MEN CAUSE MORE ACCIDENTS THEN ONE CONCLUSION 

(A) MEN DRIVE MORE THAN ONCE 

(B) STASTICS GIVE WRONG INFORMATION 

(C) WOMEN ARE CAUTION THAN ME ANS; C(VERIFY) 

(D)-----ETC 

(7) P,Q,R,S,T,U -SECURING GRANT;TWO TOURIST PARTIES AND THEN TWO 

SECURITY 

GAURDS SHOULD GO WITH EACH PARTY 

________________________________________________________________________ 

P AND R-ARE ENEMIES, Q DOES NOT GO SOUTH 

P&S-ARE WILLING TO BE TOGETHER 

______________________________________________________________________ 

THE TWO PARTIES MAY GO SOUTH&NORTH RESPECTIVELY 

AT ONE POINT EACH MAY PASS EACH OTHER THEN GAURDS CAN EXCHANGE 

6 Q BASED ON THIS 

(8)pq-r/s =2 what is q inference a,n&d 

(a) a can do n units of work in strs,a&b can do n units of work in 2 

hrs 

in how many hrs n units of work ans:3 hr 30 min p = (2s+r)/q 

____________ 

main() 

int var=25,varp; 

varp=&var; 

varp p = 10; 

fnc(varp) 

printf("%d%d,var,varp); 

Page 80: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

(a) 20,55(b) 35,35(c) 25,25(d)55,55 

[ c++,c,dbms interview] 

[fundamentals] 

this is new paper 

application -software

part-1:

28-questions 

(5)ingless ans:RDMS 

(1)bit program-ans d 

(2)c ans 

(3)+ 0 ans 

(4)00p--ans linking 

(5)------ 

(6)------- 

(9)25--45 even no. ans--10 

(10) >10 <100 ---ans=n+9 

  HCL

HCL SYSTEM SOFTWARE PAPER: 60 qs; 90 min. (4 sections)Section A

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, 

Page 81: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

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(x<=0) return; 

ans fn(5) ....? else f(x-1)+x; } 

4. i=20,k=0; for(j=1;j<i;j=1+4*(i/j)) {k+=j<10?4:3; } printf("%d", k); 

ans k=4 

5. int i =10 main() { int i =20,n; for(n=0;n<=i;) {int i=10 i++; } printf("%d", i); 

Page 82: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

ans i=20 

6. int x=5; y= x&y ( MULTIPLE CHOICE QS) 

ans : c 

7. Y=10; if( Y++>9 && 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) <= b)?: c)== d)* 

ans: b and d 

SECTION.C (PRG SKILLS)

(1) STRUCT DOUBLELIST { DOUBLE CLINKED INT DET; LIST VOID STRUCT PREVIOUS;

BE GIVEN AND A PROCEDURE TO DELETE STRUCT NEW; AN ELEMENT WILL BE

GIVEN } DELETE(STRUCT NODE) { NODE-PREV-NEXT NODE-NEXT; NODE-NEXT-PREV

NODE-PREV; IF(NODE==HEAD) NODE } IN WHAT CASE THE PREV WAS 

(A) ALL CASES (B) IT DOES NOT WORK FOR LAST ELEMENT (C) IT DOES NOT WORK

FOR----- 

(2) SIMILAR TYPE QUESTION ANS: ALL DON'T WORK FOR NON NULL VALUE 

(3) VOID FUNCTION(INT KK) { KK+=20; } VOID FUNCTION (INT K) INT MM,N=&M KN = K

KN+-=10; } 

SECTION D

(1) a=2,b=3,c=6 c/(a+b)-(a+b)/c=? 

Page 83: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

(2) no.rep in hexadecimal, write it in radiv 7 

(3) A B C D E * 4 ---------- find E 

ANS: 13 E D C B A ------------ 

(4) GRE-MODEL TEST-1, SECTION-6(19-22) 

(5) M HAS DOUBLE AMOUNT AS D, Y HAS RS. 3 MORE THAN HALF OF AMOUNT OF D

THE ORDERING A,B,C M C D C Y ANS:DATA INSUFFICIENT D C M C Y 

(6)IN STASTIC MEN CAUSE MORE ACCIDENTS THEN ONE CONCLUSION 

(A) MEN DRIVE MORE THAN ONCE (B) STASTICS GIVE WRONG INFORMATION (C)

WOMEN ARE CAUTION THAN ME ANS; C(VERIFY) (D)-----ETC 

(7) P,Q,R,S,T,U -SECURING GRANT;TWO TOURIST PARTIES AND THEN TWO

SECURITY GAURDS SHOULD GO WITH EACH PARTY P AND R-ARE ENEMIES, Q DOES

NOT GO SOUTH P&S-ARE WILLING TO BE TOGETHER THE TWO PARTIES MAY GO

SOUTH&NORTH RESPECTIVELY AT ONE POINT EACH MAY PASS EACH OTHER THEN

GAURDS CAN EXCHANGE 6 Q BASED ON THIS

(8)pq-r/s =2 what is q inference a,n&d 

(a) a can do n units of work in strs,a&b can do n units of work in 2 hrs in how many hrs n units

of work ans:3 hr 30 min p = (2s+r)/q ____________ main() { int var=25,varp; varp=&var; varp

p = 10; fnc(varp) printf("%d%d,var,varp); } 

(a) 20,55(b) 35,35(c) 25,25(d)55,55 

[ c++,c,dbms interview] [fundamentals] application -software

part-1: 28-questions

(5)ingless ans:RDMS 

(1)bit program-ans d 

(2)c ans

(3)+ 0 ans 

(4)00p--ans linking 

(5)------ 

(6)------- 

(9)25--45 even no. ans--10 

(10) 10 <100 ---ans=n+9 

Page 84: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

three. I have answers for Q/A paper. For Q/C you should try for answers. 

 

IIT Roorkee

1.8 65 ....

The logic behind this question was that the sum of the digits were

8 11 14 17 20 .. the anwer was the number that contained 23 as the sum check for the

number.

2.(x-a)(x-b)(x-c).....(x-z)=?

ans. none of these

3.unscramble the word..

the word is parachute

4.supply a four letterd word before the following words

code,box,haste,.....

5.(be)2=mpb 

ans...m=3

6.a figure was given find the number of four sided figure

ans.25(check)

7.2 questions were on passage...u would be asked to order them to make out sense.one was

of lizard another was regarding the russian politics.

8.repeated question.......(truck)

data would be provided... check out in the papers of the previous years papers(3 questions on

these)

9. XRT computers...passage..

that was very simple u can easily do that.(3 questions).

10.3 ladies 2 men 4 children

3 sections in hall......(passage)

(3 questions) u can easily do this as well

Page 85: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

12. two questions on data sufficiency.

1.find out the whole sale price

a.a discount of 10%was given to get the profit of 10%.

b.the selling price was 50 dollars

2. commissioned employee.........(i don't remember that exactly).

  HCL

HCL (or) HCL Perot Systems (HPS) (or) HCL-CISCOsection 1

In this section there are mainly questions based on C language like

find the errors in the program and what is the output of the following program.

some question i remember are 

1) int i=10;

printf("%d %d %d",i++,i++,i--);

there is one or two more question on increment operator

2) Two question on redirection operator(>>)

3) int i=10;

if(1,i++,++i)

printf("The value for i is %d",i); 

4) one question on structure and u have to fine the error in the syntax

5) int a=10,b=33;

a=a^b;

b=a^b;

a=a^b;

printf("%d %d", a,b);

6) int *a;

int (*b)();

printf("%d %d",sizeof(a),sizeof(b);

7) # define SQR(a) (a*a)

void main()

{

printf("%d", SQR(5));

}

8) And in another question # define directive is declared in the main() function of the program

and u have to predict the output of the program.? 

Page 86: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

9) what is the time complexity of bubble sort (Ans: O(n^2))

10) what is the preorder traversal of the folowing tree

some tree is given (this is not the actual tree given in the paper only idea)

A

/ \

B C

/ \

D E

/ \

F G 

11) x=2,y=6,z=6

x=y==z;

printf(%d",x) 

12) What is the size of the address bus and data bus in 8086?

13) address of IVT in 8086?

Section II:

1) some 6 guys are there A,B,C,D,E,F(say) and u have to adjust in the row.

and some statements are there like A & D can't be adjacent 

E,A have one vacant area in between.. like that and there are 5 questions are based on that?

2) this one is tricky .. there are two groups . one is many brothers can mary one sister of other

group. and second is many sister can mary one brother of other group

and some statements are there like V & U is father of S, X is the only grandmother of S ...like

that..

And there are 6 question based on that..

3) and rest of questions are purely aptitude & quant based.

like there are two questions on coding if MYSORE is code like MEMEME

then how TAMILNADU is coded?

HCL (or) HCL Perot Systems (HPS) (or) HCL-CISCO

Section II - C Programming

1. Which of the following about the following two declaration is true

i ) int *F()

ii) int (*F)()

Choice :

a) Both are identical

b) The first is a correct declaration and the second is wrong

Page 87: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

c) The first declaraion is a function returning a pointer to an 

integer 

and

the

second is a pointer to function returning int

d) Both are different ways of declarin pointer to a function

Answer : c) The first de...

2. What are the values printed by the following program?

#define dprint(expr) printf(#expr "=%d\n",expr)

main()

{

int x=7;

int y=3;

dprintf(x/y);

}

Choice:

a) #2 = 2 b) expr=2 c) x/y=2 d) none

Answer: c)x/y=2

3. Which of the following is true of the following program

main()

{

char *c;

int *p;

c =(char *)malloc(100);

ip=(int *)c;

free(ip);

}

ans: The code functions properly releasing all the memory allocated

4.output of the following.

main()

{

int i;

char *p;

i=0X89;

p=(char *)i;

p++;

printf("%x\n",p); 

}

ans:0X8A

5.which of the following is not a ANSI C language keyword?

ans:Function.

6. When an array is passed as parameter to a function, which of the 

Page 88: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

following

statement is correct

choice:

a) The function can change values in the original array

b) In C parameters are passed by value. The funciton cannot change the

original

value in the array

c) It results in compilation error when the function tries to access 

the

elements in the array

d) Results in a run time error when the funtion tries to access the 

elements

in

the array

Answer: a) The fu...

7. The type of the controlling expression of a switch statement 

cannot 

be of

the type

a) int b) char c) short d)float e) none

Answer : d)float

8.What is the value of the expression (3^6) + (a^a)?

a) 3 b) 5 c) 6 d) a+18 e) None

Answer : 5 

9. What is the value assigned to the variable X if b is 7 ?

X = b>8 ? b <<3 : b>4 ? b>>1:b;

a) 7 b) 28 c) 3 d) 14 e) None

ans: 3;

10. Which is the output produced by the following program

main()

{

int n=2;

printf("%d %d\n", ++n, n*n);

}

a) 3,6 b) 3,4 c) 2,4 d) cannot determine

Answer : b) 3,4

11. What is th output of the following program?

int x= 0x65;

main()

{

char x;

printf("%d\n",x)

Page 89: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

}

a) compilation error b) 'A' c) 65 d) unidentified

12. What is the output of the following program

main()

{

int a=10;

int b=6;

if(a=3)

b++;

printf("%d %d\n",a,b++);

}

a) 10,6 b)10,7 c) 3,6 d) 3,7 e) none

Answer : d) 3,7

13. What can be said of the following program?

main()

{

enum Months {JAN =1,FEB,MAR,APR};

Months X = JAN;

if(X==1)

{

printf("Jan is the first month");

}

}

a) Does not print anything

b) Prints : Jan is the first month

c) Generates compilation error

d) Results in runtime error

Answer: b) Prints : Jan..

14. What is the output of the following program?

main()

{

char *src = "Hello World";

char dst[100];

strcpy(src,dst);

printf("%s",dst);

}

strcpy(char *dst,char *src)

Page 90: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

while(*src) *dst++ = *src++;

}

a) "Hello World" b)"Hello" c)"World" d) NULL e) unidentified

Answer: d) NULL

15. What is the output of the following program?

main()

{

int l=6;

switch(l)

{ default : l+=2;

case 4: l=4;

case 5: l++;

break;

}

printf("%d",l);

}

a)8 b)6 c)5 d)4 e)none

Answer : c)5

16. What is the output of the following program?

main()

{

int x=20;

int y=10;

swap(x,y);

printf("%d %d",y,x+2);

swap(int x,int y)

{

int temp;

temp =x;

x=y;

y=temp;

}

a)10,20 b) 20,12 c) 22,10 d)10,22 e)none

Page 91: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

Answer:d)10,22

17. What is the output of the following problem ?

#define INC(X) X++

main()

{

int X=4;

printf("%d",INC(X++));

}

a)4 b)5 c)6 d)compilation error e) runtime error

Answer : d) compilation error

18. what can be said of the following 

struct Node {

char *word;

int count;

struct Node left;

struct Node right;

}

a) Incorrect definition

b) structures cannot refer to other structure

c) Structures can refer to themselves. Hence the statement is OK

d) Structures can refer to maximum of one other structure

Answer :c)

19. What is the size of the following union.

Assume that the size of int =2, size of float =4 and size of char =1.

Union Tag{

int a;

flaot b;

char c;

};

a)2 b)4 c)1 d) 7

Page 92: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

20) What is the output of the following program? (. has been used to 

indicate

a

space)

main()

{

char s[]="Hello,.world";

printf(%15.10s",s);

}

a)Hello,.World...

b)....Hello,.Wor

c)Hello,.Wor....

d)None of the above

SECTION III - ANALYSIS PROGRAM SEGMENTS

1) Here is the structure declaration of a doubly linked list

struct dlink {

int nodeid;

struct dlink *next;

struct dlink *prev;

} dlink_t;

A pointer of the head of the linked list is maintained as a global 

variable,

whose definition is 

dlink_t *head;

The funtion remove_element(dlink_t *rp), needs to remove the node 

pointed to

the rp and adjust the head.

The first node's prev and the last node's next are NULL.

remove_element(dlink_t *rp)

{

rp->prev->next = rp->next;

Page 93: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

rp->next->prev = rp->prev;

if( head == rp)

head = rp->next;

Which of the following statement is true about the fution 

remove_element

A) It work when head is the same as rp

B) It does not work when rp is the last element on the list

c) It sets the head of the list correctly

D) It works in all cases

Answer :B) It does...

2) Consider the following function written in c:

#define NULL 0

char *

index(sp,c)

register char *sp,c;

{

do {

if(*sp == c)

return (sp);

} while (*sp++);

return NULL;

}

The first argument sp, is a pointer to a C string. The second

argument, c, is a character. This function scarches for the character

c, in the string. If it is found a pointer to that location is 

returned

else NULL is returned.

This function works

a) Always

b) Always, but fails when the first byte contais the character c

c) works when c is a non NULL character only

d) Works only when the character c is found in the string

ans: a

03) What is printed when this program is executed 

Page 94: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

main()

{

printf ("%d\n",f(7));

}

f(X)

{

if (x<= 4)

return x;

return f(--x);

}

a) 4

b) 5

c) 6

d) 7

ans: a

04) On a machine where pointers are 4 bytes long, what happens when 

the 

following code is executed.

main()

{

int x=0,*p=0;

x++; p++;

printf ("%d and %d\n",x,p);

}

a) 1 and 1 is printed

b) 1 and 4 is printed

c) 4 and 4 is printed

d) causes an exception

05) Which of the following is the correct code for strcpy, that is 

used to copy the contents from src to dest?

a) strcpy (char *dst,char *src)

while (*src)

*dst++ = *src++;

}

b) strcpy (char *dst,char *src)

{

Page 95: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

while(*dst++ = *src++)

}

c) strcpy (char *dst,char *src)

{

while(*src)

{ *dst = *src;

dst++; src++;

}

}

d) strcpy(char *dst, char *src)

while(*++dst = *++src);

}

ans:b

6) Consider the following program

main()

{

int i=20,*j=&i;

f1(j);

*j+=10;

f2(j);

printf("%d and %d",i,*j);

}

f1(k)

int *k;

{

*k +=15;

}

f2(x)

int *x;

{

int m=*x,*n=&m;

*n += 10;

}

The values printed by the program will be

a) 20 and 55

b) 20 and 45

c) 45 and 45

Page 96: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

d) 45 and 55

e) 35 and 35

7) what is printed when the following program is compiled and 

executed?

int 

func (int x)

{

if (x<=0)

return(1);

return func(x -1) +x;

}

main()

{

printf("%d\n",func(5));

a) 12

b) 16

c) 15

d) 11

08) COnsider the following of c code in two files which will be linked

together

and executed .

a.c

___

int i;

main()

{

i = 30;

f1();

printf("

HCL (or) HCL Perot Systems (HPS) (or) HCL-CISCO

Page 97: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

For C you should refer to "Pointers in C" and "Tesh your C skills" by 

Yashwant Kanitkar. Complete these 2 books before appearing for the 

test. C is very important for HCL Test.

Be clear about these topics in detail:

* Pointers

* Arrays

* Strings

* Structures

* Unions

* Macros

* Function

It's going to help you in interview also.

I don't remember even a single question in C. Mostly questions look 

alike. But i remember some questions in Aptitude. So i'll tell you 

that.

Aptitude:

1. A was born when B was 1 year and 3 months old. C was born when A 

was 2 years 1 month old. What is the age of B when C is 4 years and 6 

months old?

2. If one type of tobacco costs Re.1/- per kg and other type costs 

Rs. 5/- per kg. What quantity of first type and second type are mixed 

so that 100 kg of mixture osts Rs. 100/-?

3. If an article is bought at a profit of 15% and sold at a loss of 

15% what is my total profit percent or loss percent?

4. There are 5 questions in a question paper. In an examination 5% 

students answer all questions and 5% answered none. 50% of the rest 

answered 3 questions and 20% answered 2 questions and 300 answered 

only 1 question. How many students appeared for the test?

5. A boat is going upstream with the velocity of ............

6. one question on probability.

Page 98: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

7. one question on a paragraph.

8. one question on equations. (very simple)

that's all i could recall right now....note that these questions does 

not contain the exact figure. But question formats were same. It'll 

help you a lot. If you know how to do questions 1-4 then you can skip 

these chapters while preparing. Questions from these chapters will 

not be repeated.

HCL (or) HCL Perot Systems (HPS) (or) HCL-CISCO

SECTION A

The following program accepts a pair of 2 numbers from the user of system and totals them.

Numbers are accepted in pair repeatedly and totaled, until grand total of all the pair of

numbers accepted does not exceed 9.

Step 1 : Assign value 0 to x

Step 2 : Accept 1st number and assign to A

Step 3 : Accept 2nd number and assign to B

Step 4 : Add A and B assign to C

Step 5 : Add C to X 

Step 6 : If X<10 go to Step 1

Step 7 : Stop.

The error in the above routine is

Step 6 should be If X<9 go to Step 1

Step 1 is redundant

Step 4 should be Add A & B and assign to X

Step 6 should read If x<10 go to Step 2

Step 1 should be Assign value 0 to A & B

The following program finds the greatest of the three numbers A, B and C and prints the result

Step 1 : If A>B assign A to X

Step 2 : If A>C assign A to X

Step 3 : If B>C assign B to X

Step 4 : Print X

The error in the above program:

Page 99: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

It does not work in case C > A

It does not work in case B > A

It does not work in case C > B

It does not work in case A = B = C

All of the above

Study the following program and answer the following questions :

Step 1 : A = 0

Step 2 : B = 0

Step 3 : If B > 1

Step 4 : A = A + 1

Step 5 : B = B + 1

Step 6 : GOTO 7

Step 7 : END IF 9

Step 8 : B = B - 1

Step 9 : Stop.

What is the value of B at termination of program?

A) <1 B) 0 C) 1 D) 2 E) none of the these

Object oriented language does not exhibit the following property:

Structured Programming

Private variables

Inheritance

Linking at runtime

Polymorphism

A) I B) II C) III D) IV E) V

Ingress is

A 3GL

An operating system

A structured query language

Programming language

e) RDBMS

Which of the following is not a natural member of the set

A) UNIX B)OS/2 C)PICK D)LAN E) VMS

Page 100: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

Which of the following is not a DBMS

ORACLE B) SYBASE C) PICK D) INFORMIX E) UNIFY

LOTUS 1-2-3 is a

Word processing S/w

Case tool

DBMS

Laser printer

None of the above

SECTION B

IF STATEMENT (1) ALONE IS SUFFICIENT, BUT STATEMENT (2) ALONE IS NOT

SUFFICIENT TO ANSWER THE QUESTION ASKED.

IF STATEMENT (2) ALONE IS SUFFICIENT, BUT STATEMENT (1) ALONE IS NOT

SUFFICIENT TO ANSWER THE QUESTION ASKED.

IF BOTH STATEMENT (1) AND (2) TOGETHER ARE SUFFICIENT TO ANSWER THE

QUESTION ASKED., BUT NEITHER STATEMENT ALONE IS SUFFICIENT.

IF EACH STATEMENT ALONE IS SUFFICIENT TO ANSWER THE QUESTIONS ASKED.

IF STATEMENTS (1) AND (2) TOGETHER ARE NOT SUFFICIENT TO ANSWER THE

QUESTION ASKED., AND ADDITIONAL DATA SPECIFIC TO THE PROBLEM ARE

NEEDED.

If a rope is cut into three pieces of unequal length, what is the length, what is the length of the

shortest of these pieces of rope ?

The combined length of the longer two pieces of rope is 12 metres

The combined length of the shorter two pieces of rope is 11 metres

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

A certain company paid bonuses of Rs.125 to each of its executive employees and Rs.75 to

each of its non-executive employees. If 100 of the employees were non-executive, how many

were executives?

The company has a total of 120 employees

The total amount that the company paid in bonuses to its employees was Rs.10,000

Page 101: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

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

What fraction of his salary did Mr. Johnson put into savings last wek?

Last week Mr. Johnson put Rs.17 into saving.

Last week Mr. Johnson put 5% of his salary into savings.

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

Each M-type memory that will increase the base memory capacity of a certain computer by 3

megabytes. What is the base memory capacity, in megabytes, of the computer?

2 M-type memory units will increase the computer's base memory capacity by 300%

The memory capacity of the computer after 2-M type memory units are added to the base

memory capacity, is 1.6 times the memory capacity of the computer aftgter 1 M-type unit is

added to the base memory capacity.

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

13) What fractional part of the total surface area of cube C is red?

Each of 3 faces of C is exactly 1/2 red

Each of 3 faces of C is entirely white.

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

SECTION C

INSTRUCTIONS: ALL NUMBERS USED ARE REAL NUMBERS FOLLOWING EACH QUESTIN ARE FIVE POSSIBLE ANSWERS LABELEDA), B), C), D), E). TICK THE BEST CHOICE.

How many of the integers between 25 and 45 are even?

A) 21 B) 20 C) 11 D) 10 E) 9

If taxi fares were Rs.1.00 for the first 1/5 mile and Rs.0.20 for each 1/5 miles thereafter, the taxi fare for a 3-mile ride was

A) Rs.1.56 B) Rs.2.40 C) Rs.3.00 D) Rs.3.80 E) Rs.4.20

16) A computer routine was developed to generate two numbers (X, Y) the first being a random number between 0 and 100 inclusive, and the second being less than or equal to the square root of the first. Each of the following pairs satisfies the routine EXCEPT

Page 102: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

A) (99.10) B) (85.9) C) (50.7) D) (1.1) E) (1.0)

17) A warehouse had a square floor with are 10,000 sq. metres. A rectangular addition was built along one entire side of the warehouse that increased the floor by one-half as much as the original floor. How many metres did the addition extend beyond the original building?

A) 10 B) 20 C) 50 D) 200 E) 500

A digital wristwatch was set accurately at 8.30 a.m. and then lost 2 seconds every 5 minutes. What time was indicated on the watch at 6.30 p.m. of the same day if the watch operated continuously that time?

A) 5:56 B) 5:58 C) 6.00 D) 6:23 E) 6:20

A 5 litre jug contains 4 litres of a saltwater solution that is 15 percent salt. If 1.5 litres of the solution spilts out of jug, and the jug is then filled to capacity with water, approximately what percent of the resulting solution in the jug is salt?

7.5% B) 9.5% C) 10.5% D) 12% E) 15%

A plane travelled K miles in the first 96 minutes of flight time. If it completed the remaining 300 miles of the trip in 1 minute, what was its average speed in miles per hour for the entire trip?

HCL (or) HCL Perot Systems (HPS) (or) HCL-CISCOsection 1

In this section there are mainly questions based on C language like

find the errors in the program and what is the output of the following program.

some question i remember are 

1) int i=10;

printf("%d %d %d",i++,i++,i--);

there is one or two more question on increment operator

2) Two question on redirection operator(>>)

3) int i=10;

if(1,i++,++i)

printf("The value for i is %d",i); 

4) one question on structure and u have to fine the error in the syntax

5) int a=10,b=33;

a=a^b;

b=a^b;

a=a^b;

printf("%d %d", a,b);

6) int *a;

int (*b)();

printf("%d %d",sizeof(a),sizeof(b);

7) # define SQR(a) (a*a)

void main()

Page 103: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

{

printf("%d", SQR(5));

}

8) And in another question # define directive is declared in the main() function of the program

and u have to predict the output of the program.? 

9) what is the time complexity of bubble sort (Ans: O(n^2))

10) what is the preorder traversal of the folowing tree

some tree is given (this is not the actual tree given in the paper only idea)

A

/ \

B C

/ \

D E

/ \

F G 

11) x=2,y=6,z=6

x=y==z;

printf(%d",x) 

12) What is the size of the address bus and data bus in 8086?

13) address of IVT in 8086?

Section II:

1) some 6 guys are there A,B,C,D,E,F(say) and u have to adjust in the row.

and some statements are there like A & D can't be adjacent 

E,A have one vacant area in between.. like that and there are 5 questions are based on that?

2) this one is tricky .. there are two groups . one is many brothers can mary one sister of other

group. and second is many sister can mary one brother of other group

and some statements are there like V & U is father of S, X is the only grandmother of S ...like

that..

And there are 6 question based on that..

3) and rest of questions are purely aptitude & quant based.

like there are two questions on coding if MYSORE is code like MEMEME

then how TAMILNADU is coded?

HCL (or) HCL Perot Systems (HPS) (or) HCL-CISCO

Section II - C Programming

1. Which of the following about the following two declaration is true

Page 104: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

i ) int *F()

ii) int (*F)()

Choice :

a) Both are identical

b) The first is a correct declaration and the second is wrong

c) The first declaraion is a function returning a pointer to an 

integer 

and

the

second is a pointer to function returning int

d) Both are different ways of declarin pointer to a function

Answer : c) The first de...

2. What are the values printed by the following program?

#define dprint(expr) printf(#expr "=%d\n",expr)

main()

{

int x=7;

int y=3;

dprintf(x/y);

}

Choice:

a) #2 = 2 b) expr=2 c) x/y=2 d) none

Answer: c)x/y=2

3. Which of the following is true of the following program

main()

{

char *c;

int *p;

c =(char *)malloc(100);

ip=(int *)c;

free(ip);

}

ans: The code functions properly releasing all the memory allocated

4.output of the following.

main()

{

int i;

char *p;

i=0X89;

p=(char *)i;

p++;

printf("%x\n",p); 

Page 105: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

}

ans:0X8A

5.which of the following is not a ANSI C language keyword?

ans:Function.

6. When an array is passed as parameter to a function, which of the 

following

statement is correct

choice:

a) The function can change values in the original array

b) In C parameters are passed by value. The funciton cannot change the

original

value in the array

c) It results in compilation error when the function tries to access 

the

elements in the array

d) Results in a run time error when the funtion tries to access the 

elements

in

the array

Answer: a) The fu...

7. The type of the controlling expression of a switch statement 

cannot 

be of

the type

a) int b) char c) short d)float e) none

Answer : d)float

8.What is the value of the expression (3^6) + (a^a)?

a) 3 b) 5 c) 6 d) a+18 e) None

Answer : 5 

9. What is the value assigned to the variable X if b is 7 ?

X = b>8 ? b <<3 : b>4 ? b>>1:b;

a) 7 b) 28 c) 3 d) 14 e) None

ans: 3;

10. Which is the output produced by the following program

main()

{

int n=2;

printf("%d %d\n", ++n, n*n);

}

a) 3,6 b) 3,4 c) 2,4 d) cannot determine

Answer : b) 3,4

11. What is th output of the following program?

Page 106: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

int x= 0x65;

main()

{

char x;

printf("%d\n",x)

}

a) compilation error b) 'A' c) 65 d) unidentified

12. What is the output of the following program

main()

{

int a=10;

int b=6;

if(a=3)

b++;

printf("%d %d\n",a,b++);

}

a) 10,6 b)10,7 c) 3,6 d) 3,7 e) none

Answer : d) 3,7

13. What can be said of the following program?

main()

{

enum Months {JAN =1,FEB,MAR,APR};

Months X = JAN;

if(X==1)

{

printf("Jan is the first month");

}

}

a) Does not print anything

b) Prints : Jan is the first month

c) Generates compilation error

d) Results in runtime error

Answer: b) Prints : Jan..

14. What is the output of the following program?

main()

{

char *src = "Hello World";

char dst[100];

Page 107: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

strcpy(src,dst);

printf("%s",dst);

}

strcpy(char *dst,char *src)

while(*src) *dst++ = *src++;

}

a) "Hello World" b)"Hello" c)"World" d) NULL e) unidentified

Answer: d) NULL

15. What is the output of the following program?

main()

{

int l=6;

switch(l)

{ default : l+=2;

case 4: l=4;

case 5: l++;

break;

}

printf("%d",l);

}

a)8 b)6 c)5 d)4 e)none

Answer : c)5

16. What is the output of the following program?

main()

{

int x=20;

int y=10;

swap(x,y);

printf("%d %d",y,x+2);

swap(int x,int y)

{

int temp;

temp =x;

x=y;

Page 108: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

y=temp;

}

a)10,20 b) 20,12 c) 22,10 d)10,22 e)none

Answer:d)10,22

17. What is the output of the following problem ?

#define INC(X) X++

main()

{

int X=4;

printf("%d",INC(X++));

}

a)4 b)5 c)6 d)compilation error e) runtime error

Answer : d) compilation error

18. what can be said of the following 

struct Node {

char *word;

int count;

struct Node left;

struct Node right;

}

a) Incorrect definition

b) structures cannot refer to other structure

c) Structures can refer to themselves. Hence the statement is OK

d) Structures can refer to maximum of one other structure

Answer :c)

19. What is the size of the following union.

Assume that the size of int =2, size of float =4 and size of char =1.

Union Tag{

int a;

flaot b;

char c;

Page 109: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

};

a)2 b)4 c)1 d) 7

20) What is the output of the following program? (. has been used to 

indicate

a

space)

main()

{

char s[]="Hello,.world";

printf(%15.10s",s);

}

a)Hello,.World...

b)....Hello,.Wor

c)Hello,.Wor....

d)None of the above

SECTION III - ANALYSIS PROGRAM SEGMENTS

1) Here is the structure declaration of a doubly linked list

struct dlink {

int nodeid;

struct dlink *next;

struct dlink *prev;

} dlink_t;

A pointer of the head of the linked list is maintained as a global 

variable,

whose definition is 

dlink_t *head;

The funtion remove_element(dlink_t *rp), needs to remove the node 

pointed to

the rp and adjust the head.

The first node's prev and the last node's next are NULL.

Page 110: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

remove_element(dlink_t *rp)

{

rp->prev->next = rp->next;

rp->next->prev = rp->prev;

if( head == rp)

head = rp->next;

Which of the following statement is true about the fution 

remove_element

A) It work when head is the same as rp

B) It does not work when rp is the last element on the list

c) It sets the head of the list correctly

D) It works in all cases

Answer :B) It does...

2) Consider the following function written in c:

#define NULL 0

char *

index(sp,c)

register char *sp,c;

{

do {

if(*sp == c)

return (sp);

} while (*sp++);

return NULL;

}

The first argument sp, is a pointer to a C string. The second

argument, c, is a character. This function scarches for the character

c, in the string. If it is found a pointer to that location is 

returned

else NULL is returned.

This function works

a) Always

b) Always, but fails when the first byte contais the character c

c) works when c is a non NULL character only

Page 111: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

d) Works only when the character c is found in the string

ans: a

03) What is printed when this program is executed 

main()

{

printf ("%d\n",f(7));

}

f(X)

{

if (x<= 4)

return x;

return f(--x);

}

a) 4

b) 5

c) 6

d) 7

ans: a

04) On a machine where pointers are 4 bytes long, what happens when 

the 

following code is executed.

main()

{

int x=0,*p=0;

x++; p++;

printf ("%d and %d\n",x,p);

}

a) 1 and 1 is printed

b) 1 and 4 is printed

c) 4 and 4 is printed

d) causes an exception

05) Which of the following is the correct code for strcpy, that is 

used to copy the contents from src to dest?

a) strcpy (char *dst,char *src)

while (*src)

Page 112: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

*dst++ = *src++;

}

b) strcpy (char *dst,char *src)

{

while(*dst++ = *src++)

}

c) strcpy (char *dst,char *src)

{

while(*src)

{ *dst = *src;

dst++; src++;

}

}

d) strcpy(char *dst, char *src)

while(*++dst = *++src);

}

ans:b

6) Consider the following program

main()

{

int i=20,*j=&i;

f1(j);

*j+=10;

f2(j);

printf("%d and %d",i,*j);

}

f1(k)

int *k;

{

*k +=15;

}

f2(x)

int *x;

{

int m=*x,*n=&m;

*n += 10;

}

Page 113: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

The values printed by the program will be

a) 20 and 55

b) 20 and 45

c) 45 and 45

d) 45 and 55

e) 35 and 35

7) what is printed when the following program is compiled and 

executed?

int 

func (int x)

{

if (x<=0)

return(1);

return func(x -1) +x;

}

main()

{

printf("%d\n",func(5));

a) 12

b) 16

c) 15

d) 11

08) COnsider the following of c code in two files which will be linked

together

and executed .

a.c

___

int i;

main()

{

i = 30;

f1();

printf("

Page 114: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

SECTION III - ANALYSIS PROGRAM SEGMENTS

1) Here is the structure declaration of a doubly linked list

struct dlink {

int nodeid;

struct dlink *next;

struct dlink *prev;

} dlink_t;

A pointer of the head of the linked list is maintained as a 

global

variable,

whose definition is

dlink_t *head;

The funtion remove_element(dlink_t *rp), needs to remove the 

node

pointed to

the rp and adjust the head.

The first node's prev and the last node's next are NULL.

remove_element(dlink_t *rp)

{

rp-prev-next = rp-next;

rp-next-prev = rp-prev;

if( head == rp)

head = rp-next;

Which of the following statement is true about the fution

remove_element

A) It work when head is the same as rp

B) It does not work when rp is the last element on the list

c) It sets the head of the list correctly

D) It works in all cases

Answer :B) It does...

Page 115: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

2) Consider the following function written in c:

#define NULL 0

char *

index(sp,c)

register char *sp,c;

{

do {

if(*sp == c)

return (sp);

} while (*sp++);

return NULL;

}

The first argument sp, is a pointer to a C string. The second

argument, c, is a character. This function scarches for the 

character

c, in the string. If it is found a pointer to that location is 

returned

else NULL is returned.

This function works

a) Always

b) Always, but fails when the first byte contais the character 

c

c) works when c is a non NULL character only

d) Works only when the character c is found in the string

ans: a

03) What is printed when this program is executed

main()

{

printf ("%d\n",f(7));

}

f(X)

{

if (x

<= 4)

return x;

return f(--x);

}

Page 116: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

a) 4

b) 5

c) 6

d) 7

ans: a

04) On a machine where pointers are 4 bytes long, what happens 

when the

following code is executed.

main()

{

int x=0,*p=0;

x++; p++;

printf ("%d and %d\n",x,p);

}

a) 1 and 1 is printed

b) 1 and 4 is printed

c) 4 and 4 is printed

d) causes an exception

05) Which of the following is the correct code for strcpy, that 

is

used to copy the contents from src to dest?

a) strcpy (char *dst,char *src)

{

while (*src)

*dst++ = *src++;

}

b) strcpy (char *dst,char *src)

{

while(*dst++ = *src++)

}

c) strcpy (char *dst,char *src)

{

while(*src)

{ *dst = *src;

dst++; src++;

}

}

d) strcpy(char *dst, char *src)

Page 117: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

{

while(*++dst = *++src);

}

ans:b

6) Consider the following program

main()

{

int i=20,*j=&i;

f1(j);

*j+=10;

f2(j);

printf("%d and %d",i,*j);

}

f1(k)

int *k;

{

*k +=15;

}

f2(x)

int *x;

{

int m=*x,*n=&m;

*n += 10;

}

The values printed by the program will be

a) 20 and 55

b) 20 and 45

c) 45 and 45

d) 45 and 55

e) 35 and 35

7) what is printed when the following program is compiled and 

executed?

int

func (int x)

Page 118: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

{

if (x

<=0)

return(1);

return func(x -1) +x;

}

main()

{

printf("%d\n",func(5));

}

a) 12

b) 16

c) 15

d) 11

08) COnsider the following of c code in two files which will be 

linked

together

and executed .

a.c

___

int i;

main()

{

i = 30;

f1();

printf("%d\n",i)

}

b.c

___

static int f1()

{

i+=10;

}

which of the following is true ?

a) a.c will fail in compilation phase because f1() is not 

declared

b) b.c will fail in compilation because the variable i is not 

Page 119: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

declared

c) will print 30

d) will print 40

e) a & b

ans: e) a & b

9) Consider the following prg

void funca (int *k)

{

*k += 20

}

void funcb (int *x)

{

int m=*x,*n = &m;

*n+=10;

}

main()

{

int var = 25,*varp=&var;

funca(varp);

*varp += 10;

funcb(varp);

printf ("%d and %d\n",var,*varp);

}

The values printed when the above prg is complied and executed

are:

a) 20 and 55

b) 20 and 45

c) 45 and 55

d) 55 and 55

e) 35 and 35

ans: d

10) consider the following program:

# include 

class x {

public:

int a;

x();

};

Page 120: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

x::x() { a=10; cout

<class b:public x {

public:

b();

};

b::b() { a=20; cout

<main ()

{ b temp;

}

what will be the output of this prg?

a) 10

b) 20

c) 2010

d) 1020

ans: b

Section IV - General Aptitude Section

1) In a murder case there are four suspects P,Q,R,S. Each of 

them

makes a statement. They are

p: "I had gone to the theatre with S at the time of the 

murder".

q: "I was playing cards with P at the time of the murder".

r: "Q didn't commit the murder".

s: "R is not the murderer".

Assuming the only one of the above statement is false and that 

one of

them is the murderer, who is the murderer?

a) P

b) Q

c) R

d) Cann't be concluded

e) S

and: E

2) Mohan earned twice as much as Deep. Yogesh earned rs.3/- more 

than

half as much as deep. If the amounts earned by 

Mohan,Deep,Yogesh

Page 121: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

are M,D,Y respectively, Which of the following is the correct 

ordering

of these amounts?

a) M 

< D < Y

b) M 

< Y < D

c) D 

< M < Y

d) It cann't be determined from the information given

e) D 

< Y < M

03) Statistics indicate that men drivers are involved in more

accidents than women drivers. Hence it may be concluded that

a) sufficiently information is not there to conclude anything

b) Men are actually better drivers but drive more frequently

c) Women Certainly drive more cautiously than Men

d) Men chauvinists are wrong about women's abilties.

e) Statistics sometimes present a wrong picture of things

04) What does the hex number E78 correspond to in radix 7 ?

a) 12455

b) 14153

c) 14256

d) 13541

e) 13112

ans:d

5)Given that A,B,C,D,E each represent one of the digits between 

1 and

9 and that the following multiplication holds:

A B C D E

X 4

--------------

E D C B A

--------------

what digit does E represent ?

Page 122: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

a) 4

b) 6

c) 8

d) 7

Ans: c

6) HCL prototyping machine can make 10 copies every 4 seconds. 

At this

rate, How many copies can the machine make in 6 min.?

a) 900

b) 600

c) 360

d) 240

e) 150

ans: a

7) if a=2,b=4,c=5 then

a+b c

----- - ---- =

c a+b

a) 1

b) 11/30

c) 0

d) -11/30

e) -1

ans: b

8) 10^2(10^8+10^8) =

--------------

10^4

a) 2(10)^4

b) 2(10)^6

c) 10^8

d) 2(10)^8

e) 10^10

Page 123: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

ans: b

9) Worker W produces n units in 5 hours. Workers V and W, 

workers

independently but at the same time, produce n units in 2 

hours.

how long would it take V alone to produce n units?

a) 1 hr 26 min

b) 1 hr 53 min

c) 2 hr 30 min

d) 3 hr 30 min

e) 3 hr 20 min

ans: d

10) if q < 0 and k = qr -s, then what is r in terms of k,q,s?

a) 2k+s

----

q

b) 2sk

----

q

c) 2(k-s)

-----

q

d) 2k+sq

-----

q

e) 2(k+s)

------

q

ans: e

11-15 is the reasoning Questions:

Occurs and Causes available in placement papers.com

Six knights - P,Q,R,S,T and U - assemble for a long journey in 

two

travelling parties. For security, each travelling party 

Page 124: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

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

16) 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

ans: e

17) 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

Page 125: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

c) P,S,T by the southern route

d) P,S,U by the southern route

e) Q,R,T by the southern route

ans: b

18) If one of the two parties of knights consists of U and two 

other

knights and travels by the northern route, the other memnbers 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

ans: c

19) 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

ans: a

20) 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

Page 126: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

e) T

ans: e

=======================================================================

======

There were three tests- technical 40 quest.(from

database, unix and C)

, apti - 25 and 1 programming part (It was to

implement circular queue)

One q on as an example ( i donnt remember exactly the

same q but it was looking like this)

---------------------

1

a c b c

X g c

--------

a o i f

g s d j

---------

g h h k

-------

4 q based on the above.-value of c, b, g etc.

GRE 13th edition-analytical ability page-389

Qs(1-4){ms Braun,mr white,mr black,ms green,mr

parker,mr allen)

page-394 Qs(37-39) {baseball team-miller craig hook

mizel}

six to seven question ask from R.S.AGGRWAL FOR THIS

YOU MUST READ THE STATEMENT AND CONCLUSION,DERIVING

CONCLUSION FROM PASSAGE,STATEMENT AND ASSUMPTIOM,

STATEMENT AND ARGUMENT FROM R,S.AGGRWAL VERBAL

REASONING.

1)A gambler bets on the team of seven players ABCDEFG

whose winning a-4 to 1 against b-4 to 1 against c-4 to

1 against d-4 to 1 against e-5 to 1 against f-6 to 1

Page 127: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

against g. how should he bet on g to set 20% profit.

2)If a person buy radio worth Rs 2468 and pay 7% sales

.how much price of radio should reduce to pay only Rs

2468.

3)what is vasu salary if salary of vasu is more than

rajan salary working in same company

i)vasu salary is 100 more than rajan salary.

ii)rajan found 2000 allowns which is 50 less than

vasu.

iii)basic salry of rajan is 1000.

i)only i is required ii)i & ii is required iii)i& iii

is required iv)i&ii&iii is required

v)none of these

4)if in 100 miles race 8 person is running winner take

9.8sec and fifth man takes 10.4 sec the time of 8 man

is in AP if in 4*100 meters realy of onside is 1,4,5,8

position then win by.

a).3 sec b).1 sec c).7 sec d).5 sec e)none

5)how many sons X have

qwe based on relation

i)

ii)

iii)

ans(data i,ii,iii is insufficient)

1). Piggy backing is a technique for

a) Flow control b) sequence c) Acknowledgement d)

retransmition

ans: c piggy backing

2). The layer in the OST model handles terminal

emulation

a) session b) application c) presentation d)

transport

3. Speed of the processor is given 35mhz,find the

time taken for 3 clock cycle.Ans=20 bits.

Page 128: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

4. To address a memory of 1 mb, How many bits are

required.Ans= 20 bits.

5. Semaphores used for .Ans=Synchronisation.

6. Termination emulation is done in which layer in

osi model. Ans =Application layer.

7. Which of the following involve context switch.

a. System call, b. Privileged instruction, c.

kernal mode,

d.None of these , Ans=d.

8.Given an employee table,Find the employee with the

second largest salary. ans: b application

9.OLE ans.winNT

10)IP address

11)SI*(*(f[])())()

12)In ANSI C which is such thing is not in Java.

13)typedef struct node

{

int

NODEPTR * NODE

}

14)Q. In signed magnitude notation what is the

minimum value that can be

represented with 8 bits

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

15)Q. there is an employer table with key feilds as

employer no. data in every n'th row are needed for a

simple following queries will get required results.

a) select A employe no. from employe A , where

exists from employe B where A employe no. = B employe

having (count(*) mod n)=0

b) select employe no. from employe A, employe B

where

Page 129: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

A employe no. = B employ no. grouply employe no.

having (count(*)

mod n=0 )

c) both a& b

d)none of the above

16. Piggybacking is done for, Ans=Acknowledgement.

17.WHICH IS NOT BASIC data type

ans.Char*

18.which of the following statement is valid for

string copy

char *srt,*ptr;

a)while(*str)

{

*str=*ptr;

++str=++ptr;

}

b)

while(*str)

{*++str=*++ptr};

c) d)

19) Two variable cannt have the same name in

a)function b) block c) file d)---

C Section

******************

20. #define inc(x) x++

main()

{

int t=1;

printf("%d",inc(t++));

}

21. one or two que for the complicated declaration.

22. Const char *a="Abcd";

char const *a="lmno";

base do this,Two que were there.

Page 130: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

23.char *p ;

char q[20];

24.int i,*p=&i;

p=malloc(10);

free(p);

printf("%d",p);

ans : garbage

25.int i=20,*j=&i

f(i)

printf("%d",i);

26.#define val 1+2

printf("%d%d",val/val,val^3)

ans : 3 9

27.#define "this" "#"

#define (x,y) x##y

printf("this","this is")

ans: compilation error (tested)

28.(2^2)+(a^a)

29. int a ,b=7

a=b<4?b<<1:b4?71:a

ans.3

30.one que on c++ class member function

ans.d

31.work of memory management unit.

32.who relate virtual memory to physical memory

ans.os

33.memory is allocated to variable

a)when declared b)when define c)...

34.question on double linked list

35. define success 1

define failure -1

if(condition)

Page 131: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

printf(success);

else

printf(failure);

ans success

36. main()

{

int var=25,varp;

varp=&var;

varp=10;

fun(varp);

printf(%d%d",var,varp);

ans a)45,45 b)55,55 c) 20,55;

37. u r given two statements

a=(10.15);

b=10,15;

if they are executed what is the output

printf("%d%d",a,b);

a)10,15 b)15,10 c)10,10 d)15,15

ans a

38. define null 0

ans=0;

39. #define inc(x) x++

main()

{

int t=1;

printf("%d",inc(t++));

}

ans.error

40.argument in funtion can be passed

1)by value 2)by refference 3)....

41.

main

{int x=1,y=2,z=3;

x=y==z;

printf(x);

}

Page 132: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

42.in switch float is not used

43.one question on register variable.

1.HCL has two divisions a) technology division b) application

division.if a

student opts for a) then he has to give 2 papers 1) 

aptitude(25 questions) 2)

technical(30 approx).if he opts for application field then he 

has

to give only

apti paper which is same as that of techni paper.

2.after the written results are declared the technology 

students

are given

another test of 15 minutes in which they have to write a C

program(reversing

string, reversing singly/doubly link list(FAVOURITE))and then

interview is

taken.

3.if you have good command in comp s then opt for technology

paper.

4.in apti(for tech people) if you do 8-10 out of 25 then it is 

on

safe side.

APTITUDE PAPER

question not in order.i dont remember all question.if you have

time practice

BARRON's analyttical ability.most q's from here.

1) BARRON section ANALYTICAL ABILITY page 396, practice 

excercises

question

1-4(edition of my book 1998 check out).quest like this miss 

Page 133: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

braun,

mr white,

miss green, mr parker etc.

2) BARRON section ANALYTICAL ABILITY page 401, practice 

excercises

question

37-39(edition of my book 1998 check out). base ball

team,pitchers-craig,hook.

3) the closing of the resturant by Mr.X on SEPT 1 was 

considered

an

unfinancial one, as the weather remained unusually clear and 

sunny

for another

one month.

An author who criticizes the act of Mr. X would be proved wrong 

if

the

following was true??

ANS choice a) the weather did not usually remained fine after 

SEPT

1.

4) SUSAN works in a company who has restricted its employees 

from

smoking

cigerrates in the canteen.As susan is the employee of the 

company

she does not

smoke cigerrate in the canteen.

Which of the following unused phrases strengthens the rules of 

the

company??

ANS the employees normally do not do the work for which the

company has

forbidden them to do.

Page 134: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

5) A q's on family relation was given like How many sons X has

I P is the

daughter of X

II some

condt.

III some

condt.

ANS al I ,II, III together are not sufficient.

6)a q's in which a name KAPIL is given he visits manoj's 

home.some

condts

given.

ANS b)

7)A,B,C,D are the 4 plays which are organised starting from

tuesday.find the

day on which C was played.in this 2 condt. will be given as

I.....................

II....................

ANS both I and II

8)a quest on crypto graphy like

A B C D

E F G H

----------------------------

..................... .is A=, find the other

values.

practice these types of quest.

9)a question on race was given.hell lot of condts.finally they

make a team for

4*100 metres medaly.

ANS E none of the above

10) a q's on profit and loss.(just brush up your concepts.)

Page 135: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

1). Piggy backing is a technique for

a) Flow control b) sequence c) Acknowledgement d)

retransmition

ans: c piggy backing

2). The layer in the OST model handles terminal emulation

a) session b) application c) presentation d) transport

ans: b application

3) ans: a odd numbers of errors

4)Q. In signed magnitude notation what is the minimum value

that can be

represented with 8 bits

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

5) c 20(no of address lines in 1MB of memory)

6) a 120(25 hz processor,what is the time taken by 

the

instr which

needs 3 clock cycles)

7) b synchronise the access(semaphores used for)

8) a system call(context switching is used in)

9) b the operating system(mapping of virtual to

physical address)

10) a 177333(conversion of HEX "0xFEDB"in octal)

11) d used as a network layer protocall in network 

and

windows(OLE)

system

Page 136: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

12) b has to be unique in the sub network(internet

address)

13)Q. there is an employer table with key feilds as employer 

no.

data

in every

n'th row are needed for a simple following queries will get

required

results.

a) select A employe no. from employe A , where exists from

employe B

where A employe no. = B employe having (count(*) mod n)=0

b) select employe no. from employe A, employe B where

A employe no. = B employ no. grouply employe no. having

(count(*)

mod n=0 )

c) both a& b

d)none of the above

14)Q. type duplicates of a row in a table customer with non

uniform key

feild

customer no. you can see

a) delete from costomer where customer no. exists

( select distinct customer no. from customer having count )

b) delete customer a where customer no. in

(select customer b where custermer no. equal to b custemor no. 

)

and a

rowid 

b rowid

c) delete customer a where custermor no. in

( select customer no. from customer a, customer b )

d) none of the above

15) which feature in ANSI C but not in JAVA.??ANS variable

arguments.

16)preprocessor does not do one of the following??ANS type

Page 137: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

checking.

17) long int size

a) 4 bytes b) 2 bytes c) compiler dependent d) 8 bytes

ans: compiler dependent

18) x=2,y=6,z=6

x=y==z;

printf(%d",x) ?ANS 1

19) class c : public A,publicB

a)2 members in class a,b can have member functions with same

name.

b)2 members in class a,c can have member functions with same

name.

c)both

d)none(ANS)

#######WHAT WILL BE THE I/O OF THE FOLLOWING ############

20) main()

{

char *p;

p=malloc(10);

free(p);

printf("%d",p);

}

ANS compilation error

21)a=(10,15)

b=10,15

what are the values of a & b in ANSI C

ANS 15,10

22)main(){

int x=10,y=15,z=16;

x=y==z;

printf("%d",x);

ANS 0

23)f(n) f(x)

{

Page 138: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

if(x

<=0)

return;

else f(x-1)+x;

}

find the value of fn(5)? ANS 15.

24)struct {

int det;

struct prevoius;

struct new;

}

delete(struct node)

{

node-prev-next=node-next;

node-next-prev=node-prev;

if(node==head)node

}

one element will be given.

ANS::it does not work when rp is the last element in the link

list.

25)A code will be given which searches a particular char in 

the

string.

ANS:: it always works.

26)main()

{

int var =25,varp;

varp=&var;

varp p=10;

fnc(varp);

printf("%d%d",var,varp);

}

ANS::55,55 (check this out)

27)#define VALUE 1+2

main()

{

printf("%d and %d\n",VALUE/VALUE,VALUE*3);

}

Page 139: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

ANS:: 5,7

28)What is the value assigned to the variable a if b is 7

a=b8?b<<2:b4?b1:b;

ANS::3

29)the value of the following expr (2^3)+(a^a) is

a) 1 b)2 c) 3 d) insufficient data

30) which of the following is not basic data type

ANS char*

31)the declaration of the variable does not result in one of 

the

following

ANS allocatrion of the storage space for the varable.

32)in C parameters are passed by

ANS:: value only.

33)2 variables cannot have the same name if they are

ANS:: in the same block.

34)a static funct. say s(),in as file f.c can be invoked from

ANS all functs. in f.c after the definitions of s.

35)macros and functions do not differ in the following aspects

ANS::variable no of arguments.

36)one q's in which he will give some different forms of 

STRCPY

function you

will have to find out which form is correct.

Page 140: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

SATYAM

Paper 1--General Aptitude

Directions: Each question given below consists of a word, followed by four words or phrases.

Choose the lettered word or phrase that is most nearly opposite in meaning to the word in the

question.

Antonyms

1. Disregarded

(a) heed

(b) hopeful

(c) evade

(d) dense

Ans. (a)

2. Obviate

(a) becloud

(b) necessitate

(c) rationalize

(d) execute

Ans. (b)

3. Superficial

(a)  profound

(b) exaggerated

(c) subjective

(d) spirited

Ans. (a)

4. Abide

(a) retract an offer

(b) refuse to endure

(c) shield from harm

(d) exonerate

Ans. (b)

Page 141: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

6. A Brown female could have had

I. a grandfather born Red

II. a grandmother born Red

III. two grandfathers born Brown

(a) I only

(b) II only

(c) I and II only

(d) II and III only

(e) I,II and III

Ans. (c)

7. A male born into the Brown group may have

(a) an uncle in either group

(b) a Brown daughter

(c) a Brown son

(d) a son-in-law born into the Red group

(e) a daughter-in-law in the Red group

Ans. (a)

8. Which of the following is not permitted under the rules stated?

(a) A Brown male marrying his father's sister

(b) A Red female marrying her mother's brother

(c) A man born Red, who is now a widower, marrying his brother's widow

(d) A widower marrying his wife's sister

(e) A widow marrying her divorced daughter's ex-husband

Ans. (b)

9. If widowers and divorced males retained the group they had upon marrying, which of the

following would have been permissible? (Assume no previous marriages occurred)

(a) A woman marrying her dead sister's husband

(b) A woman marrying her divorced daughter's ex-husband.

(c) A widower marrying his brother's daughter

(d) A woman marrying her mother's brother, who is a widower

(e) A divorced male marrying his ex-wife's divorced sister

Ans. (d)

Page 142: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

Questions 10-13

Tom wishes to enroll in Latin AA, Sanskrit A, Armenian Literature 221, and Celtic Literature

701.

Latin AA meets five days a week, either from 9 to 11 A.M or from 2 to 4 P.M.

Sanskrit A meets either Tuesday and Thursday from 12 noon to 3 P.M., or Monday,

Wednesday, and Friday

from 10 A.M to 12 noon.

Armenian Literature 221 meets either Monday, Wednesday, and Friday from 12:30 to 2 P.M.,

or Tuesday and Thursday

from 10:30 A.M to 12:30 P.M

Celtic Literature 701 meets by arrangement with the instructor, the only requirement being

that it meet for one four-hour session or two two-hour sessions per week, between 9A.M and

4 P.M from Monday to Friday, beginning on the hour.

10. Which combination is impossible for Tom?

(a) Latin in the morning, Sanskrit on Tuesday and Thursday, and Armenian Literature on

Monday, Wednesday, Friday

(b) Latin in the afternoon and Sanskrit and Armenian Literature on Monday, Wednesday, and

Friday.

(c) Latin in the afternoon, Sanskrit on Monday, Wednesday, and Friday,and Armenian

Literature on Tuesday and Thursday

(d) Latin in the morning and Sanskrit and Armenian Literature on Monday, Wednesday, and

Friday

(e) Latin in the afternoon, Armenian Literature on Monday, Wednesda and Friday, and Celtic

Literature on Tuesday

Ans. (d)

11. Which of the following gives the greatest number of alternatives for scheduling Celtic

Literature, assuming that all other courses

(a) Latin in the afternoon and Armenian Literature Monday, Wednesday and Friday

(b) Sanskrit on Tuesday and Thursday and Armenian Literature on Monday, Wednesday and

Friday

(c) Latin in the afternoon and Armenian Literature Tuesday and Thursday

(d) Latin in the morning and Sanskrit on Tuesday and Thursday

(e) Sanskrit on Monday, Wednesday, and Friday. and Armenian Literature on Tuesday and

Thursday

Ans. (a)

Page 143: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

12. If the Celtic instructor insists on holding at least one session on Friday, in which of the

following can Tom enroll?

(I) Armenian Literature on Monday, Wednesday, and Friday

(II) Sanskrit on Monday, Wednesday, and Friday

(a) I only

(b) II only

(c) both I and II

(d) I or II but not both

(e) neither I nor II

Ans. (d)

13. Which of the following additional courses, meeting as indicated, can Tom take?

(a) Maths--Monday, Wednesday, and Friday from 10A.M to 12 noon

(b) French--Monday, Wednesday, and Friday from 11A.M to 12:30 P.M

(c) English--Tuesday and Thursday from 2 to 4 P.M

(d) Japenese--Tuesday and Thursday from 1 to 3 P.M

(e) Old Norse-Icelandic--Monday only from 12 to 3 P.M

Ans. (b)

 Questions 14-18

(1) Ashland is north of East Liverpool and west of Coshocton

(2) Bowling Green is north of Ashland and west of Fredericktown

(3) Dover is south and east of Ashland

(4) East Liverpool is north of Fredricktown and east of Dover

(5) Fredricktown is north of Dover and west of Ashland

(6) Coshocton is south of Fredricktown and west of Dover

14. Which of the towns mentioned is furthest to the northwest ?

(a) Ashland

(b) Bowling Green

(c) Coshocton

(d) East Liverpool

(e) Fredericktown

Ans. (b)

Page 144: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

15. Which of the following must be both north and east of Fredricktown?

(I) Ashland

(II) Coshocton

(III) East Liverpool

(a) I only

(b) II only

(c) III only

(d) I and II

(e) I and III

Ans. (e)

16. Which of the following towns must be situated both south and west of at least one other

town?

(a) Ashland only

(b) Ashland and Fredricktown

(c) Dover and Fredricktown

(d) Dover,Coshocton and Fredricktown

(e) Dover,Coshocton and East Liverpool

Ans. (d)

17. Which of the following statements, if true, would make the information in the numbered

statements more specific?

(a) Coshocton is north of Dover

(b) East Liverpool is north of Dover

(c) Ashland is east of Bowling Green

(d) Coshocton is east of Fredericktown

(e) Bowling Green is north of Fredericktown

Ans. (a)

18. Which of the numbered statements gives information that can be deduced from one or

more of the other statement?

(a) (1)

(b) (2)

Page 145: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

(c) (3)

(d) (4)

(e) (6)

Ans. (c)

 

Questions 19-22

Spelunkers International offers exploring tours in eight caves: Abbott, Benny, Caeser,

Dangerfield, Ewell, Fields, Guinness, and Hope

(1) Class 1 spelunkers may not attempt cave Ewell, Fields or Hope

(2) Class 2 spelunkers may not attempt Hope

(3) Class 3 spelunkers may attempt any cave

(4) Cave Caesar may be attempted only by spelunkers who have previously explored cave

Benny

(5) Cave Fields may be attempted only by spelunkers who have previously explored cave

Ewell

(6) Only two of caves Benny, Caeser, Ewell, Fields, and Hope may be attempted by any

explorer in a single tour

19. A class 2 spelunker who has previously explored cave Ewell may be restricted in

choosing a tour by which rule(s)?

(I) Rule(4)

(II) Rule(5)

(III) Rule(6)

(a) I only

(b) II only

(c) I and III only

(d) II and III only

(e) I, II and III

Ans. (c)

20. In how many different ways may a class 1 spelunker who has never explored any of the

eightcaves before set up a tour of three caves, if she wishes to explore caves Abbott and

Caesar?

(a) 2

(b) 3

(c) 4

Page 146: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

(d) 5

(e) 6

Ans. (b)

21. What is the maximum number of caves that a class 3 spelunker who has previously

explored only cave Benny may include

in a single tour?

(a) 4

(b) 5

(c) 6

(d) 7

(e) 8

Ans. (b)

22. If x + y = 3 and y/x= 2 then y = ?

(a) 0

(b) 1/2

(c) 1

(d) 3/2

(e) 2

Ans. (e)

23. How many squares with sides 1/2 inch long are needed to cover a rectangle that is 4 ft

long and 6 ft wide

(a) 24

(b) 96

(c) 3456

(d) 13824

(e) 14266

24. If a=2/3b , b=2/3c, and c=2/3d what part of d is b/

(a) 8/27

(b) 4/9

(c) 2/3

(d) 75%

(e) 4/3

Page 147: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

Ans. (b)

25. Successive discounts of 20% and 15% are equal to a single discount of

(a) 30%

(b) 32%

(c) 34%

(d) 35%

(e) 36

Ans. (b)

26. The petrol tank of an automobile can hold g liters.If a liters was removed when the tank

was full, what part of the full tank was removed?

(a)g-a

(b)g/a

(c) a/g

(d) (g-a)/a

(e) (g-a)/g

Ans. (c)

27.If x/y=4 and y is not '0' what % of x is 2x-y

(a)150%

(b)175%

(c)200%

(d)250%

Ans. (b)

28.If 2x-y=4 then 6x-3y=?

(a)15

(b)12

(c)18

(d)10

Ans. (b)

29.If x=y=2z and xyz=256 then what is the value of x?

(a)12

Page 148: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

(b)8

(c)16

(d)6

Ans. (b)

30. (1/10)18 - (1/10)20 = ?

(a) 99/1020

(b) 99/10

(c) 0.9

(d) none of these

Ans. (a)

31. Pipe A can fill in 20 minutes and Pipe B in 30 mins and Pipe C can empty the same in 40

mins.If all of them work together, find the time taken to fill the tank

(a) 17 1/7 mins

(b) 20 mins

(c) 8 mins

(d) none of these

Ans. (a)

32. Thirty men take 20 days to complete a job working 9 hours a day.How many hour a day

should 40 men work to complete the job?

(a) 8 hrs

(b) 7 1/2 hrs

(c) 7 hrs

(d) 9 hrs

Ans. (b)

33. Find the smallest number in a GP whose sum is 38 and product 1728

(a) 12

(b) 20

(c) 8

(d) none of these

Ans. (c)

Page 149: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

34. A boat travels 20 kms upstream in 6 hrs and 18 kms downstream in 4 hrs.Find the speed

of the boat in still water and the speed of the water current?

(a) 1/2 kmph

(b) 7/12 kmph

(c) 5 kmph

(d) none of these

Ans. (b)

35. A goat is tied to one corner of a square plot of side 12m by a rope 7m long.Find the area it

can graze?

(a) 38.5 sq.m

(b) 155 sq.m

(c) 144 sq.m

(d) 19.25 sq.m

Ans. (a)

SOME QUESTIONS WHEREIN TWO STATEMENTS ARE GIVEN ARE ALSO THERE

WHERE YOU HAVE TO TELL WHICH STATEMENT IS CORRECT

SOME QUESTIONS ALSO APPEARED FROM THE BARRON'S GMAT GUIDE.

PAGE NO. 439 PASSAGE AND QUESTIONS 1 TO 9

PAGE NO. 440-441

PAGE 442 PASSAGE 2

ALSO REFER TO BARRON'S GRE BOOK FOR ADDITIONAL ANALYTICAL QUESTIONS.

Paper 2--General Awareness

1. Who is the father of computers

2. Expand HTML,DMA,FAT,LAN,WAN,FDDetc

3. Which was intel's first microprocessor

4. Convert 1024 (in decimal) to octa and hexadecimal form

5. First microprocessor was

(a) 8085

(b) 8088

(c) 8086

(d) 80487

6. Give the name of a processor produced by mortorola?

Page 150: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

7. What is the full form of WindowsNT ?

8. What is the difference between 8087 and 8086

SATYAM PAPER ON 18 JAN 2004

wRITTEN EXAM

2) ARITHMATIC QUESTATION BUT SOME WHAT LOGICAL

4)Rahul made mistake while doing home work in hurry he has writen 12*84 for 21*48and 13*43 for 31*34 but after all 5 questions overall ans is correctwhat are the remiaing 3 he has writen

some choices are given

5) A man want to buy 100 tons of food for his pets,three types food for cows,pigs,chickenschicken's food is costly $1 for 1 tonn ,cows food grass $5 for 1 tonn,pigs $3 for 1 tonnhow can he take all three for $100 

choices are given 

6)7)8)9)10)Ajay asked his grand mother asked her age she answered in an logical way I have 6 children and gap between then is 4 years and i had my first child ur uncle ramuwhen i was 19. i had my last ur aunt and she is 19 nowwhat is the age of his grad mother

11)One of the finest ways of talking to ajay is that he say everything in a togicla wayone of that is saying nagative way once i ased for some number he said this this

I: is the number below 50He: YesI: Is it below 26He: yes and it is not a perfect squarI Is it an odd numberHe: NOsome thing like this

what is the numberchoices a) 25 b) c)36 d)49 e)noneans d 49

12)one on day Grand mother asked anil when are u going to school he said thatI am going from one week before while couting from yesterday (some thing like this)he said it on sundaywhat is the daya)Monday b)Tues c)wed d)fri e)none

13)figurative

14)A figure is given and asked to the squars in that figure

15) some data is given in two colum table and asked a question on thatvery easy one

Page 151: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

SATYAM COMPUTER SYSTEMS Ltd.

The paper was consisted of two sections.

One technical 'C' test with 50 questions and other test quantitaive.

TeChnical test: 'c'; Q:50; TIME:60 MINUTES

APTITUDE:Q:30; TIME:40 MINUTES

FOR TECHNICAL TEST REFER LATEST VERSION OF "TEST YOUR SKILLS IN 'C'" BY KANITHKAR. HERE I GIVE ONLY THE QUESTIONS No. BUT SOME OF THE QUESTIONS

WERE EXACT AND SOME OTHERS NEARLY EXACT (change of variables) AND OTHERS WERE JUST FOR REFERENCE. I HOPE YOU WILL GET THE ANSWERS FOR THIS.

TECHNICAL TEST 'C'

QUESTIONS NoS.

1.5,1.9,1.16,1.22,1.23,1.26

2.8,3.8,3.13/4/5/6

7.13,7.14,8.1,8.2,8.3,8.4,8.5,8.17

9.1,9.16,10.1,10.4

14.2,14.12,14.18,15.4,19.1,19.10

2)main()

{

typedef char* node1;

typedef node2 char*;

node1 p1,p2;

node2 p3,p4;

}

a) all are pointers

b) except p2,p4

c) except p4 ans.

d)error

APTITUDE:

The paper was mainly consisted of flowcharts and loops.The loop was very long which takes time to evaluate.But u can solve nearly 20 which is much more sufficient to go thr' interview.

FOR EXAMPLE: 

Page 152: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

A)

1) LET N=100

2) DIVIDE N BY 10 AND STORE THE REMAINDER IN Q

3) DIVIDE N BY 10 AND STORE THE QUOTIENT IN R

4) IF Q=R GO TO STEP 2

5) PRINT N

6) GO TO STEP 2

THE ABOVE OUTPUT IS:

10,12,34,54,66,.......

32,45,65,78,.....

7,45,68,98,...

NONE OF THESE

B) SITA IS BANK EMPLOYEE. SHE HAS GOT MARRIED AND HAS 2 CHILDREN BASED ON THE FLOWCHART, DETERMINE THE DEPOSIT

ANS: REJECTED

C) A GIRL WAS BORN IN 16 JUNE 1975. SOME STUFFS HERE

ANS: INADEQUATE DATA

(HERE PRESENT DATE IS NOT KNOWN...... BE CAREFUL!)

D) SOME FLOW CHART. CARS1 AND CARS2 .DETERMINE THE EQUATION

ANS: 4X+8Y

E) ALL ARE SAME AS Q.No.A ONLY. YOU HAVE TO DO IT THERE ITSELF

THE FOLLOWING PAPER WAS CONDUCTED IN IIT-99

ANTONYMS:

1)disregarded A) heed

2) GRE book pg no. 407 q.no. 13-16 para ie:in a certain society....

3)GRE .............446, 8th quest A) 1

4)GRE..............487, 8th.....

5).................488, 14th......

6).................513, 4 &8 .....

7) if A+B+C+D is a +ve no's then

a) one must be +ve no's

b) two ..............

Page 153: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

c)three .............

d)all ................

8) GRE pg no.586 32nd qst.

9)if x+y =3 and y/x=2 then y=

a)0 b) 1/2 c)1 d)3/2 e)2

17) how many squares with sides 1/2 inch long are needed to cover a rectangle that is 4 feet long & 6feet wide

a)24 b)96 c)3456 d)13824 e)14266

18)GMAT pg.no. 439 passage 1 with question 1to9 on pg.440-441 excluding qst.no.2

GMAT pg.442 passage. 2 excluding q.nos.11, 15.

20) successive discounts of 20% and 15% are equal to a single discount of ;

a)30% b) 32% c)34% d) 35% e)36% ans) 32%

if x/y =4 and y is not '0' what % of 'x' is '2x-y'

ans:175% if x=y=2z and xyz =256 then x=

ans: 8

23)if 2x-y=4 then 6x-y is ans:12

1-8 q's on bus route. a b c d e

a x 8 15 20 7

b 6 x 9 13 21 

c 10 12 x 3 11

d 9 1 18 x 5

e 3 4 17 14 x

where x is starting point.a&e are first and last stations.and b,c,d are intermediate stations. fig's are no. of passengers.cost of ticket is 0.7Rs /pass.

between any successive stations. based on this few q's were given. the fig's are not correct. q's like total no.of pass.in onward journey. Rest of q's are

2 statements were given. u have to answer they are correct or not little bit easy.

section3

simple q's from r.s agarwal_quantitative apt.

1.1/10power18 - 1/10power20 .....value?

2.pipes-leaking-cisterns. 

paper2

Page 154: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

1.general awareness.2.

1.father of computers

2.expand HTML,DMA,FAT,LAN,WAN,FDDetc

3.intel's first micropro...a.pentium b.pentiumproetc

4.1024(dec)convert to hexa&octal

5.first micro.pro.a)8085b)8088etc

6..motorola's processor name?

7.windows_NT expand

8.simple programs on pascal&c

9.diff between 8087,8086 (which is latest vers.)

10.some basic q's on GUI.

11.q's on IBMpc

12.one program on finding factorial

SATYAM PAPER

Half an hour aptitude test comprising of 15 questions, each correct question carries a single

mark and a wrong question has a 1/4 negative marks i.e-1/4.

Remember negative marking will be there, don?t try to guess the answers. First choose the

questions which are easy and not lengthy. Believe me many question were very easy but only

thing is they will try to confuse you .

Written test is only APTITUDE .Does not contain any technical questions. Most of the

questions were from ?QUATITATIVE APTITUDE BY R.S AGGARWAL? and ?SHAKUNTALA

DEVI?S PUZZLE BOOKS?. No verbal questions i.e no synonyms and antonyms.

I don?t remember the all the questions ,I am sending all the questions I remember but not in

order.

a) Question on Data interpretation : Question no. 12 FROM PAGE 514 

b) Question on Data interpretation : Question no. 3 FROM PAGE 492

c) Question on series :

97, 114, 133, ?

Ans: 154

Page 155: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

d) Question of series but there were numbers instead of numbers. I don?t remember the

series but I just give a idea of such question.

R, T, P, R, U , P , ?

e) Question on counting the number of triangles ,given a big diagram.

f)One Question was like this:

if bag of black and white balls are given and told you to pick any two if they are of same color

throw them out and add a single ball of other color from the infinitely available pool. if this

process of throwing out 2 and adding 1 continues, then eventually the bag gets emptied. if the

exact status of number of black and white balls are given then ,==èsome question was given

and answers had 3 choices

i) black ii)white iii)data is not sufficient

g) Very first question had 11 sentences, If figures out a number. you need to use these

sentences and find that number.

Ex:

1) Either 11 sentence is true or 10 sentence

2) Any one of sentence 8 or nine is false.

3) ??.

??..

10)the required number is a perfect quare

11)the required number is a odd number

some stuff like this. These type of question takes much time. Attend such questions at last.

h) Question on finding the door numbers of two friends. some 5 or 6 conditions were given.

similar kind of problem can be found in ?SHAKUNTHALA DEVI PUZZLE BOOKS?

I remember only these many questions.I don?t know whether they are going to repeat the

same paper or not but one thing the pattern and the types of questions will be same as I even

compared to the previous question papers available in CHETANA PAPERS. 

Group discussion:

Page 156: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

The main elimination round of the SATYAM . Each group contains 8 members.For my batch

HR asked us to suggest us the topic and all 8 suggested 8 topics out of which HR choose a

topic and it was ? DO YOU PREFER ABROAD EDUCATION OR INDIAN EDUCATION ? We

were given two minute time to note down the points.

I thought Indian education is good but many would go for that topic. so I thought of arguing

toward the ABROAD EDUCATION and I started the discussion. As I thought earlier all the 7

were towards INDIAN EDUCATION and only I was against it. So I got much of the opportunity

to speak and argue. i was defending all the 7. Discussion was very nice. The discussion went

on for 15 ? 20 minutes( a bit long time compared to other as our discussion for good).Even

HR was very friendly and he also participated as one of the participant which gave me still

more confidence.

TIPS for GD: 

a) Be careful while you choose to discuss towards the topic or against the topic.

b) Predict how others may depend and write downs short points in a scrap paper.

c) If possible try to start first , if not no problem but try to speak atleast not keep mum.

d) Be fixed to your attitude, it is if the opposite person argues strongly don?t leave your topic

go towards others.

e) Never be in a neutral state i.e talking both towards as well as against. One girl in our batch

did so. She was accepting both the arguments and she was eliminated.

f) It?s a discussion don?t make it as DEBATE ,be cool. Don?t jump on others. They test your

patience too when you are at heavy argument.Patience doesn?t mean silence but talk

smoothly , try to convince your offenders.

g) Always have a smiling face, that will carry you towards the success.

h) Finally don?t forget the conclude the discussion highlighting your strong points.

TECHNICAL AND INTERVIEWS:

Finally technical and HR round were together.

These questions surely based on the person who interviews you.

TECHINICAL:- Explanation of your project will a must, Only Project which you have done in

your final sem will be considered and you need to face many questions on your project.So

brush up your final sem project well.

Questions on FAFL .

Page 157: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

A) Define FINATE AUTOMATA

B) NFA

C) DFA

D) RELATED QUESTIONS

Questions on c,c++

malloc,calloc, their differences,syntax

OPERATING SYSTEM

Process scheduling algorithms (ex:- round robin ????)

Virtual memory

Cache memory

Networks:

Routing algorithms.

Many more questions which I don?t remember.YOUR CONFIDENCE PLAYS A KEY ROLE.

HR INTERVIEW:

As usual 

TELL ABOUT YOURSELF

FUTURE ASPIRATIONS

HOBBIES

POSITIVE AND NEGATIVE POINTS IN YOURSELF.

-------------------------------------------------------------------

Interview Question at Satyam for JAVA platform holding 3 yrs of Exp 

-------------------------------------------------------------------

1) What is diffrence between StateFul and Stateless Session Bean?

A Stateful Session Bean is a bean that is designed to service business processes 

Page 158: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

that span multiple method requests or transactions. Stateful Session beans 

retain state on behalf of an individual client. Stateless Session Beans do not 

maintain state.

EJB containers pools stateless session beans and reuses them to service many 

clients. Stateful session beans can be passivated and reused for other clients. 

But this involves I/O bottlenecks. Because a stateful session bean caches client 

conversation in memory, a bean failure may result in loosing the entire client 

conversation. Therefore, while writing a stateful session bean the bean 

developer has to keep the bean failure and client conversation loss in mind. 

In case of stateless session beans, client specific data has to be pushed to the 

bean for each method invocation which will result in increase in the network 

traffic. This can be avoided in a number of ways like persisting the client 

specific data in database or in JNDI. But this also results in I/O performance 

bottlenecks. 

If the business process spans multiple invocations thereby requiring a 

conversation then stateful session bean will be the ideal choice. On the other 

hand, if business process lasts only for a single method call, stateless session 

bean model suits. 

Stateful session beans remembers the previous request and responses. But 

stateless beans do not. stateful does not have pooling concept, whereas the 

stateless bean instances are pooled

-------------------------------------------------------------------

2) What is difference between BeanMangedPersistance and ContainerMangedPersistance?

CMP: Tx behaviour in beans are defined in transaction attributes of the methods

BMP: Programmers has to write a code that implements Tx behaviour to the bean class.

Tuned CMP entity beans offer better performance than BMP entity beans. Moving 

towards the CMP based approach provides database independence since it does not 

contain any database storage APIs within it. Since the container performs 

database operations on behalf of the CMP entity bean, they are harder to debug. 

BMP beans offers more control and flexibility that CMP beans.

Page 159: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

Diff 1) In BMP you will take care of all the connection and you write the SQL 

code inside the bean whereas in CMP the container will take care of it

Diff 2) The BMP is not portable across all DB's.whereas the CMP is

-------------------------------------------------------------------

(3)Draw and explain MVC architecture?

MVC Architecture is Module- View-Controller Architecture. Controller is the one 

which controls the flow of application / services the requests from the View. 

Module is the other layer which performs the exact operations. Each layer should 

be loosely coupled as much as possible.

-------------------------------------------------------------------

(4)Difference between forward(request,response) and SendRedirect(url) in Servlet?

With Forward, request & response would be passed to the destination URL which 

should be relative (means that the destination URL shud be within a servlet 

context). Also, after executing forward method, the control will return back to 

the same method from where the forward method was called. All the opposite to 

the above points apply to sendRedirect.

(OR)The forward will redirect in the application server itself. It does not come 

to the client. whereas Response.sendredirect() will come to the client and go 

back ...ie. URL appending will happen.

-------------------------------------------------------------------

(5)What is Synchornize?

Synchronize is a technique by which a particular block is made accessible only 

by a single instance at any time. (OR) When two or more objects try to access a 

resource, the method of letting in one object to access a resource is called sync

-------------------------------------------------------------------

Page 160: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

(6)How to prevent Dead Lock?

Using synchronization mechanism. 

For Deadlock avoidance use Simplest algorithm where each process tells max number 

of resources it will ever need. As process runs, it requests resources but never 

exceeds max number of resources. System schedules processes and allocates resoures 

in a way that ensures that no deadlock results.

-------------------------------------------------------------------

7)Explain different way of using thread? :

The thread could be implemented by using runnable interface or by inheriting 

from the Thread class. The former is more advantageous, 'cause when you are 

going for multiple inheritance..the only interface can help

-------------------------------------------------------------------

(8)what are pass by reference and passby value?

Pass By Reference means the passing the address itself rather than passing the 

value. Passby Value means passing a copy of the value to be passed. 

-------------------------------------------------------------------

(9)How Servlet Maintain Session and EJB Maintain Session?

Servlets maintain session in ServleContext and EJB's in EJBContext.

-------------------------------------------------------------------

(10)Explain DOM and SAX Parser?

DOM parser is one which makes the entire XML passed as a tree Structure and 

will have it in memory. Any modification can be done to the XML. 

Page 161: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

SAX parser is one which triggers predefined events when the parser 

encounters the tags in XML. Event-driven parser. Entire XML will not be stored 

in memory. Bit faster than DOM. NO modifications can be done to the XML. 

-------------------------------------------------------------------

(11)What is HashMap and Map?

Map is Interface and Hashmap is class that implements that and its not 

serialized HashMap is non serialized and Hashtable is serialized

-------------------------------------------------------------------

(12)Difference between HashMap and HashTable?

The HashMap class is roughly equivalent to Hashtable, except that it is 

unsynchronized and permits nulls. (HashMap allows null values as key and value 

whereas Hashtable doesnt allow). HashMap does not guarantee that the order of 

the map will remain constant over time.

-------------------------------------------------------------------

(12a) Difference between Vector and ArrayList?

Vector is serialized whereas arraylist is not

-------------------------------------------------------------------

(13)Difference between Swing and Awt?

AWT are heavy-weight componenets. Swings are light-weight components. Hence 

swing works faster than AWT.

-------------------------------------------------------------------

14) Explain types of Enterprise Beans?

Session beans -> Associated with a client and keeps states for a client 

Page 162: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

Entity Beans -> Represents some entity in persistent storage such as a database 

-------------------------------------------------------------------

15) What is enterprise bean? 

Server side reusable java component

Offers services that are hard to implement by the programmer

Sun: Enterprise Bean architecture is a component architecture for the 

deployment and development of component-based distributed business applications. 

Applications written using enterprise java beans are scalable, transactional and 

multi-user secure. These applications may be written once and then deployed on 

any server plattform that supports enterprise java beans specification.

Enterprise beans are executed by the J2EE server.

First version 1.0 contained session beans, entity beans were not included.

Entity beans were added to version 1.1 which came out during year 1999.

Current release is EJB version 1.2

-------------------------------------------------------------------

16)Services of EJB?

Database management :

?Database connection pooling

?DataSource, offered by the J2EE server. Needed to access connection pool of the server.

?Database access is configured to the J2EE server -> easy to change database / database

driver

Transaction management :

?Distributed transactions

?J2EE server offers transaction monitor which can be accessed by the client.

Security management :

?Authetication

?Authorization 

Page 163: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

?encryption

Enterprise java beans can be distributed /replicated into separate machines

Distribution/replication offers

?Load balancing, load can be divided into separate servers.

?Failover, if one server fails, others can keep on processing normally.

?Performance, one server is not so heavy loaded. Also, for example Weblogic has thread

pools for improving performance in one server.

-------------------------------------------------------------------

17)When to choose EJB? 

Server will be heavy loaded :

?Distribution of servers helps to achieve better performance.

Server should have replica for the case of failure of one server:

?Replication is invisible to the programmer

Distributed transactions are needed "

?J2EE server offers transaction monitor that takes care of transaction management.

?Distributed transactions are invisible to the programmer

Other services vs. money :

Weblogic J2EE server ~ 80 000 mk and Jbuilder X Professional Edition ~ 5 000mk

-------------------------------------------------------------------

18)Why not to use free J2EE servers?

?no tecnical support

?harder to use (no graphical user interface ...)

?no integration to development tools (for example, Jbuilder)

?Bugs? Other problems during project?

-------------------------------------------------------------------

Page 164: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

19) Alternative:Tuxedo

Tuxedo is a middleware that offers scalability services and transaction monitors.

C or C++ based.

Can be used with Java client by classes in JOLT package offered by BEA.

Faster that J2EE server?

Harder to program?

Harder to debug?

Implementation is platform dependent.

-------------------------------------------------------------------

20) J2EE server offers

DataSource:

?Object that can be used to achieve database connection from the connection pool.

?Can be accessed by the interface DataSource

Transaction monitor:

?Can be accessed by the interface UserTransaction.

Java Naming and the Directory Service :

-------------------------------------------------------------------

21)Java Naming and the Directory Service

Naming service is needed to locate beans home interfaces or other objects (DataSource,

UserTransaction):

?For example, jndi name of the DataSource

Directory service is needed to store and retrieve properties by their name:

?jndi name: java:comp/env/propertyName

-------------------------------------------------------------------

Page 165: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

22)XML ? deployment descriptor

ejb-jar.xml + server-specific xml- file Which is then Packed in a jar ? file 

together with bean classes.

Beans are packaged into EJB JAR file , Manifest file is used to list EJB?s and 

jar file holding Deployment descriptor.

-------------------------------------------------------------------

23) Session Bean

Developer programs three classes:

?Home interface, contains methods for creating (and locating for entity beans) bean

instances.

?Remote interface, contains business methods the bean offers.

?Bean class, contains the business logic of the enterprise bean.

-------------------------------------------------------------------

24)Entity Beans

Represents one row in the database:

?Easy way to access database

?business logic concept to manipulate data.

Container managed persistence vs. bean managed persistence:

Programmer creates three or four classes:

?Home interface for locating beans

?Remote interface that contains business methods for clients.

?Bean class that implements bean?s behaviour.

?Primary key class ? that represents primary key in the database. Used to locate beans.

Primary key class is not needed if primary key is a single field that could

-------------------------------------------------------------------

25) When to use which bean?

Entity beans are effective when application wants to access one row at a time. 

Page 166: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

If many rows needs to be fetched, using session beans can be better alternative

ava class (for example, Integer).

Entity beans are efficient when working with one row at a time

Cause a lot of network trafic.

Session Beans are efficient when client wants to access database directry.

?fetching/updating multiple rows from the database

-------------------------------------------------------------------

26) Explain J2EE Arch?

Normally, thin-client multitiered applications are hard to write because they 

involve many lines of intricate code to handle transaction and state management, 

multithreading, resource pooling, and other complex low-level details. 

The component-based and platform-independent J2EE architecture makes J2EE 

applications easy to write because business logic is organized into reusable 

components and the J2EE server provides underlying services in the form of a 

container for every component type. Because you do not have to develop these 

services yourself, you are free to concentrate on solving the business problem 

at hand. 

Containers and Services :

Component are installed in their containers during deployment and are the 

interface between a component and the low-level platform-specific functionality 

that supports the component. Before a web, enterprise bean, or application 

client component can be executed, it must be assembled into a J2EE application 

and deployed into its container. 

The assembly process involves specifying container settings for each component 

in the J2EE application and for the J2EE application itself. Container settings 

customize the underlying support provided by the J2EE Server, which include 

services such as security, transaction management, Java Naming and Directory 

InterfaceTM (JNDI) lookups, and remote connectivity.

Container Types :

The deployment process installs J2EE application components in the following 

types of J2EE containers. The J2EE components and container addressed in this 

tutorial are shown in Figure 5.

Page 167: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

An Enterprise JavaBeans (EJB) container manages the execution of all 

enterprise beans for one J2EE application. Enterprise beans and their 

container run on the J2EE server. 

A web container manages the execution of all JSP page and servlet components 

for one J2EE application. Web components and their container run on the J2EE 

server. 

An application client container manages the execution of all application 

client components for one J2EE application. Application clients and their 

container run on the client machine. 

An applet container is the web browser and Java Plug-in combination running on 

the client machine

SATYAM PAPER 4

15 q's in 30 mins

All Aptitude

1. get the correct arrangment of sentences.

i. This is.

ii.This is sentence with 4 references.

iii.This is to say that this sentence is a lonf sentence.

iv.This is not the last sentence of the paragraph.

v. The previous sentence to this is the longest sentence.

vi.This is first sentence of last paragraph.

vii.This refers to last sentence.

There were 2 more sentncs similar 2 this. For the correct soln look at the answers & get it. By

lookin at the stmts u wont get anythin.

2. Somethin bout _a's,ii b's,ii c's.......i didnt get the question.

3. A third of this value is 1/2. What is the value.

Ans: 3/2

4. How to measure 4 l by using 5 l & 3 l vessels only.

Choices were 5 l - 520254 3 l - 032.....u will get it by lookin at answers.

5. there are 6 somethins...lets call it cups...holding 19,14,21,35,10,8 nails each. Joe and Jack

bought 5 of them with Jack buying twice number of nails than Joe. How much did they buy.

Ans: Jack-21,35,10 Joe-19,14 U can get it by lookin at ans(again). Easy.

6. Truck is travellin at 60 kmph. Wat rate should car travel to be ahead of truck for 2 mins.

Choices were 72, 66.8, 90,.... Me thinks its 66.8. Not sure.

7. Ther are 10 red balls,6 white and 5 blue. How many balls should i pick to make sure that i

have atleast 1 of each.

8. A horribly phrased & really long question bout base 3....If u do get it attempt it only if time

permits. 

Page 168: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

9.Next 4 Very very easy. 

Old code

BLUE SKY (or somethin)....most of my qs r not xact

1234 567

New Code

SKY BLUE

123 4567

A company initially had a code for keepin price secret(god knows why)....dat was old code.

They felt it was time 2 change & adopted to new code. 

Q: If LKY was old code...wat is correspondin new code

10. Refer above for a similar q

11.Again from the 8th one....somethin bout letters repeatin themselves.

12. If SUE was in old code & was overlooked during new code....wat will the price be if

salesman does not change code. Again refer 8.

from 4 mostly can score easily.

13. There are 1 way routes from A to G, Mto H, A to F....(A, G etc are given as some place)

Which is the shortest route from A to F.

Ans: U dont even have to draw a graph. Just look at q & ans is urs.

14. A Fence was being erected by Jatin. The poles were to be 5 ft apart, but as Jatin(the fool

that he is) forgot to bring 4 poles, he erected them 7 ft apart. The q is how much distance was

the fence to cover.

Choice: 70 ft 92 ft 100 ft 75 ft....Ans: 70 ft.

Following this was a gd. There were 5 topics

1. US war on iraq-justified or not.

2. Role of UN in peacekeeping.

3. Position of Women in India compared to other nations.

4. Environment MAnagement.

5. Is China better than India in software.

Ppl appearin for test: 828

PPl selected for gd: 300

Ppl selected for interviews: 142

THIS IS SATYAM QUESTIONS IN BANGALORE....

1. one question on the coding simple one.. 

ESETE?

WHAT IS NEXT.....

Page 169: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

A) u B)r C) e D) s e) none

2. one question on figures...four fig ..are given what is next fig??? 

3. Similarly one more question... 

4. given 6 persons having some RSxxx/- arrange the order with respect to money(8 lines Q) 

5. Regarding ages one question 

6. Given RS 140 how u will share the some thing like that...I don't remember... 

7. Some relations given find the order...(some 7 lines questions) 

8. work-time problem given...he given A work in 6 days B work in 8 days C work in 10

days....he given A leaves after 8 days ....some thing like that 

9. he will give some sentences..Arrange the order like that one question 

10. one big question just leave it ( wast of time)

Test Details :

1000 appeared.

299 shortlisted for GD.

1 mark for every right, 1/4 negative marks for every

wrong answer.

Company: Satyam

15 Questions (Aptitude Only).

Time: 30 mins.

I am trying my best to give u complete questions (but all Qs are nt complete). The Questions

are not in serial order. I m mailing these to u for u to get an idea of paper pattern.

1. A train has lenght of 108m, it is travelling at a speed of 50km/hr. a second train with length

of 1121m, opposite direction to first train, passes the first train in 6 seconds. What is the

Page 170: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

speed of the second train?

options : a)40 b)55 c)65 d)non of these.

I chose d)

2. which no. comes next 7100, 13, 6, 4, 3, ...

3. Magzine a is kept on b, b is abov g,i is blow h  etc... which was kept at the bottom?(easy) 

4. there are two mugs, a 7ltr mug, a 3 ltr mug. what wud be the steps to fill 5ltr water in the 7

ltr

jug??

a) fill the 3 ltr mug, pour its 3 ltrs water into 7ltr mug

b) fill the 3 ltr mug, pour its 3 ltrs water into 7ltr mug

c) fill 3 ltr mug and pour 1 ltrs water into the 7 ltr mug

d) empty the 7 ltr mug, pour the remaining 2 ltrs water in 3ltrs jug, into the 7 ltr jug.

e) fill the 3 ltr mug, pour its 3 ltrs water into 7ltr mug

options: a) abced b)acbde c)abcde d)acbed

Ans: abcde 

5. I m chasing a thief. The thief has a head start of 10 miles over me. I have a speed 1 mile/hr

greater

than the thief. my dog has a speed of 10km/hr. My dog runs to and fro between me and the

thief.

How many miles does my dog run, before i catch the thief?

a)96 miles b)124 mile c) 140 miles d) 180miles

Ans: 96 miles(b'cos the dog can cover a maximum of 10km/hr * 10hr=100km by the time i

catch the

thief. ie., about 96 or 94 miles. (options i have given for this Q are correct.)

6. George J Summers, " The Great book of puzzles and teasers" pg49, Question name : The

Widow.

For those who donot have the book above: I m typing the Qestion below.

(the following Q is compelete and accurate.)  Four women Anna, Beth, Cass, Dora and 3 men

Earl,

Fred, Gene playbridge, a card game for 4 players.

condition: a)

Page 171: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

The men and women consist of 3 married couples. an a

widow.

condition: b) 

The members of each married couple are never partners

in a bridge game.

condition: c)

No more than one married couple ever plays in the same

bridge match.

condition: d)

One night they played four bridge games in which the

partners were as follows: 

partners

Anna and Earl Vs Beth and Fred

Anna and Gene Vs Dora and Fred

Beth and Cass Vs Fred and Gene

Cass and Earl Vs Dora and Gene

who is the widow ? 

Ans: Cass is the widow.

7. George J Summers, " The Great book of puzzles and teasers" pg148, Question name : The

Murderer in the Mansion.

(the following Q is compelete and accurate.) 

The owner of the mansion has been murdered. The visitors to the mansion were Allen, Bixby,

Crain. 

condition: a)

The murderer was one of the three visitors, arrived at the mansion later than atleast one of

the other two visitors.

condition: b) 

A detective who was one of the three visitors arrived at the mansion earlier than atleast one of

the other two visitors.

Page 172: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

condition: c)

the detective arrived at the mansion at midnight. 

condition: d)

nither Allen nr Bixby arrived at the mansion after midnight.

condition: e)

The earlier arriver of Bixby and Crane was not the detective.

condition: f)

The later arriver of Allen and Crain was not the murderer.

Who was the murderer.

Ans: Allen was the Detective and the Murderer (both).

8. A questiono of type 

one

+ one 

+seven

------

something i dnot rmembr.

------

9. (inaccurate Q) AT="xy" MAT="YSD" then vb="?" This

type of question.

10. Find next word in the series:

Redden:ample:somthing:something...

11. A Q on upstream Downstream.

12. A simple Q on a chess match.

13. A series of 3 figures, Question was to predict the

next figure.

Questions:

Page 173: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

1) For this question take 

A-1,B-2,C-3..........X-24,Y-25,Z-26.

Edwin is a judge and a numerologist.He is married to

a woman whose name:

a) has a "product" that is the same as that for JUDGE:using the correspondence of letters and

numbers above, this product is 10*21*4*7*5.

b)has no letter in common with JUDGE.

c)Has no third letter of the alphabet because 3 is his unlucky number.

d)Has letters in alphabetical order when the first letter and second letter are interchanged.

What is the name of the judge's wife?

2) The owner of the house has been murdered. The visitors to the mansion were Allen,bixby

and Crain.

a) The murderer ,who was one of the three visitors ,arrived at the mansion later than atleast

one of the

other two visitors.

b)A detective,who was one of the three visitors,arrived at the mansion earlier than atleast one

of the other two visitors 

c)The detective arrived at the mansion at midnight.

d)Neither Allen nor Bixby arrive at the mansion after

midnight

e)the earlier arriver of Bixby and crain wasnot the

detective

f)the later arriver of allen and crain was not the

murderer

Who was the murderer?

3) some farm tools and farm equipments have been stolen..3 farm workers were

interrogated..Each one makes 2 statements.(i dont remember the statements)One of the

statements made by each of them is right while the other is wrong. We have to tell who stole

them.

4) There is 4-digit number..the second digit is 2 more than the first..the last digit is five more

than the

third..something like this..it is very simple..jus have to go from the choices given..

Page 174: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

5) 

A D

B G E

C F

Each of seven digits from 0,1,2,3...8,9 is :

a) represented by a different letter in the figure above.

b) positioned in the figure above so that A*B*C, B*G*E and D*E*F are equal.

Which digit does G represent?

6) Given the names of four persons..and also given that one is taller than the other but shorter

than

someone else..statements like these..we have to find who is the shortest..

7) A man is walking inside the tunnel AB. when he is 3/8th of the distance from A, he hears a

train coming from behind him..he sees that when he moves towards B, the train just catches

him at B, and similar logic if  he tried to reach

A..the man walks at a steady rate of 8m/h..what is the speed of the train?

8)Fifty minutes ago if it was four times as many minutes past four o clock, how many minutes

is it to

six o clock?

9) a simple problem related to ages..

10) There are 5 dacoits who have together stolen some gold coins..they stay at a place for

the night hiding the bounty safely...When evreyone's asleep, one of the dacoits wakes up,

takes 1/5th of the bounty plus one for himself..the rest he puts back in the bag and goes to

sleep..the next dacoit wakes up, does the same thing,ie takes 1/5th of the remaining bounty

plus one for himself, puts the rest back and goes to sleep..the third,fourth and fifth dacoits do

the same thing..in the morning, they all wake up and divide the bounty equally among

them..how may coins were there originally? The key to this question is to proceed from the

options..see which number leaves a remainder 1 when divided by 5 four times continuously

and the fifth time divides it exactly.

The rest 5 quests i dont remember....Quests 1,2 and 5 have been lifted straight out of

Puzzles' by George Summers..8 is from Shakuntala Devi..

Page 175: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

The GD round is said to be the Main elimination round in Satyam..The topic we were given

was "US war on  Iraq"..Some other topics could be "environmental pollution", "Indian Hockey"

etc.

The interview consisted of both technical and HR questions..Expect questions from ur

project..and brush up the subjects in ur major..

CSE- majors were asked on DBMS, a bit of networking, Object Orientation concepts.etc..

SATYMA PAPER 5

Satyam  test  conducted on 11 June 2005  at JIIT Noida.     

              30 min. 15 ques.       1/4 negative marking.

Aptitude

1. From a total of 10 bulbs 6 bulbs are working.One has to choose 3 bulbs out

of them. what is the probability that all the 3 bulbs will be glowing. 

a) 1/6 b) 1/29 c) 1/29 d) 30/29 e) None of these.

  2. A sum at a given rate of intrest becomes 1200 in 4 yrs. 2000 in 5 yrs.what

was that sum.

a) 2000 b) 1500 c)2500 d) 1800 e) None of the above.

Ans... e) None of the above. (sum ....800)

  3. Three teams J,K,L . some conditions like J is in the left of K , L  is in the

middle of K and L and so on.

  4. Students fail in at least 2n-p subjects. n is the number of subjects.p is an

integer. If total number of failures is 63. what is the number of students.

  5. if STRONG is written as ------. Then ENERGY will be written as ------.

  6. G,R,S are three towns. If G is North west of S. R is east of S.which city is

north most.

 

Page 176: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

7. Side of cube add to 4 feet. what is the volume of cube.

i) 64 inch^3 ii) 128 inch^3 iii) 512 inch^3 iv) None

Ans i) 64 inch^3. 8. Logical reasoning ...If battery is down Razor will not work. ....

  9. If tomato price is hiked by 65%. Apple price by 10%. Tomato is now dearer

than apple. Some conclusions.....

  10. In a chessboard of 64 squares. Pearls are to be decorated such that each

corner has 1 pearl.And each side has three pearls. How many pearls will be

required.

  11. A number plate has 3 digits. If first digit is always 1. And rest two digits are in

ascending order. Total number of differnt numbers that can be given the number

plate.

  12. Data interpretation. 3 pie charts and a histogram were given. What is the

average ?

  13. Number generator... If a given sequence was given to the number

generator ,it processes the sequence as....

step 1: Multiply each number by 2.

step 2: sort the numbers in ascending order.

step 3: increase 1st, 3rd and 6th number by 6.

step 4: again sort.

step 5: add 1 to 1st, 2 to 2nd , 3 to 3rd , 5 to 4th, 7 to 5th, 11 to 6th .

( Pattern was not given only output sequence was given, you have to identify this

pattern.) 

If given sequence is input of the number generator. What will be it's state in step 4.

  14. Odd one out. Very simple, 4 were geometric figures and last one was a zig-

zag.

  15. Average of 8 scores is 85. After removing the "maximum" score and next to

maximum which is "maximum-2".The average comes out to be 83.What is the

maximum. 

Page 177: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

GD topics       10 min. 10 memebers each Group.

 

16. Higher education in India or abroad. 17. Mercy Killing. 18. Positive impact of Wstern culture on India. 19. Younger man should marry a elder woman or not. (absolutely not...). 20. Love marriage or Arrange marriage. 21. Banning new year party safe or not. 22. Dress code in colleges. 23. Copying the west. 24. Working woman Vs House wife. 25. Should mobile phones be banned or not ? 26. Current education system. 27. Should follow western culture or not. 28. Effect of Extra marital affairs on marriage life.

SATYAM Paper 6

Sample Test Paper

1. A plane travels 695km with wind and 498km aginst the wind in same

time.The speed of wind is 21km/hr. Find the speed of plane?

Ans:144km/hr

2. A person wheres clean shirt every day he picks up the shirts from londry on

every monday how many shirt he needs to have?

Ans:15

3. A,B,C are three plots. their ratio is 5:6:9. If diff between the areas of a and c

is 270m. what is the area of plot B.( the numericals r not same, i do not remember)

4. Two words are given HEAVEN nd another. Then the Third will be( a simple

one)

5. Some three long passages (Like in gre). Never try to attempt them. If u have

time only then go for it.

Page 178: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

6. some numbers are given 3, 5,8,6,8,8,4,8,5 how many times the number 8 is

repeated preceeding with even number and suceeding with an odd number.

7. If circle=rectangle and rectangle=triangle and if triangle= circle then from the

following numbers which is there in triangle and not in others

1)6 2)16 3)4 4)8

8. A problem on probability.

9. A relation problem like if a is sister of b and b is sister of c and if a is sister of

d and if d is parent of all of them. then what will not be true from the following(some

options are given.)

10. A simple problem like if one man can travel 45km in 1 hour then in 4 hours he

can travel?

11. A boy goes to school late by 10min, if his speed is 3km/hr. The next day he

goes 15min early if he travels 5km/hr. Now how far is the school from his house.( the

numericals r not same).

12. again some kilometers to hours problem regarding to the train( do not

remember exactly).

13. find the next number in the series. 33,66,132,.........

            GD

1. Should Filam actors enter poltics r not

2. Remixing of old songs

3. Rebirth

4. Life after death

5. R sprtiual leadrs r holy r not

          HR

1. Tell me about yourself

2. As u have written u were dynamic nd positive attitude person give me the

instances of both of them.

3. Tell me about satyam

4. Why do u want to work

5. What is CMM level 5

6. He even asked me my intermediate principal's name

Page 179: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

7. And some personal questions which they usually ask for girls like in future if

ur in-laws ask to quit the job what will u do?

8. Then the tech person started asking questions. what is oops

9. what is pointer

10. call by value and call by reference

11. encapsulation

12. pointers in c++. He even asked me java but i said i do not java

13. as u r from eee how will u contribute to software side?

IGATE Paper 1

QUESTION PAPER CONSIST OF TWO PARTSANALYTICAL SKILLS : 20 QUES, 20 MIN.C SKILLS : 30 QUES, 30 MINS.

ANALYTICAL :1. COMPLETE THE DIAGRAM :

FOUR FIG WILL BE GIVEN , YOU HAVE TO DRAW THE FINAL ONE 

TRIANGLE FIG :

2. DRAW VENN DIAGRAM RELATING RHOMBUS, QUADRILATERAL & POLYGON

3.IN A GROUP OF 5 PERSONS A,B,C,D,E ONE OF THE PERSON IS ADVOGATE, ONE IS

DOCTOR, ONE BUSINESSS MAN, ONE SHOP KEEPER AND ONE IS PROFESSOR.

THREE OF THEM A,C,AND PROFESSOR PREFER PLAYING CRICKET TO FOOT BALL

AND TWO OF THEM B AND BUSINESSMAN PREFER PLAYING FOOT BALL TO

CRICKET. THE SHOP KEEPER AND B AND A ARE FRIENDS BUT TWO OF THESE

PREFER PLAYING FOOT BALL TO CRICKET. THE ADVOGATE IS C'S BROTHER AND 

BOTH PLAY SAME GAME . THE DOCTOR AND E PLAY CRICKET.

(a) WHO IS ADVOGATE ? A, B, C, D

(b) WHO IS SHOP KEEPER ? A, B, C, D

(C) WHICH OF THE FOLLOWING GROUP INCLUDE PERSONS WHO LIKE PLAYING

CRICKET

BUT DOESN'T INCLUDE PROFESSOR ? AB,BC,CD, NONE

(d) WHO IS DOCTOR ? A,B,C,D.

{ SAME MODEL PROBLEM WAS ASKED IN QUES PAPER BUT PROFESSIONS WILL BE

DIFFERENT SUCH AS HORTICULTURIST ,PHYSICST,JOURNALIST,ADVOCATE AND

OTHER ONE. INSTEAD OF FOOTBALL AND CRICKET THEY WILL GIVE TEA AND

Page 180: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

COFFEE }

4. THEY WILL GIVE SOME CONDITION'S AND ASKED TO FIND OUT FARTHEST CITY IN

THE WEST (EASY ONE )?

5. TRAVELLING SALES MAN PROBLEM . SOME CONDITION WILL BE GIVEN WE HAVE

TO FIND OUT THE ORDER OF STATION THE SALES MAN MOVES

( THREE QUES'S )

6. +,-,*, /, WILL BE GIVEN DIFFERENT MEANING  EXAMPLE : TAKE + AS * AND SO ON .

THEY WILL GIVE EXPRESSION AND WE HAVE TO FIND THE VALUE OF THAT.

7. 3+5-2 =4 WHICH HAS TO BE INTERCHANGE TO GET THE RESULT ?

8. WE DON'T NO EXACT PROBLEM . EX : 8A3B5C7D.....

A WIIL BE GIVEN + SIGN.

B WILL BE GIVEN - SIGN.

FIND THE VALUE OF EXPRESSION ?

9. FIND THE TOTAL NUMBER OF SQUARES IN 1/4 OF CHESS BOARD ?

10. 6 FACE OF A CUBE ARE PAINTED IN A MANNER ,NO 2 ADJACENT FACE HAVE

SAME COLOUR. THREE COLURS USED ARE RED BLUE GREEN. CUBE IS CUT IN TO 36

SMALLER CUBE IN SUCH A MANNER THAT 32 CUBES ARE OF ONE SIZE AND REST

OF THEM BIGGER SIZE AND EACH BIGGER SIDE HAVE NO RED SIDE. FOLLOWING

THIS  THREE QUES WILL BE ASKED . { IN QUES PAPER COLORS WILL BE

DIFFERENT }

11. TWO LADIES ,TWO MEN SIT IN NORTH EAST WEST SOUTH POSITION OF

RECTANCULAR TABLE. USING CLUES IDENTIFY THEIR POSITION ?

12. CLOCK PROBLEM :

(ONE QUES )

13. ALL MEN ARE VERTEBRATE. SOME MAMMALS ARE MEN. CONCLUDE.

C SKILLS :1. find(int x,int y)

{ return ((x<y)?0:(x-y)):} call find(a,find(a,b)) use to find

(a) maximum of a,b

(b) minimum of a,b

(c) positive difference of a,b

Page 181: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

(d) sum of a,b

2. integer needs 2bytes , maximum value of an unsigned integer is 

(a) { 2 power 16 } -1

(b) {2 power 15}-1

(c) {2 power16} 

(d) {2 power 15} 

3.y is of integer type then expression  3*(y-8)/9 and (y-8)/9*3 yields same value if 

(a)must yields same value

(b)must yields different value 

(c)may or may not yields same value

(d) none of the above

4. 5-2-3*5-2 will give 18 if  (a)- is left associative,* has precedence over -

(b) - is right associative,* has precedence over - 

(c) - is right associative,- has precedence over *

(d)- is left associative,- has precedence over *

5. printf("%f", 9/5);

prints 

(a) 1.8,

(b) 1.0,

(c) 2.0,

(d) none

.

6. if (a=7)

printf(" a is 7 ");

else 

printf("a is not 7");

prints 

(a) a is 7,

(b) a is not 7,

(c) nothing,

(d) garbage.

7. if (a>b)

if(b>c)

s1;

else s2;

s2 will be executed if 

(a) a<= b,

Page 182: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

(b) b>c,

(c) b<=c and a<=b,

(d) a>b and b<=c.

8. main()

inc(); ,inc(); , inc(); 

}

inc()

{ static int x;

printf("%d", ++x);

}

prints

(a) 012,

(b) 123,

(c) 3 consecutive unprectiable numbers

(d) 111.

9.preprocessing is done

(a) either before or at begining of compilation process

(b) after compilation before execution

(c) after loading

(d) none of the above.

10. printf("%d", sizeof("")); prints 

(a) error

(b)0

(c) garbage

(d) 1.

11.main()

int a=5,b=2;

printf("%d", a+++b);

}

(a) results in syntax,

(b) print 7,

(c) print 8,

(d) none,

12. process by which one bit patten in to another by bit wise operation is 

Page 183: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

(a) masking,

(b) pruning,

(c) biting,

(d) chopping,

13.value of automatic variable that is declared but not initialized will be 

(a) 0,

(b) -1,

(c) unpredictable,

(d) none,

14. int v=3, *pv=&v;

printf(" %d %d ", v,*pv); output will be 

(a) error

(b) 3 address of v,

(c) 3 3

(d) none.

15. declaration

enum cities{bethlehem,jericho,nazareth=1,jerusalem} assian value 1 to

(a) bethlehem

(b) nazareth 

(c)bethlehem & nazareth

(d)jericho & nazareth

16. #include<conion.h>

#include<stdio.h>

void main()

{

char buffer[82]={80};

char *result;

printf( "input line of text, followed by carriage return :\n");

result = cgets(buffer);

printf("text=%s\n",result);

}

(a) printf("length=%d",buffer[1]); 

(b) printf("length=%d",buffer[0]);

(c) printf("length=%d",buffer[81]);

(d) printf("length=%d",buffer[2]);

17. consider scanf and sscanf function , which is true

(a) no standard function called sscanf

Page 184: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

(b) sscanf(s,...) is equivalent to scanf(...) except that

input charecter are taken from string s.

(c) sscanf is equivalent to scanf.

(d) none of above.

18. #include <stdio.h>

main()

{

char line[80];

scanf("%[^\n]",line);

printf("%s",line);

}

what scanf do ?

(a) compilation error . illegal format string.

(b) terminates reading input into variable line.

(c) and (d) other two options.

19. problem was big so i couldn't remember . simple one.

20 . ceil(-2.8) ?

(a) 0

(b) -3.0

(c) -2.0

(d) 2

21. for( p=head; p!=null; p= p -> next)

free(p);

(a) program run smooth.

(b) compilation error.

(c) run time error.

(d) none of above.

22. int x[3][4] ={

{1,2,3},

{4,5,6},

{7,8,9}

}

(a) x[2][1] = x[2][2] =x[2][3] = 0

(b) value in fourth column is zero 

(c) value in last row is zero

(d) none of above.

Page 185: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

23. problem was big so i couldn't remember . simple one.

24. main ()

printf("%u" , main());

}

(a) print garbage.

(b) execution error

(c) printing of starting address of function main.

(d) infinite loop.

25 . int a, *b = &a, **c =&b;

....

....

.....

a=4;

** c= 5;

(a) doesnot change value of a

(b) assign address of c to a.

(c) assign value of b to a.

(d) assign 5 to a.

26.problem was big so i couldn't remember . simple one.

27.problem was big so i couldn't remember . simple one.

28 . answer : swapping of values .

29 . simple one.

30 . i =5;

i= (++i)/(i++);

printf( "%d" , i);

prints ,

(a) 2

(b) 5

(c) 1

(d) 6 

Page 186: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

in interview they will ask questions related to ur project and some c

fundamentals. 

IGATE Paper 2

Model paper of Inetrgraph 

NO.of questions 40. Time 45minutes

out of 40 questions 20 from 'c' and 20 from analytical ability,quantitative ability . also 1

question ___ to draw venn diagram , 1 question__ on analogy 1 " _______non verbal

reasoning

1.there are 6 (p,q,r,s...)people.each one play one  game  #NAME? clues given like:shortest

one plays hokey largest person plays ..tennis P,Q ARE NEITHER LARGEST NOR

SHORTEST  R PLAYS FOOTBALL s is between t &r in height question: who plays which

game  who is taaller than whom

2.a cube has colors blue,red ,yellow each on two opposite sides.cube is  divided into "32

small cubes and 4 large cubes". question:how many cubes (on 36 cubes) have blue at leat

one side. how many cubes have colors on two sides.

3.anlogy: cell: tissue::atom:?

4.aa person sold two articles for 80 /- each.with 20% profit on one  article and 20% loss on

another article, what is the loss / prifit he  will gain on both.

5.five cities. city1 is west to city3.city4 is east to city 5._____etc. which is farthest on west

side.

6.one question on: -=+,*=-,/=* etc then 10/5*45=?

7.on ,C, paper is easy.mostly on pointers,3 question on structures,5 on  fundamentals,

8.ex:define max 10

main()

{int a,b;

int *p,*q;

a=10;b=19;

p=&(a+b);

q=&max;

} Q a)error in p=&(a+b) b)error in p=&max c)error in both d) no error 

Page 187: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

Important suggestions:

1. average preparation is enough to qualify foe interview.time is  enough.

2.they are particular about academic background .

3.interview is only on personal details.no question on technical subjects

4.they may change paper sets also.

5.in outside recruitment they are asking more questions on CAD.  but not in campus.

in iitd they interviewed 5students out of 21 .selected 1,waiting list 1.

Page 188: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

6.cut off cgpa:7.5

IGATE Paper 3

iGate Paper 3/04/04

There were 50 questions in the aptitude section (12 minutes). After that there were 20 technical questions. 

Some GD topic were

-Business process outsourcing -Science an evil or not -Politics 

APTITUDE QUESTIONS:-

1. Last month of an year (a) January (b) February (c) December (d) November 

2. Select the odd one (a) January (b) February  (c) Wednesday  (d) November 

3. Select the antonym of capture from the following (a) attack (b) Release  (c) condemn (d) None of the above 

4. Find the antonym of autumn (a) Spring (b) Winter (c) Summer  (d) None of the above 

5. One skirt requires 3.75 yards of cloth. How many  skirts you can make from 45 yards? Ans: 12 skirts 

6. How can you make a square from two triangles? 

7. Is the meaning of Client and Customer, (a) same  (b) contradictory  (c) no relation 

8. Is the meaning of It's and Its, (a) same  (b) contradictory  (c) no relation 

9. Is the meaning of Canvas and Canvass, (a) same  (b) contradictory  (c) no relation 

10. Is the meaning of Ingenious and Ingenuous, (a) same  (b) contradictory  (c) no relation 

11. Is the meaning of Credible and Credulous, (a) same  (b) contradictory  (c) no relation 

12. Select the odd one out. (a) 1/4 (b)  1/3 (c) 1/6  (d) 1/18 

13. Select the least from the following. (a) 0.99 (b) 1  (c) 81  (d) 0.333 

14. Find the next number in the series. 1, 0.5, 0.25, 0.125 Ans: 0.0625 

Page 189: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

15. One dollar is saved in one month. Then how much dollar is saved in one day? Ans: 1/30 =0.0333$ 

16. Y catches 5 times more fishes than X. If total  number of fishes caught by X and Y is 48, then number  of fishes caught by X? Ans: 8 

17. Y catches 5 times more fishes than X. If total  number of fishes caught by X and Y is 42, then number  of fishes caught by X? Ans: 7 

18. If a train covers 600m in 0.5 seconds, how long it  will cover in 10 seconds? Ans: 3000m = 3km 

19. The girl's age is twice that of boy, if the boy is four years old. After four years the age of the girl is Ans: 12 years 

20. Sister's age is twice than that of the brother. If the brother's age is six, what is the sister's age after two years? Ans: 14 Yrs. 

21. Two lemons cost 10 cents. Then one and a half  dozen cost Ans: 90 cents 

22. A clock is late by 1 minute 27 seconds in a month.  Then how much will it be late in 1 day? Ans: 2.9 seconds 

23. Which of the following figures together will make a triangle? Ans: a,b,c,d 

24. Make a square by drawing only one line Ans: line 2-5, square 2-3-4-5-2 

25. Which of the following is the odd one? crew, constellation, companion, league, participants. 

Ans: companion 

26. Opposite of Remote? (a) Far (b) Near (c) Huge (d) Village 

27. Statement A: All great men are ridiculous;  Statement B: I am ridiculous ;  Inference : I am a great man; (a) True  (b) False (c) Not  clear 

28. Statement: Normal children are active;  Inference: All children are active; (a) True  (b) False (c) Uncertain 

29. Next number in the series 1, 1/2, 1/4, 1/8 ? Ans: 1/16 

30. In 6 seconds a light flashes once. In one hour how  many times it will flash? Ans: 601 times 

31. At 20% discount, a cycle is sold at a selling  price of 2500 Rs. What is the actual price? Ans: Rs. 3125 

32. Statement A: A & B have same age; Statement B: B is younger than C; Inference : A is younger than C; 

Page 190: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

(a) True (b) False (c) Uncertain 

33. All chickens lay eggs (True/False) Ans: False 

34. A invests $12000, B invests $8000, C invests $6000  and they got a profit of $1200. How much share A got  more than B and C? Ans: 2/13 and 3/13 

TECHNICAL QUESTIONS:-

For technical there were 20 multiple choice questions: Out of which about 6 was electronics and 14 was from  computer related areas 

1. Full form of TTL and CMOS 

2. Which is a good conductor (Extrinsic or Intrinsic) 

3. What are the different types of capacitors (Electrolytic, dielectric...etc) 

4. Select a passive component from the following (four choices were there) 

5. Minimum no. of lines required for communication using RS232 (Ans: i think its 2) 

6. To convert 1's complement to 2's complement and  vice versa 

7. During which time we use 'size of' command. (ans: runtime) 

8. Out of four choice we have to identify which is a macro. 

9. There was one pointer expression related question. 

10. To find post fix expression. 

11. What type of operating system is unix (ans: pre-emptive,[not sure]) a)pre-emptive b)non-preemptive c)batch 

12. Defnition of turing machine. 

13. Where we use DFD(Data flow design) a)structural languages b)object oriented languages  c)UML d)all of the above 

14. Name the error which occurs when we write on a page a) segment fault b)permission fault c) page fault 

15. A question based on the representation of an array  in C An array whose elements are fn pointers which intern returns a character 

INFOSYS Paper 1

1. There is a escalator and 2 persons move down it.A takes 50 steps and B takes 75 steps

while the escalator is moving down.Given that the time taken by A to take 1 step is equal to

time taken by B to take 3 steps.Find the no. of steps in the escalator while it is staionary.

Page 191: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

2. If 5/2 artists make 5/2 paintings using 5/2 canvases in 5/2 days then how many artists r

required to make 25 paintings using 25 canvases in 25 days?

3. If the digits of my present age are reversed then i get the age of my son.If 1 year ago my

age was twice as that of my son.Find my present age.

ans. father-73, son-37

4. There are 6561 balls out of them 1 is heavy.Find the min. no. of times the balls have to be

weighed for finding out the haevy ball.

ans. 8

5. If i walk with 30 miles/hr i reach 1 hour before and if i walk with 20 miles/hr i reach 1 hour

late.Find the distance between 2 points and the exact time of reaching destination is 11 am

then find the speed with which it walks.

ans. 120miles and 24 miles/hr

6. There r four face cards (J,Q,K,A) all of different types(diamond,club,spade,heart) and some

conditions r given.find the order of cards

ans. king -> jack -> queen -> ace

heart diamond spade club

7. If A,B,C,D,E r 5 members of a family.4 of them give true statements : 

1. E is my mother in law

2. C is my son in law's brother

3. B is my father's brother

4. A is my brother's wife

Who made the stmt. and what r the realtions among them

ans. E

A<-->B--C

|

D

<--> denotes husband-wife

-- denotes brothers

8. The product of 5 different temperatures is 12.If all of then r integers then find all the

temperatures

ans. -2,-1,1,2,3

9. If a flight travels between India(IST) and Toronto(TST).There r 2 types of flights slow and

Page 192: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

fast.

IST TST

SLOW - - 

FAST - - 

TST IST

SLOW - -

FAST - ?

These are the departure times and arrival times for slow and fast flights in IST and TST. then

find the time in ?

ans. 22:40

10.There r 9 cities numbered 1 to 9.From how many cities the flight can start so as to reach

the city 8 either directly or indirectly such the path formed is divisible by 3.

eg. 1368-Flights goes through 1-3-6-8.

11. If i do this puzzle i find it to be hard than the last puzzle that i did before that after

that..............very complex stmt.

Is that puzzle difficult,easy,can't say or depends on the no. of puzzles

INFOSYS Paper 2

1. I participated in a race.1/5th of those who are before me are equal to 5/6th of those behind

me. What were the total number of contestants in the race?(3 Marks)

2. Find the 3 digit number. Third digit is square root of first digit. Second digit is sum of first

and third digits. Find the number. (3 Marks)

3. This problem is of time and work type. Some A and some B are able to produce so many

tors in so many hours.(for example 10 A and 20 B are able to produce 30 tors per hour). Like

this one more sentence was given. We have to find out the rate of working of A and B in

tors/hour.(4 Marks)

4. A and B play a game of dice between them. The dice consists of colors on their faces

instead of numbers. A wins if both dice show same color. B wins if both dice show different

colors. One dice consists of 1 red and 5 blue. What must be the color in the faces of other

dice.(i.e how many blue and how many red?). Chances of winning for A and B are even. (5

Marks)

5. A girl has 55 marbles. She arranges them in n rows. The nth row consists of n marbles, the

Page 193: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

(n-1)th row consists of (n-1) marbles and so on. What are the number of marbles in nth row?

(3 Marks)

6. This question is of analogy type. Some sentences regarding tastes of people to poetry are

given like all who like A's Poem, like the poems of B. Like this 7 or 8 sentences were given.

Questions were based on this. (8 Marks)

7. This question is also of analogy type. Four persons are there A,B,C,D. Each of the four

persons own either P,Q,R,S. 10 sentences using if clause were given. We have to find out

which belongs to whom. (8 Marks)

8. This question involves percentage. (5 Marks)

9. Problems on ages. (6 Marks)

10. Problems on time and distance. (5 Marks)

INFOSYS Paper 3

Infosys Test Held on 3rd September, 2003

1) Every station in N railroad issues every other station's ticket. Some stations are added.

Now they have to issue 46 more tickets. Give the No. of stations after and before added. (5

marks).

2) There was a race between 3 people. Me, Doug and Anne. When I take 21 steps the

distance covered is equal to Doug's 24 steps and Anne's 28 steps. I take 6 steps to every 7

steps of Doug and 8 steps of Anne. Who won the race?

3)How many bearers will an explorer need for a 6 day march if each man can carry the food

stuff of one man for 4 days.

4) Consider the following statements:

Albert: Dave did it.

Dave: Tony did it.

Gug: I did not do it.

Tony: Dave lied when he said that i did it.

(a)If only one out of all above statements is true, who did it?

(b)If only one out of all above statements is false, who did it?

5) A contribution of Rs. 500 was raisedfrom 500 people. The fee was as follows:

Men: Rs.3.00 each

Women: Rs. 2.00 each

Page 194: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

Childern: 0.48 each

If number of women is more than number of men, how many childern are there? (5 marks)

6) Alice and Liu had some berries. The total of Alice's berries and square of number of berries

with Liu is 62. The total of Liu's berries and square of number of berries with Alice is 176. How

many berries does each of them have? (6 marks)

7) A rope ladder was left down from a ship. 12 steps of the ladder were exposed at 10:00 am.

The queen who was going to visit the ship, said she would visit at 1:00 pm as she would have

to climb lesser number of steps then. The tide in the sea increases from morning to afternoon

at the rate of 1.2 meters per hour. The distance between any 2 steps of the ladder is 0.4 mts.

How many steps will the queen have to climb?

8) 5 hunters Doe, Deer,Hare,Boarand Row kill 5 animals. Each hunter kills an animal that

does not corrspond to his name. Also each hunter misses a different animal which again does

not correspond to his name.

a) The Deer is killed by the hunter,known by the name of the animal killed by Boar.

b) Doe is killed by the hunter, known by name of animal missed by Hare.

c) The Deer was disappointed to kill only a Hare and missed the Roe.

9) There was 1 more on moon gravity 1/6, weight ...

Altogether there were 11 questions to be completed in 1 hr.English test was simple for 30

mins - 1 comprehension & other fill in the blank kinds, questions some sentence correction

questions.

INFOSYS Paper 4

1) a) 10 1 9 2 8 3 7 4 6 5 5 6 4 7 3 8 2 _ _

b) 2 4 16 512 _ Write the next elements in the series.

2) A Man is sitting in the last coach of train could not find a seat, so he starts walking to the

front coach ,he walks for 5 min and reaches front coach. Not finding a seat he walks back to

last coach and when he reaches there, train had completed 5 miles. What is the speed of the

train.

3) The Old car of Mary requires tyres to be changed after each 24000 km. If she wants to go

for 42000 km journey then how many minimum number of tyres she will need.

4) A coin is so unbalanced that it may come both heads in 2 tosses as it may come tails in a

single toss. What is the probabality of getting a head in a single toss.

Page 195: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

5) A pen, pencil and eraser together cost $1.00. if 2E<N , if N>2P, and 3P>4E then what a

single pen will cost?

6) A local forecast service has accuracy of 2/3 says No rain , and Meteriological service

having accuracy of 4/3 says Rain. if Preference is as no rain what is the chance of rain?

7) Sherlock holmes thrwated the plan to kidnapp Mrs mary when they were questioned Mercy

and his two associated shipy and rany.when they were telling the story one of them told one

thing wrong and other true, the other told both true, and the last told both false. examining the

following tell the roles played by each

Mercy:: 1) i wrote the ransome note 2) shipy broke into the window rany 1) shipy wrote the

ransome note 2) mercy ran away with the lady shipy 1)i broke into the window 2)rany wrote

the ran some note.

8) Tom asked kim did you like the stamps? She said yes ,me and rob too liked them. Kim

again said that rob got 3 more than he would have got, if i would have kept 2 more than, what

he got. Tom asked how many u gave Rob? She replied 2 more than what I got. Tell, how

many stamps each rob and kim got?

9) The virgo club members used to meet every week to play cards. Each time they used to

seat around a round table and for their memory they used all the possiblecombinations of

postions each for a single time only. Can you tell for how many times they met?

Essays Asked

If you are given a chance to change a thing in you hometown, what would you change? Give

examples why you want to do so.

Television is creating a communication gap among young generation.

INFOSYS Paper 5

1. A person needs 6 steps to cover a distance of one slab. If he increases his foot length (step

length) by 3 inches he needs only 5 steps to cover the slabs length. What is the length of the

each slab.

Ans: 31 inches.

2. There are 19 red balls and one black ball. Ten balls are put in one jar and the remaining 10

are put in another jar. What is the possibility that the black is in the right jar.

Ans: 1/2.

3. There is one lily in the pond on 1st june. There are two in the pond on 2nd june . There are

four on 3rd june and so on. The pond is full with lilies by the end of the june.

(i) On which date the pond is half full?

Page 196: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

Ans: 29th. --the june has 30 days).

(ii) If we start with 2 lilies on 1st june when will be the pond be full with lilies.

Ans: 29th June.

4. A lorry starts from Banglore to Mysore at 6.00 A.M, 7.00 A.M, 8.00 am.....10 pm. Similarly

one another starts from Mysore to Banglore at 6.00 am,7.00 am, 8.00 am.....10.00pm. A lorry

takes 9 hours to travel from Banglore to Mysore and vice versa.

(i) A lorry which has started at 6.00 am will cross how many lorries.

Ans: 10.

(ii) A lorry which had started at 6.00pm will cross how many lorries.

Ans: 14.

5. A person meets a train at a railway station coming daily at a particular time . One day he is

late by 25 minutes, and he meets the train 5 k.m. before the station. If his speed is 12 kmph,

what is the speed of the train.

Ans: 60 kmph. Refer--Shakuntala Devi Book.

7. A theif steals half the total no of loaves of bread plus 1/2 loaf from a backery. A second

theif steals half the remaing no of loaves plus 1/2 loaf and so on. After the 5th theif has stolen

there are no more loaves left in the backery. What was the total no of loaves did the backery

have at the biggining.

Ans: 31.

8. A gardener plants 100 meters towards east, next 100 meters towards north,next 100

meters towards west. 98 meters towards east, 96 meters towards north and 96 meters

towards west, 94 meters towards south. and 94 meters towards east and so on. If a person

walks between the trees what is the total distance travelled by him before he reaches the

center.

Ans: |---------------| | | | | | | | --------|- | ---------------------| -.

9. Long division: example: 1089709/12 ?

ANALYTICAL 4 question---40 marks; 40 minutes;

1. There are four women and 3 men. They play bridge one night. Find widow among them.

Rules:

(i) wife and husband are never partners.

(ii) Wife and husand never play more than one game. One night they played four games as

follows:-

Page 197: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

1. ------ + ------ vs ------- + ---------

2. ------ + ------ vs ------- + ---------

3. ------ + --*--- vs ------- + ---------

4. ---*-- + ------ vs ------- + ---------

the woman are marked * above.

Ans: Refer Problem 21. Mind Teasers by Summers.

2. There are 5 peoples; few of them speak true, few of them false. Identify them.

3. & 4.th problems on Venn diagram.

INFOSYS Paper 27

1. BE * BE = ACB.

A, B, C, E are non zero numbers. Find B, E.

Ans: B=1 E=9.

2. A, B, C, D, E are having numerical values. There are some conditions given:-

a) A=C <===> B!=E

b) Difference between A and C as same as difference between C and B as same as

difference between A and D.

c) C < A and C > D,

Then Find A, B, C, D, E.

3. There are six cards, in which, it has two king cards. All cards are turned down and two

cards are opened.

a) What is the possibility to get at least one king?

b) What is the possibility to get two kings?

4. A person went to a shop and asked for change for 1.15 paise, but he said that he could not

only give change for one rupee but also for 50p, 25p, 10p and 5p. What were the coins he

had?

Ans: 1-->50p 4--->10p 1--->25p.

5. There are 3 nurses and they work altogether only once in a week. No nurse is called to

work for 3 consecutive days. Nurse 1 is off on tueseday, thursday and sunday. Nurse 2 is off

on saturday. Nurse 3 is off on thursday, sunday. No two nurses are off more than once a

week.

Find the day on which all the 3 nurses were on work.

6. There are 5 persons A, B, C, D, E and each is wearing a block or white cap on his head. A

person can see the caps of the remaining 4 but can't see his own cap. A person wearing

Page 198: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

white says true and who wears black says false.

i) A says I see 3 whites and 1 black.

ii) B says I see 4 blacks.

iii) E says I see 4 whites.

iv) C says I see 3 blacks and 1 white.

Now Find the caps weared by A, B, C, D and E.

7. There are two women, Kavitha and Shamili and two males Shyam and Aravind, who are

musicians. Out of these four one is a Pianist, one Flutist, Violinist and Drummer.

i) Across Aravind beats Pianist.

ii) Across Shyam is not a Flutist.

iii) Kavitha's left is a Pianist.

iv) Shamili's left is not a Drummer.

v> Flutist and Drummer are married.

8. 1/3 rd of the contents of a container evaporated on the 1st day. 3/4 th of the remaining

contents of the container evaporated the second day. What part of the contents of the

container are left at the end of the second day?

9. A man covered 28 steps in 30 seconds but he decided to move fast and covered 34 steps

in 18 seconds. How many steps are there on the escalator when stationary?

10. All fair skinned, rich, handsome, muscular, lean and employed are tall men.

1) All lean men are muscular.

2) No fairskinned person who is not rich is handsome.

3) Some muscular men are handsome.

4) All handsome are fairskinned.

5) No person who is neither fair skinned nor muscular is employed.

INFOSYS Paper 28This paper contains INFOSYS Interview Questions.1. Person1: Most of us are satch J.Person2: Most of us are jute S.Person3: Two of us are satch J.Person4: Three of us are jute J.Person5: I am satch J we have to find who is satch and who is jute.Ans: S: Satch J:Jute.

2. Four persons are there to cross a bridge they have one torch light.Person A can cross in 1 min.Person B can cross in 2 min.Person C can cross in 5 min.Person D can cross in 10 min.

They have to cross bridge with in 17 min. At a time only two persons can cross.

I. A & B ----> 2.II. A <---- 1.

Page 199: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

III. C & D ----> 10.IV. B <---- 2.V A & B ----> 2______________Total 17.

3. 7 hours hour glass 11 hours hour glass you have to boil one egg for 15 hours.

4. What is the maximum number of slices can you obtain by cutting a cake with only 4 cuts?Ans: 16.

5. Three are three boxes. In first box, two white balls. In second box, 2 black balls. In third box, 1 white & 1 black ball. The lables on the boxes are not correct. Then you have to open one box and to find the colour of the balls in all boxes.Ans: Open the box labled black & white. If white balls are there then the box labled with white balls contain black balls and labled with black balls contain one black and one white ball and vice versa, if two black balls are there

INFOSYS Paper 29

1. A begger collects cigarette stubs and makes one ful cigarette with every 7 stubs. Once he

gets 49 stubs . How many cigarettes can he smoke totally?

Ans: 8.

2. A soldier loses his way in a thick jungle at random walks from his camp but mathematically

in an interesting fashion. First he walks one mile east then half mile to north. Then 1/4 mile to

west, then 1/8 mile to south and so on making a loop. Finally how far he is from his camp and

in which direction.

Ans: In north and south directions 1/2 - 1/8 + 1/32 - 1/128 + 1/512 - and so on = 1/2/((1-(-1/4))

similarly in east and west directions 1- 1/4 + 1/16 - 1/64 + 1/256 - and so on = 1/(( 1- ( - 1/4)).

Add both the answers.

3. How 1000000000 can be written as a product of two factors neither of them containing

zeros?

Ans: 2 power 9 x 5 ppower 9 (check the answer).

4. Conversation between two mathematcians:

First : I have three childern. The product of their ages is 36. If you sum their ages, it is exactly

same as my neighbour's door number on my left.

The second mathematician verfies the door number and says that the clue is not sufficient.

Then the first says " OK, one more clue is that my youngest is the youngest". Immmediately

the second mathematician answers. Can you answer the question asked by the first

mathematician? What are the childeren ages?

Ans: 2 and 3 and 6.

5. Light glows for every 13 seconds. How many times did it between 1:57:58 and 3:20:47

AM?

Page 200: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

Ans: 383 + 1 = 384.

6. 500 men are arranged in an array of 10 rows and 50 columns. ALL tallest among each row

are asked to fall out. And the shortest among them is A. Similarly after resuming that to their

originaal positions that the shortest among each column are asked to fall out. And the longest

among them is B. Now who is taller among A and B?

Ans: A.

7. A person spending out 1/3 for cloths, 1/5 of the remaining for food and 1/4 of the remaining

for travelles. He is left with Rs 100/-. How he had in the begining?

Ans: Rs 250/-.

8. There are six boxes containing 5, 7, 14, 16, 18, 29 balls of either red or blue in colour.

Some boxes contain only red balls and others contain only blue . One sales man sold one box

out of them and then he says "I have the same number of red balls left out as that of blue".

Which box is the one he solds out?

Ans: Total no of balls = 89 and (89-29 /2 = 60/2 = 30 and also 14 + 16 = 5 + 7 + 18 = 30.

9. A chain is broken into three pieces of equal lengths, containing 3 links each. It is taken to a

blacksmith to join into a single continuous one. How many minimum number of links are to to

be opened to make it?

Ans: 2.

10. Grass in lawn grows equally thick and in a uniform rate. It takes 24 days for 70 cows and

60 for 30 cows. How many cows can eat away the same in 96 days?

Ans: 18 or 19.

11. There is a certain four digit number whose fourth digit is twice the first digit. Third digit is

three more than second digit. Sum of the first and fourth digits twice the third number. What

was that number?

Ans: 2034 and 4368.

1. From a vessel on the first day, 1/3rd of the liquid evaporates. On the second day 3/4th of

the remaining liquid evaporates. What fraction of the volume is present at the end of the

second day?

2. An orange glass has orange juice and white glass has apple juice. Both are of equal

volume. 50 ml of the orange juice is taken and poured into the apple juice. 50 ml from the

white glass is poured into the orange glass. Of the two quantities, the amount of apple juice in

the orange glass and the amount of orange juice in the white glass, which one is greater and

by how much?

Page 201: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

3. There is a 4 inch cube painted on all sides. This is cut into number of 1 inch cubes. What is

the number of cubes which have no painted sides?

4. Sam and Mala have a conversation. Sam says I am certainly not over 40. Mala says I am

38 and you are atleast 5 years older than me. Now Sam says you are atleast 39. All the

statements by the two are false. How old are they realy?

5. Ram singh goes to his office in the city every day from his suburban house. His driver

Mangaram drops him at the railway station in the morning and picks him up in the evening.

Every evening Ram singh reaches the station at 5 o'clock. Mangaram also reaches at the

same time. One day Ram singh started early from his office and came to the station at 4

o'clock. Not wanting to wait for the car he starts walking home. Mangaram starts at normal

time, picks him up on the way and takes him back house, half an hour early. How much time

did Ram singh walked?

6. In a railway station, there are two trains going. One in the harbour line and one in the main

line, each having a frequency of 10 minutes. The main line service starts at 5 o'clock. The

harbour line starts at 5.02 AM. A man goes to the station every day to catch the first train.

What is the probability of man catchinhg the first train?

7. Some people went for vaction. Unfortunately it rained for 13 days when they were there.

But whenever it rained in the morning, they had clean afternood and vice versa. In all they

enjoyed 11 morning and 12 afternoons. How many days did they stay there totally?

8. Escalator Problem Repeat.

9. A survey was taken among 100 people to find their preference of watching TV

programmes. There are 3 channels. Given no of people who watch at least channel 1, at least

channel 2, at least channel 3, no channels at all, at least channels 1 and 3, at least channels

1 and 2, at least channels 2 and 3. Find the no of people who watched all three?

10. Albert and Fernandes have two-leg swimming race. Both start from opposite end of the

pool. On the first leg, the boys pass each other at 18 mt from the deep end of the pool. During

the second leg they pass at 10 mt from the shallow end of the pool. Both go at constant

speed. But one of them is faster. Each boy rests for 4 sec to see at the end of the first leg.

What is the length of the pool?

11. T H I S

Each alphabet stands for one I S digit, what is the maximum value of T?

INFOSYS Paper 31 of 43

Page 202: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

. Father's age is three years more than three times the son's age.After three years, father's age will be ten years more than twice the son's age.What is the father's present age.Ans: 33 years. (2 marks) 

2. Find the values of each of the alphabets.N O O NS O O N+ M O O N----------J U N EAns: 9326 (2 marks)

3. There are 20 poles with a constant distance between each pole A car takes 24 second to reach the 12th pole. How much will it take to reach the last pole.Ans: 41.45 seconds (2 marks)Let the distance between two poles = xHence 11x:24::19x:?

4. A car is travelling at a uniform speed.The driver sees a milestone showing a 2-digit number. After travelling for an hour the driver sees another milestone with the same digits in reverse order.After another hour the driver sees another milestone containing the same two digits.What is the average speed of the driver.Ans: 45 kmph (4 marks)

5. The minute and the hour hand of a watch meet every 65 minutes.How much does the watch lose or gain time and by how much?Ans: Gains; 5/11 minutes (4 marks)

6. Ram, Shyam and Gumnaam are friends. Ram is a widower and lives alone and his sister takes care of him. Shyam is a bachelor and his neice cooks his food and looks after his house.Gumnaam is married to Gita and lives in large house in the same town.Gita gives the idea that all of them could stay together in the house and share monthly expenses equally.During their first month of living together, each person contributed Rs.25.At the end of the month, it was found that Rs 92 was the expense so the remaining amount was distributed equally among everyone. The distribution was such that everyone recieved a whole number of Rupees.How much did each person recieve?

Ans. Rs 2 (4 marks)(Hint: Ram's sister, Shyam's neice and Gumnaam's wife are the same person)

7. Four persons A, B, C and D are playing cards. Each person has one card, laid down on the table below him, which has two different colours on either side.The colours visible on the table are Red, Green, Red and Blue.They see the color on the reverse side and give the following comment.

A: Yellow or GreenB: Neither Blue nor GreenC: Blue or YellowD: Blue or Yellow

Page 203: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

Given that out of the 4 people 2 always lie find out the colours on the cards each person.

Infosys Sample Test #2 Home

1. At 6'o a clock ticks 6 times.The time between first and last ticks is 30 seconds.How long does it tick at 12'o clock.

Ans: 66 sec. (2 marks) 

2. Three friends divided some bullets equally.After all of them shot 4 bullets the total number of bullets remaining is equal to the bullets each had after division.Find the original number divided. 

Ans: 18 (2 marks)

Initially . x x x Now x-4 x-4 x-4 Equation is 3x-12 = x 

3. A ship went on a voyage.After it had travelled 180 miles a plane statrted with 10 times the speed of the ship.Find the distance when they meet from starting point. 

Ans: 200miles. (2 marks)Distance travelled by plane = 1/10 distance travelled by ship + 180

4. Complete the Table given below:

Three football teams are there. Given below is the group table. Fill in the x's 

Played Won Lost Draw Goals For Goals Against A 2 2 x x x 1 B 2 x x 1 2 4 C 2 x x x 3 7 

Ans: The filled table is given below (4 marks)

Played Won Lost Draw Goals For Goals Against A 2 2 0 0 7 1 B 2 0 1 1 2 4 C 2 0 1 1 3 7 

5. There are 3 societies A, B, C. A lent cars to B and C as many as they had already.After some time B gave as many tractors to A and C as many as they have. After sometime c did the same thing. At the end of this transaction each one of them had 24. Find the cars each orginally had. 

Ans: A had 39 cars, B had 21 cars & C had 12 cars (4 marks)

6. There N stations on a railroad. After adding X stations on the rail route 46 additional tickets have to be printed. 

Page 204: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

Find N and X. 

Ans. x=2 and N=11

Let initially, N(N-1) = tAfter adding, (N+X)(N+X-1) = t+46By trail and error method (4 marks)

7. Given that April 1 is tuesday.A, B, C are 3 persons told that their farewell party was on 

A - May 8, thursday B - May 10,tuesday C - June 5, friday Out of A, B, C only one made a completetly true statement concerning date,day and monthThe other told two one told the day right and the other the date right..What is correct date, month, day.

Ans: B - (May 10) SUNDAYC - June 6 (Friday). (5 marks)

8. The Bulls, Pacers, Lakers and Jazz ran for a contest.Anup, Sujit, John made the following statements regarding results. 

Anup said either Bulls or Jazz will definitely win Sujit said he is confident that Bulls will not win John said he is confident that neither Jazz nor Lakers will win When the result cameit was found that only one of the above three had made a correct statement. Who has made the correct statement and who has won the contest. 

Ans: Sujith; Lakers (5marks )

9. Five people A ,B ,C ,D ,E are related to each other.Four of them make one true statement each as follows.

(i) B is my father's brother. (ii) E is my mother-in-law.(iii)C is my son-in-law's brother(iv)A is my brother's wife.

Ans: (i) D(ii) B (iii) E(iv) C (10 marks)

10. Some statements are given below: 

L says all of my other four friends have money M says that P said that exactly one among them has money N says that L said that precisely two among them have money O says that M said that three of the others have money P, L and N said that they have money All the above statement are false.. Who has money & who doesn't have any money? 

(5 marks) 

Page 205: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

1) A man collects cigarette stubs and makes one full cigarette with every 8 stubs.If he gets 64 stubs how many full cigarettes can he smoke. 

Ans: 8+1=9

2) A soldier looses his way in a thick jungle. At random he walks from his camp but mathematically in an interesting fashion. First he walks one mile East then half mile to North. Then 1/4 mile to West, then 1/8 mile to South and so on making a loop. Finally how far he is from his camp and in which direction. 

Ans: Distance travelled in north and south directions 1/2 - 1/8 + 1/32 - 1/128 + 1/512 - and so on = 1/2/((1-(-1/4)) Similarly in east and west directions 1- 1/4 + 1/16 - 1/64 + 1/256 - and so on = 1/(( 1- ( - 1/4)) Add both the answers 

3) How can 1000000000 be written as a product of two factors neither of them containing zeros 

Ans: 2 power 9 x 5 power 9 

4) Conversation between two mathematcians: First : I have three childern. The product of their ages is 36. If you sum their ages, it is exactly same as my neighbour's door number on my left. The second mathematician verfies the door number and says that it is not sufficient. Then the first says " Ok one more clue is that my youngest is really the youngest". Immmediately the second mathematician answers . Can you answer the question asked by the first mathematician? What are the childeren ages? 

Ans 1,6 and 6

5) Light glows for every 13 seconds . How many times did it glow between 1:57:58 and 3:20:47 am.

Ans : 383 + 1 = 384 

6) 500 men are arranged in an array of 10 rows and 50 columns according to their heights.Tallest among each row of all are asked to fall out.And the shortest among them is A. Similarly after resuming that to their original podsitions that the shortest among each column are asked to fall out. And the tallest among them is B .Now who is taller among A and B ? 

Ans A 

7) A person with some money spends1/3 for cloths, 1/5 of the remaining for food and 1/4 of the remaining for travel.He is left with Rs 100/- . How much did he have with him in the begining ? 

Ans: Rs 250/- 

Page 206: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

8) There are six boxes containing 5 , 7 , 14 , 16 , 18 , 29 balls of either red or blue in colour.Some boxes contain only red balls and others contain only blue.One sales man sold one box out of them and then he says " I have the same number of red balls left out as that of blue ". Which box is the one he solds out ? 

Ans: Total no of balls = 89 and (89-29 /2) = 60/2 = 30 and also 14 + 16 = 5 + 7 + 18 = 30 

9) A chain is broken into three pieces of equal lenths containing 3 links each.It is taken to a backsmith to join into a single continuous one . How many links are to to be opened to make it ? 

Ans : 2.

10) Grass in lawn grows equally thick and in a uniform rate.It takes 24 days for 70 cows and 60 days for 30 cows to eat the whole of the grass.How many cows are needed to eat the grass in 96 days.? 

Ans : 20 g - grass at the beginning r - rate at which grass grows, per day y - rate at which one cow eats grass, per day n - no of cows to eat the grass in 96 daysg + 24*r = 70 * 24 * y g + 60*r = 30 * 60 * y g + 96*r = n * 96 * y Solving, n = 20. 

Infosys Sample Test #6 Home

1. From a vessel, 1/3rd of the liquid evaporates on the first day.On the second day 3/4th of the remaining liquid evaporates. What fraction of the volume is present at the end of the second day.

Ans: 50%

2. An orange glass has orange juice and white glass has apple juice both of equal volumes.50ml of the orange juice is taken and poured into the apple juice.50ml from the white glass is poured into the orange glass. Of the two quantities, the amount of apple juice in the orange glass and the amount of orange juice in the white glass, which one is greater and by how much? 

Ans: The two quantities are equal

3. There is a 4 inch cube painted on all sides.This is cut down into of 1 inch cubes. What is the no of cubes which have no pointed sides. 

Page 207: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

Ans: 8

4. Sam and Mala have a conversation. 

Sam says I am certainly not over 40 Mala says I am 38 and you are atleast 5 years older than me Now Sam says you are atleast 39 All the statements by the two are false. How old are they really? 

Ans: Mala = 38 yrsSam = 41 yrs. 

5. Ram Singh goes to his office in the city, every day from his suburban house.His driver Gangaram drops him at the railway station in the morning and picks him up in the evening. Every evening Ram Singh reaches the station at 5 O' Clock.Gangaram also reaches at the same time.One day Ram Singh started early from his office and came to the station at 4 O' Clock.Not wanting to wait for the car he starts walking home. Mangaram starts at normal time, picks him up on the wayand takes him back house, half an hour early. How much time did Ram Singh walk? 

6. In a railway station, there are two trains going.One in the harbour line and one in the main line, each having a frequency of 10 minutes.The main line service starts at 5 o'clock and the harbour line starts at 5.02A.M. A man goes to the station every day to catch the first train that comes. What is the probability of the man catching the first train? 

Ans: 0.8

7. A family X went for a vacation.Unfortunately it rained for 13 days when they were there.But whenever it rained in the mornings, they had clear afternoons and vice versa.In all they enjoyed 11 mornings and 12 afternoons. How many days did they stay there totally? 

Ans: 18

8. A survey was taken among 100 people to find their preference of watching T.V. programmes.There are 3 channels. Given the no of people who watch 

at least channel 1 at least channel 2 at least channel 3 no channels at all atleast channels 1and 3 atleast channels 1 and 2 atleast channels 2 and 3 Find the no of people who watched all three. 

9. Albert and Fernandes have two leg swimming race.Both start from opposite ends of the pool.On the first leg, the boys pass each other at 18 m from the deep end of the pool.During the second leg they pass at 10 m from the shallow end of the pool. 

Page 208: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

Both go at constant speed but one of them is faster.Each boy rests for 4 seconds at the end of the first leg. What is the length of the pool? 

10. Each alphabet stands for one digit in the following multiplication. 

T H I S x I S---------X F X X X X U X ------------X X N X X ------------

What is the maximum value T can take? 

Ans: T max value = 4 

Back to topInfosys Sample Test #7 Home

Back To Infosys Page

1.An escalator is descending at constant speed. A walks down and takes 50 steps to reach the bottom.B runs down and takes 90 steps in the same time as A takes 10 steps. How many steps are visible when the escalator is not operating? 

Ans: 150 steps

2. Every day a cyclist meets a train at a particular crossing.The road is straight before the crossing and both are travelling in the same direction.The cyclist travels with a speed of 10 Kmph.One day the cyclist comes late by 25 min. and meets the train 5km before the crossing. What is the speed of the train?

Ans: 60 kmph

3. There are five persons with surnames Mukherjee, Misra, Iyer, Patil and Sharma.There are 4 persons having first or middle name of Kumar, 3 persons with Mohan, 2 persons with Dev and 1 Anil. Either Mukherjee and Patil have a first or middle name of Dev or Misra and Iyer have their first or middle name of Dev.Of Mukherkjee and Misra, either both of them have a first or middle name of Mohan or neither have a first or middle name of Mohan.Either Iyer or Sharma has a first or middle name of Kumar but not both.Who has the first or middle name of Anil? 

Ans: Kumar Misra DevMohan Iyer DevKumar Patil MohanMohan Sharma Kumar 

4. Boys are allowed to watch football at C.V.Raman auditorium subjected to conditions. 

Page 209: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

The boy over age 16 can wear overcoat No boy over age 15 can wear cap To watch the football either he has to wear overcoat or cap or both A boy with an umberella or above 16 or both cannot wear sweater. Boys must either not watch football or wear sweater. What is the appearence of the boy who is watching football. 

5. A bird keeper has got P pigeons, M mynas and S sparrows. The keeper goes for lunch leaving his assistant to watch the birds. 

Suppose p=10, m=5, s=8 when the bird keeper comes back, the assistant informs the x birds have escaped. The bird keeper exclaims: "Oh no! All my sparrows are gone."How many birds flew away? When the bird keeper comes back, the assistant told him that x birds have escaped. The keeper realised that atleast 2 sparrows have escaped. What is minimum no of birds that can escape? 

6. Answer the following questions based on the conditions from the choices A, B, C, D, E as described below:(A) if a definete conclusion can be drawn from condition 1 (B) if a definete conclusion can be drawn from condition 2 (C) if a definete conclusion can be drawn from condition 1 and 2 (D) if a definete conclusion can be drawn from condition 1 or 2 (E) no conclusion can be drawn using both conditions 

person 1 says N<5 person says N5 person 3 says 3N20 person 4 says 3N10 person 5 says N<8 What is the value of N? 

a) 1. No of persons who speak false being less than no of persons who tells the truth. 2. Person 2 is telling the truth. 

b) 1. no of persong telling the truth is greater than no of persons telling lies 2. person 5 is telling the truth. 

7. There are N coins on a table and there are two players A & B.You can take 1 or 2 coins at a time. The person who takes the last coin is the loser. A always starts first. 

If N=7 (a) A can always win by taking two coins in his first chanse (b) B can win only if A takes two coins in his first chance. (c) B can always win by proper play (d) none of the above 

2. A can win by proper play if N is equal to (a) 13 (b) 37 (c) 22 (d) 34 (e) 48 Ans: (e.) 

3. B can win by proper play if N is equal to (a) 25 (b)26 (c) 32 (d) 41 (e) none 

4. if N<4, can A win by proper play always?(a) Yes (b) No 

8. Two twins have vertain peculiar charcteristics. 

Page 210: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

One of them always lies on Monday, Wednesday, Friday. The other always lies on Tuesdays, Thursdays and Saturdays. On the other days they tell the truth. You are given a conversation. 

Person A-- today is Sunday my name is Anil Person B -- today is Tuesday, my name is Bill What day is today? 

Ans: Today is Tuesday.

9. There is a safe with a 5 digit number as the key.The 4th digit is 4 greater than second digit, while 3rd digit is 3 less than 2nd digit. The 1st digit is thrice the last digit. There are 3 pairs whose sum is 11. Find the number. 

Ans: 65292

10. A hotel has two wings,the east wing and the west wing.Some east wing rooms but not all have an ocean view.All west wing rooms have a harbour view.The charge for all rooms is identical, except as follows : 

Extra charge for all harbour view rooms on or above the 3rd floor Extra charge for all ocean view rooms except those without balcony Extra charge for some harbour rooms on the first two floor & some east wing rooms without ocean view but having kitchen facilities. Which of the following cannot be determined on the basis of the nformation given:

I. Whether there are any rooms without a balcony for which an extra charge is imposed.II. Whether any room without a kitchen or a view involves an extra charge.III. Whether two extra charges are impsed for any room.

(A) I only(B) II only(C) III only(D) II and III only(E) I, II and III

(This question is from 1999 Barrons GRE Guide model Test 3 - section 6, question 22) 

Ans: (A)

Back to top

--- sandeep kumar <[email protected] wrote:Date: Thu, 10 Aug 2000 07:40:48 -0700 (PDT)From: sandeep kumar <[email protected]: infosys-iitd..To: nagesh <[email protected]

iit,delhi.infosys-2000,iitdelhi:there are 10 questions altogether.languages of allthequestions may not be exacttbut main theme is the same.all questions are logical in nature.apart from these questions(duration-1 hour) there

Page 211: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

werean essay writing(15 min.)the questions are as follows:

=====Keep in touch. ::Sandeep Kr.Morthala :: ::EC10,Kumaon House :: 

IIT Delhi ::

New Delhi-110 016. :: Ph.No.6581283,6581129(011) :: ::::

__________________________________________________Do You Yahoo!?Kick off your party with Yahoo! Invites.http://invites.yahoo.com/

__________________________________________________Do You Yahoo!?Yahoo! Auctions - buy the things you want at great priceshttp://auctions.yahoo.com/

Here is theinfosys paper It may not contain full questions and ans

Understand it

1. There are 4 married couples out ofwhich 3a group isneeded . Butther

should not be his of her spouse .How nmanygroups are possible ?

Ans 32

2.In the 4 digits 1,2,3,4 how many 4 digitednumbers are possible

which are divisable by 4? Repetetions areallowedAns 64

3. Twow men are goingalong a trackf rail inthe opposite direction.

One goods train crossed the first person

Page 212: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

in 20 sec. After 10 min

the train crossed the other person who iscommingin opposite direction

in 18 sec .Afterthe train haspassed, whenthetwo persons will meet?

Approx 72min check it once.

4. Theno. of children adults . Theno .ofadults the no .of boys .

The no.of boys no. of girls .The no.ofgirls no.of familyi conditions

1.No family is without a child 2 Every girl has atleast one brotherand sister.

Ans cabgf; 9 6 5 4 3 .

6.There are4 boys Anand ,Anandya ,Madan andMurali with nicmnames perich ,zomie ,drummy and madeenanot in thesame order

Some com=nditons

Ans Anand : PerichAnandya: drummyMadan : Zombiemurali: Madeena7.Thereare2diomans ,1 spadeand1 club and 1aceand also 1king ,1 jack

and 1 aceare arranged in a straight line 

1.The king is at third place2.Theleft of jack is a heart and itsright isking3. No two red colours arein consequtive.4.The queensareseperated by two cards. Writethe orderor which suits 

(hearts ,clubs )and names(jacks queensetc.)8. Writeeach statementis true or false 8M1.The sum of the1st three statements andthe2nd false statement givesthe true statement.

2.The no.oftrue statements falsestatement 3. The sum of2nd true statement and 1stfalsestatement gives 

Page 213: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

the first 

true statement.4. Thereareatmost 3 falsestatements 5.There is no two consequtive true statements 6.If this containsonly 1-5 statements,theanswer of this is sameasthe an answer of the following question

9.Question on Venn diagram.All handsome are also fair skinned Sme musularsare fair skinned Some musculars are also handsomeAll lean are also muscular Some lean are also fair skinned.All rich man inot fair skinned but all richmanare handsome 

Some questions follows.10 There are 3 pileseach containe 10 15 20stones. There are A,B,C,D,F,G

and h persons .One man can catch upto fourstones from any pile.

The last manwho takeswill win. If first Astarts next B. and so on 

who will win? Ans May be F

Essay writing 1 Intrnet revolution2.Media for youth 

INFOSYS(1998-99)

LOGICAL THINKING TEST---------------------

Time : 1 hour

Total Marks : 50

ALL QUESTIONS DO NOT CARRY EQUAL MARKS

INSTRUCTIONS

* Please do not write/mark on the questionpaper.

* Read the questions carefully. Work youranswers carefully and as

rapidly as possible.

Page 214: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

* Do not spend too much time on questionsthat seem difficult for you.

If time permits go back to the ones youhave left out.

* Answer sheets have been provided to youseparately. Use the first

sheet to write your answers and use theremaining sheets for the 

detailed working.

* On completion, please put your answer sheetalong with the working

sheets, inside the question paper and handthem back to us.

* There is no negative marking. 

Do not turn the page until you are told to doso.

1. 2 Marks

When Arthur is as old as his father Hailey isnow, he shall be 5 times

as old as his son Clarke is now. By then,Clarke will be 8 times older

than Arthur is now. The combined ages ofHailey and Arthur are 100 

years. How old is Clarke ?

2. 3 Marks 

I have one orange glass containing orangejuice and another white glass

containing apple juice. I take 50 ml of orangejuice and mix it with

apple juice in the white glass. Then I take 50

Page 215: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

ml of this mixture and

transfer it back to the orange glass.If you compare amount of apple juice in theorange glass and amount of

orange juice in the white glass which is morethan the other and by

how much ?

3. 3 Marks 

The seven digits in this subtraction problemare 0,1,2,3,4,5 and 6.

Each letter represents the same digit wheneverit occurs.

D A D C B

E B E G

--------------------

B F E G

--------------------

What digit is represented by each letter ?

4. 4 Marks

The Jones have named their four boys afterfavourite relatives; their

friends, the Smiths, have done the same thingwith their three boys.

One of the families has twin boys. From thefollowing clues, can you

determine the families of all seven childrenand their ages ?

i) Valantine is 4 years older than his twinbrothers.ii) Winston, who is 8, and Benedict are notbrothers. They are each

named after a grandfather.

Page 216: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

iii) Briscoe is two years younger than hisbrother Hamilton, But three

years older than Dewey.iv) Decatur is 10 years old.v) Benedict is 3 years younger thanValentine; they are not related.

vi) The twins are named for uncles.

5. 4 Marks

Motorboat A leaves shore P as B leaves Q;they move across the lake at

a constant speed. They meet first time 600yards from P. Each returns

from the opposite shore without halting, andthey meet 200 yards from

Q. How long is the lake ?

6. 4 Marks

Fanta, Pepsi and Citra often eat dinner out.

a) Each orders either coffee or tea afterdinner.b) If Fanta orders coffee, then Pepsi ordersthe drink that Citra orders.

c) If Pepsi orders coffee, then Fanta ordersthe drink that Citra does

not order.d) If Citra orders tea, then Fanta orders thedrink that Pepsi orders.

Which person/persons always orders the samedrink after dinner ?

7. 6 Marks

On the Island of imperfection there is aspecial road, 

Page 217: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

Logic Lane, on

which the houses are usually reserved for themore mathematical inhabitants.

Add, Divide and Even live in three differenthouses on this road (which

has houses numbered from 1-50). One of them isa member of the Pukka Tribe,

who always tell the truth; another is a memberof the Wotta Tribe, who never

tell the truth; and the third is a member ofthe Shalla Tribe, who make

statements which are alternately true andfalse, or false and true.

They make statements as follows :

ADD : 1 The number of my house is greaterthan that of Divide's.

2 My number is divisible by 4.3 Even's number differs by 13 fromthat of one of the others.

DIVIDE : 1 Add's number is divisible by 12.2 My number is 37.3 Even's number is even.

EVEN : 1 No one's number is divisible by10. 2 My number is 30.3 Add's number is divisible by 3.

Find to which tribe each of them belongs, andthe number of each of

their houses.

8. 8 Marks 

The names of the inhabitants of WalkieTalkie Land sound strange to the

Page 218: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

visitors, and they find it difficult topronounce them, due to their

length and a few vowel sounds they contain.The Walkie Talkie guide is

discussing the names of four inhabitants -A,B,C and D. Their names

each contain upto eight syllables, althoughnone of the four names

contain the same number. Two of the namescontain no vowel sounds; one

contains one vowel sound; and one contains twovowel sounds.

From the Guide's statements below, determinethe number of syllables

and vowel sounds in each of the four WalkieTalkie names :

i) The one whose name contains two vowelsounds is not A.ii) C's name does not contain more than onevowel sound or fewer than

seven syllables.iii)The name with seven syllables does notcontain exactly one vowel

sound.iv) B and C do not have names with the samenumber of vowel sounds.

v) Neither the name with five syllables northe name with seven syllables

contains more than one vowel sound.vi) Neither the name with six syllables, northe B's name, contains

two vowel sounds.

9. 8 Marks

Page 219: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

Multiplication and Division.

(1) - - - - - (a) (2) __ . _ (d)

________________- - - (b) - - -) - - - -- . 0_________________ - - -

_______________- - - - - - - - - - - - --___________________ - --

_______________- - - - - - - (c) -- --- -

========

(1) and (2) represent the same two numbers -in one case multiplied 

9together, in other case divided.

Given that there are no 3's. find the missingdigits indicated as

(a), (b), (c) and (d) above ?

10. 8 Marks

Two identical twins have a very unusualcharacteristic. One tells 

nothing but lies on Mondays, Wednesdays andFridays, and tells nothing

but the truth all other days. The other tellsnothing but lies on

Tuesdays, Thursdays and Saturdays, and tellsnothing but the truth

all other days. On Sundays both children speakthe truth.

1) Which of the following statements can bededuced from the

Page 220: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

information presented ?

i) If it is Sunday, the twins will bothsay so.ii) If it is not Sunday,one twin will givethe correct day and

the other will lie about everything.iii)On any given day, only one twin willgive his correct name.

a) i onlyb) i and ii onlyc) i and iii onlyd) ii and iii onlye) i,ii and iii

2) According to the information presented,which of the following

conversations will be impossible.

a) Twin A : "Today you are a lier"Twin B : "You are telling the truth"

b) Twin A : "Today you are a lier"Twin B : "Today I am a truthteller"

c) Twin A : "Tommorow I shall be a lier"Twin B : "That's correct"

d) Twin A : "Tommorow you will be a lier"Twin B : "Today you are a truthteller"

e) Twin A : "Yesterday we were bothtruthtellers"Twin B : "You are lying"

3) Assume that the twins followed a differentset of rules, so that on

a given day both told only the truth whilenext day both only lied,

alternating days of truth telling and lying.Under these rules,which

of the following conversations would bepossible ?

a) Twin A : "Today you are a lier"Twin B : "That is correct"

b) Twin A : "Today you are a lier"Twin B : "That is not so"

Page 221: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

c) Twin A : "Tommorow we will be liers"Twin B : "Yesterday we weretruthtellers"

d) Twin A : "Tommorow we will be liers"Twin B : "You are 1 year older than Iam"

e) Twin A : "We always tell the truth"Twin B : "We some times tell thetruth"

4) If the twins are heard saying the followingon the same day, which

choice presents a correct statement ?

Twin A : "It is Sunday Today"Twin B : "Yesterday was Sunday"Twin A : "it is summer season now"

a) it is a summer sundayb) it is a summer mondayc) it is Monday but not summerd) it is Sunday but not summere) it is impossible to determine whether itis Sunday or Monday.

-----------------*-----------------

THIS IS INFOSYS 99 FROM IITBHU

q1) a frog jumps 3 ft comres bacfk 2ft in a day inhow many day it will come out of 30ft deep well (2 marks )ns ans28 dayq2) A-B=C D/E=FG+H=IC.F=I ANS A=9,B=5,C=4,F=2.Q3)when the asctual time pass 1hr wall clock ic 10min behind it when 1 hr is shown by wall clock, table clock shows 10min ahead of ih when table clock shows 1 hr the alarm closckgoes 5minbehind it,when alarm clock goes 1 hr wrist watch is 5 minahead of it assuming that all clocks are correcrt with actual tinme at 12noon what will be time shown by wrist watch after 6 hrans---5:47:32.5(n X 60 )50/60 X 70/60 X 55/60 X 65/60

q4)a soft. engr just returned from US has eaten toomucgh fat &put a lot of weight everfy sunday he starts walking 4km/hr on level ground then up at 3 km\hr then back down hill at

Page 222: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

6km\hr then again on level grounggd at 4km\hr till he reaches hisdestination if he returned home at 9 p.m. e what distance did he coveredans 24kmit is aslo asked in some parer fingd half of the distcovered by hoim in this case ans 12kmq5 ] one family promblem was there in wich variosrelations are givernans is correcr 3 families

q6] one question was about cards 4 persons play yjthegame of cards cards are of 4 colour yellow green blue,red fingcolours of playing cards which are hiddeden ans remember the sequenceyellow,yellow,green,blue,probably frob greq7] one very easy question just solve two eq, aboutagesi rembemer only ans boy=10yrsor girl =4 yrs or viceversa pl. check itq8]ans the questions from facts 8marksthe member of certain tribe are divided into 3 castsabhor,dravid magar1 an abhor woman cant marry dravid nman2 a nmagar man cant marry a dravid man3 a son takes the caste of his father a dauhgtertakes cast of her mother5 all marriages except those mentioned are notpermirtted 6 there are no childern born out of a wedlock1]aliertnates cant rem u acan previos question some ans are q]an abhor woman a alternative istrue ---can have adra, grandsonq]it can be refer from conditions described that amagar man ans is 2 &3 only iii choice --cant have a dravidmother & may have abhou motherq]an abhor marreies & has thr e childern allof aremembers aof abhor acsateeich of ffoloewing is trueans i & ii only --i is if c were married toa magarmanii-- if c were married to abhor man,they have a malechild

eassy topicrole of media ohun youth& interner revolutionone more q] there are 2 scales of temp A & B it wasgiven A 14 to 133B 36 to 87find the temp when temp oa a is eq. to temp of bans 52.5let t=mx+c c=-70 m=51/119a=a.51/119 -70 ; a=52.5this all came in bhuTCS paper was repeat of 98 some crirtical reasoningnew ques 50 t0 70some new quants question i rembember some bnew q

Page 223: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

ans are 1]some rect question %of widthis inscresadedlike that ans is 4%2]some packet of 1 a and 2 ---- ans 114 etCn

INFOSYS - 99 ATJU,CALCUTTA.(1). ALL TALLMEN AREHANDSOME,FAIRSKIMED,LEAN,NULSCULAR RICHAND EMPLOYED.1. ALL HANDSOME PERSONS AREFAIRSKIMED2. SOME NULSCULAR ARE FAIR SKIMEDAND HANDSOME3. ALL LEANS ARE NUSCULAR PERSONS4. NO FAIRSKIMED PERSON WHO IS NOTHANDSOME IS RICH5. NEITHER FAIRSKIMED NORNULSCULAR ARE EMPLOYED.THERE ARE 4 QUESTIONS BASED ON THE ABOVE. 8 MARKS

(2). PROBLEM

(3). A SOFTWARE ENGINEER STARTS FROM HOMEAT 3PM FOR EVENING WALK.HE WALKSPEED OF 4KMPH ON LEVEL GROUNDAND THEN AT A SPEED OF3KMPH ON THE UPHILL AND THEN DOWN THEHILL AT A SPEED OF6KMPHTO THE LEVEL GROUND AND THEN AT ASPEED OF 4KMPH TO THE HOMEAT 9PMWHAT IS THE DISTENCE ON ONE WAY? 4MARKS

(4). A BAG CONTAINS CERTAIN NUMBER OFFILES. EACH FILE IS NUMBEREDWITH ONEDIGIT OF 0 TO 9. SUPPOSE THE PERSONWANT TO GET THE NUMBERBETWEEN 1 TO2000 (OR 7000 CHECK ) . HOW MANY MINNO. OF FILES SHOULD BEPRESENT INTHE BAG. 3MARKS

(5). A + B + C +D = D + E + F + G = G + H+ I =17.IF A = 4 WHAT ARE THE VALUES OF DAND G. EACH LETTER TAKENONLY ONE OF THE DIGIT FROM 1 TO 9. 8MARKS

ANS : A = 4 ,B = 2, C =6, D =5, E = 3, F = 8, G = 

Page 224: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

1,H = 7, I = 9.

(6). SIX PERSONS A,B,C,D,E &F WENT TOSOLIDER CINIMA. THERE ARESIXCONSEUTIVE SEATS. A SITS IN THE FIRSTSEAT FOLLOWED BY B ,FOLLOWED BY C AND SOON. IF A TAKENONE OF THE SIX SEATS ,THENB SHOULD SIT ADJACENT TO A. C SHOULDSIT ADJACENT A OR B. DSHOULD SIT ADJACENT TO A, B,ORC ANDSOON. HOW MANYPOSSIBILITIES ARE THERE?

(7). SUPPOSE THERE ARE 4 GRADES A, B, C,D. (A IS THE BEST AND DIS THE WORST) 4 PERSONSJACK,JEAN,POUL,LUCY WROTE THEN FINALEXAMAND MADE THE STATEMENTS LIKE THIS.1. JACK: IF I WILL GET A THEN LUCYWILL GET D2. LUCY: IF I WILL GET C THEN JACKWILL GET D . JACK GRADEIN BETTER THEN POUL GRADE.3. JEAN: IF JEAN DOESNOT GET A ,THEN LACK WILL NOT GET A.4. POUL: IF JACK GET A , THEN JEANWILL NOT GET B.LUCY WILL GET C, I WON'TEITHER A OR B.IF ALL THE ABOVE STATEMENTS ARE TRUE,THEN WHICH PERSONWILLGET WHICH GRADES.(8). EACH MAN DANCES WITH 3 WOMEN. EACHWOMEN DANCES WITH 3 MENS.AMONG EACHG PAIR OF MEN THEY HAVEEXACTLY TWO WOMEN INCOMMAN.FIND THE NO. OF MEN & WOMEN.

ESSAY.

1. INTERNET REVOLUTION2. ROLE OF MEDIA FOR YOUNG.

INFOSYS Paper 32

There are passages from A to M.Each one is having

four questions.

A.My father had no brothers.but his three.....

1.My father was only child. (F)

Page 225: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

2.Three of my aunts have sons. (C)

3.I have six cousins on my mothers side (C)

4.I have only one uncle. (F)

B.Senoir manegers in a leading company..........

1.Some senoir managers said that more people will want to buy new  cars in the future. (F)

2.Managers told workers that Japanese workers are taking jobs  away form India Workers in

the car industry (F)

3.The managers issued their warning after a rise in interest rates(T).

4.The increased rate of interest will mean that Japanese firms  will cease to operate in this

country. 

C.Reaserchers in Mumbai have found that............

1.Injecting eather into the gallbladdre dissolves most gallastones.(T)

2.Surgery is the only treatment for calcium based gallastones(T)

3.Only a few hundred people suffer from calcium based gallastones(C)

4.It takes more than one day for the eather to dissolve calcium gallastones.(F)

Here is a small trick for D,E,F,G

D. T F T F

E.F F T C

F.F F T C

G.T F T F

D and G are same and E and F are same.Be carefull.

-------------------------------------------------

H. Every form of art is proteted by copyright...........(Tagore)

1.Tagore plays are not protected by copyright(F)

2.Tagore's desecendents should be asked to make some contribution  to the arts.(T)

31.Instead of buying a ticket,theatregoers should pay a fee to a  trust for the benifit of the arts.

(F)

32.More people could go to the theatre if copyright were  abolished (C)

I. Hacking is a crime..............

33.Most hackers are authorised to breaks into networks

34.Computers are only vulnerable to the unauthorised manipulation  of thier data via another

computer if they are networked. (C)

35.The main reason why it is relatively easy. (T)

36.Hackers do not work for the firms whose networks they break into(C)

J. In this only two questions

37.F

38.T

Page 226: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

K.Electronics......

39.F

40. to 42 all are True

L.

All are true.(43 to 46)

M. All are true (47 to 50)

No of candidates appeared : 220

For the Interview : 90.

GEORGE SUMMERS puzzle books are suggested.

-----------------------------

INFOSYS TECHNOLOGIES LIMITED.

-----------------------------

Question Paper

--------------

Part 1.

------

(1) 9 cards are there. u have to arrange them in a 3*3 matrix. cards are of 4 colors.they are

red,yellow,blue,green. conditions for arrangement: one red card must be in first row or second

row.2 green cards should be in 3rd column.Yellow cards must be in the 3 corners only. Two

blue

cards must be in the 2nd row. Atleast one green card in each row.

Solution:

Yello Red Gren

Blu Blu Gren

Yello Gren Yello

2. 4 cards are placed on a table, each card has two colors. U don't know the color of the back

side of

eachcard.4 persons A B C and D are sitting on the table before the cards. They can see Red,

Green Red and blue .Out of the 4 poeple 2 always lie. They see the color on the reverse side

and give

the following comment

A: Yello/green

B: Neither Blue/nor Green

c: Blue/Yello

D: Blue/ Yello

find out the color on the other side of the 4 cards.

Page 227: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

3.Red and brown tribes [FROM BARRONS GRE] Conditions to get married with each other.

4. Venn diagram regarding Rich, muscular, soft-skinned, employed, etc.,( Refer BARRONS

GRE GUIDE)

------------------------------------------------------------------------

PART 2.

-------

1. SAKUNTALA DEVI'S PUZZLE BOOK : PUZZLES TO PUZZLE YOU.

problem no: 3. ( Brothers and Sisters) A family I know has several children. Each boy in this 

family has as many sisters as brothers but each girl has twice as many brothers as sisters.

How many brothers and sisters are there?

ans: 4 boys and 3 girls.

 2. No. of animals is 11 more than the no. of birds. If the no. of birds were the no. of animals

and no. of animals were the no. of birds( ie., interchanging no.s of animals and birds.), the

total no. of legs get

reduced by one fifth (1/5). How many no. of birds and animals were there?

ans: birds:11,animals:22

3. In a soap company a soap is manufactured with 11 parts. For making one soap you will get

1 part as scrap. At the end of the day u have 251 such scraps. From that how many soaps

can be manufactured? ans: 22 + 2+ 1 = 25.

4. 2 * * | 3 * * | No. 7 does not occur in this ---------------- | 5 * * | multiplication. * 4 * | * * 3 | Find

the

product.

---------------- |

* * * * * |

---------------- |

--------------------------------------------------

ans 2 8 1

3 2 2

-----

5 6 2

5 6 2 0

8 4 3 0 0

---------

Page 228: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

9 0 4 8 2

---------

5. There is a 5digit no. 3 pairs of sum is eleven each. Last digit is 3 times the first one. 3 rd

digit is 3 less than the second. 4 th digit is 4 more than the second one. Find the digit.

ans : 25296.

6. There are five thieves, each loot a bakery one after the other such that the first one takes

1/2 of the total no. of the breads plus 1/2 of a bread. Similarly 2nd, 3rd,4th and 5fth also did

the same. After the

fifth one no. of breads remained are 3. Initially how many breads were there?

ans : 31.

7.ESCALATOR PROBLEM OF SAKUNTALA DEVI 'PUZZLES TO PUZZLE'book.

Problem No: Problem 27( Down the escalator)

ans : the no of steps in the stair way : 46.

8.Harbour line and Main line Problem of Sakuntala Devi Puzzle book. Ans : 4/5.

( More Puzzles book)

9.There are some chicken in a poultry. They are fed with corn One sack of corn will come for

9 days.The farmer decides to sell some chicken and wanted to hold 12 chicken with him.

He cuts the feed by 10% and sack of corn comes for 30 days. So initially how many chicken

are there?

10.Two people X & Y walk on the wall of a godown in opposite direction. They meet at a point

on one

side and then go ahead. X after walking for some time, walks in opposite direction for 15

mtrs.Then again he turns back and walks in the original direction. What distance did Y walk

before they met again, if X walks 11 mtrs by the time Y walks 8 mtrs.

11.Problem from SAKUNTALA DEVI 'PUZZLES TO PUZZLE U'.

Problem no: 23( Walking back to happiness.)

The walking time : 55 mins.

INFOSYS Paper 33

1. Father's age is three years more than three times the son's age. After three years, father's

age will be ten years more than twice the son's age. What is the father's present age.

Ans: 33 years. (2 marks) 

2. Find the values of each of the alphabets.

N O O N

Page 229: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

S O O N

+ M O O N

----------

J U N E

Ans: 9326 (2 marks)

3. There are 20 poles with a constant distance between each pole A car takes 24 second to

reach the 12th pole. How much will it take to reach the last pole.

Ans: 41.45 seconds (2 marks)

Let the distance between two poles = xHence 11x:24::19x:?

4. A car is travelling at a uniform speed. The driver sees a milestone showing a 2-digit

number. 

After travelling for an hour the driver sees another milestone with the same digits in reverse

order.

After another hour the driver sees another milestone containing the same two digits. What is

the average speed of the driver.

Ans: 45 kmph (4 marks)

5. The minute and the hour hand of a watch meet every 65 minutes. How much does the

watch lose or gain time and by how much?

Ans: Gains; 5/11 minutes (4 marks)

6. Ram, Shyam and Gumnaam are friends.  Ram is a widower and lives alone and his sister

takes care of him.  Shyam is a bachelor and his neice cooks his food and looks after his

house.

Gumnaam is married to Gita and lives in large house in the same town. Gita gives the idea

that all of them could stay together in the house and share monthly expenses equally. During

their first month of living together, each person contributed Rs.25. At the end of the month, it

was found that Rs 92

was the expense so the remaining amount was distributed equally  among everyone.  The

distribution was such that everyone recieved a whole number of Rupees. How much did each

person recieve?

Ans. Rs 2 (4 marks)

(Hint: Ram's sister, Shyam's neice and Gumnaam's wife are the same person)

7. Four persons A, B, C and D are playing cards.  Each person has one card, laid down on

the table

below him, which has two different colours on either side. The colours visible on the table are

Red, Green, Red and Blue. They see the color on the reverse side and give the following

Page 230: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

comment.

A: Yellow or Green

B: Neither Blue nor Green

C: Blue or Yellow

D: Blue or Yellow

Given that out of the 4 people 2 always lie find out the colours on the cards each person

1. Number of null pointers in any binary tree = n+1

2. max(t1,t2,...tn) = pipelining

3. 50% -DBETXXXXXX - density

4. print (Head(T))

Traverse(left(T))

print (Head(T))

Traverse(right(T)) - ans: none of the above

5. Boolean expn Evalvate

6. Common subexpn : - ans : a + e

7. LRU : 1, 2, 3.

8. Tr. Delay - 10000 bits ans. 10.01

9. Grammar of Number of shift / reduce operator :  ans. 4

10. CPU scheduling 9,8 ?

11. if even x/2 else p(p(3x+1))

2^k + 1: 3 . 2^(k-1) clarify this with sans

12. allocation ans: (ii) only

13. swapping : ans: reference only

14. Compiler - related Qn.

15. LAN frames - ? related Qn.

16. parameter passing (35,20)

Page 231: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

17. sliding window protocol

- BUFFER SIZE large

18. kernel mode - deallocate resource

19. logic circuit

ans . Minimum OR = 3

20. Combinatorics related

21. priority scheduling

22. cobegin

begin x = y; x= x+1; y= x

begin x =y; z= z+1; y= z

coend

ans. Number of values possi = 2

23. 2 bits flip / 2 bits exchange

ans : the word with one '1'

24. any addr

K^+ v(a) + 2I - 2a

clarify with SANS.

1.An escalator is descending at constant speed.  A walks down and takes 50 steps to reach

the bottom. B runs down and takes 90 steps in the same time as A takes 10 steps.  How

many steps are visible when the escalator is not operating? 

Ans: 150 steps

2. Every day a cyclist meets a train at a particular crossing. The road is straight before the

crossing and both are travelling in the same direction. The cyclist travels with a speed of 10

Kmph. One day the cyclist comes late by 25 min. and meets the train 5km before the

crossing.  What is the speed of the train?

Ans: 60 kmph

3. There are five persons with surnames Mukherjee, Misra, Iyer, Patil and Sharma. There are

4 persons having first or middle name of Kumar, 3 persons with Mohan, 2 persons with Dev

and 1 Anil. 

Page 232: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

Either Mukherjee and Patil have a first or middle name of Dev or Misra and Iyer have their

first or middle name of Dev. Of Mukherkjee and Misra, either both of them have a first or

middle name of Mohan or neither have a first or  middle name of Mohan. Either Iyer or

Sharma has a first or middle  name of Kumar but not both. Who has the first or middle name

of Anil? 

Ans: Kumar Misra Dev

Mohan Iyer Dev

Kumar Patil Mohan

Mohan Sharma Kumar 

4. Boys are allowed to watch football at C.V.Raman auditorium subjected to conditions.  The

boy over age 16 can wear overcoat  No boy over age 15 can wear cap  To watch the football

either he has to wear overcoat or cap or both  A boy with an umberella or above 16 or both

cannot wear sweater.  Boys must either not watch football or wear sweater.  What is the

appearence of the boy who is watching football. 

5. A bird keeper has got P pigeons, M mynas and S sparrows.  The keeper goes for lunch

leaving his assistant to watch the birds.  Suppose p=10, m=5, s=8 when the bird keeper

comes back, the assistant informs the x birds have escaped. The bird keeper exclaims: "Oh

no! All my sparrows are

gone." How many birds flew away?  When the bird keeper comes back, the assistant told him

that x birds have escaped. The keeper realised that atleast 2 sparrows have escaped.  What

is minimum no of birds that can escape? 

6. Answer the following questions based on the conditions from the choices A, B, C, D, E as

described below:

(A) if a definete conclusion can be drawn from condition 1 

(B) if a definete conclusion can be drawn from condition 2 

(C) if a definete conclusion can be drawn from condition 1 and 2 

(D) if a definete conclusion can be drawn from condition 1 or 2 

(E) no conclusion can be drawn using both conditions 

person 1 says N<5 

person says N5 

person 3 says 3N20 

person 4 says 3N10 

person 5 says N<8 

What is the value of N? 

a) 1. No of persons who speak false being less than no of persons who tells the truth. 

2. Person 2 is telling the truth. 

b) 1. no of persong telling the truth is greater than no of persons telling lies 

Page 233: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

2. person 5 is telling the truth. 

7. There are N coins on a table and there are two players A & B. You can take 1 or 2 coins at

a time.  The person who takes the last coin is the loser.  A always starts first. 

If N=7 

(a) A can always win by taking two coins in his first chance 

(b) B can win only if A takes two coins in his first chance. 

(c) B can always win by proper play 

(d) none of the above 

2. A can win by proper play if N is equal to  (a) 13 (b) 37 (c) 22 (d) 34 (e) 48 

Ans: (e.) 

3. B can win by proper play if N is equal to  (a) 25 (b)26 (c) 32 (d) 41 (e) none 

4. if N<4, can A win by proper play always?

(a) Yes (b) No 

8. Two twins have vertain peculiar charcteristics. One of them always lies on Monday,

Wednesday, Friday.  The other always lies on Tuesdays, Thursdays and Saturdays.  On the

other days they tell the truth. You are given a conversation. 

Person A-- today is Sunday my name is Anil 

Person B -- today is Tuesday, my name is Bill 

What day is today? 

Ans: Today is Tuesday.

9. There is a safe with a 5 digit number as the key. The 4th digit is 4 greater than second digit,

while 3rd digit is 3 less than 2nd digit.  The 1st digit is thrice the last digit.  There are 3 pairs

whose sum is 11.  Find the number. 

Ans: 65292

10. A hotel has two wings,the east wing and the west wing. Some east wing rooms but not all

have an ocean view. All west wing rooms have a harbour view. The charge for all rooms is

identical, except as follows : 

Extra charge for all harbour view rooms on or above the 3rd floor 

Extra charge for all ocean view rooms except those without balcony 

Extra charge for some harbour rooms on the first two floor & some east wing rooms without

ocean view but  having kitchen facilities.  Which of the following cannot be determined on the

basis of the information given:

Page 234: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

I. Whether there are any rooms without a balcony for which an extra charge is imposed.

II. Whether any room without a kitchen or a view involves an extra charge.

III. Whether two extra charges are imposed for any room.

(A) I only

(B) II only

(C) III only

(D) II and III only

(E) I, II and III

(This question is from 1999 Barrons GRE Guide model Test 3 - section 6, question 22) 

Ans: (A)

Infosys Sample Test #6 Home1. From a vessel, 1/3rd of the liquid evaporates on the first day. On the second day 3/4th of

the remaining liquid evaporates.  What fraction of the volume is present at the end of the

second day.

Ans: 50%

2. An orange glass has orange juice and white glass has apple juice both of equal volumes.

50ml of the orange juice is taken and poured into the apple juice. 50ml from the white glass is

poured into the

orange glass.  Of the two quantities, the amount of apple juice in the orange glass and the

amount of orange juice in the white glass, which one is greater and by how much? 

Ans: The two quantities are equal

3. There is a 4 inch cube painted on all sides. This is cut down into of 1 inch cubes.  What is

the no of cubes which have no pointed sides. 

Ans: 8

4. Sam and Mala have a conversation.  Sam says I am certainly not over 40  Mala says I am

38 and you are atleast 5 years older than me  Now Sam says you are atleast 39  All the

statements by the two are false.  How old are they really? 

Ans: Mala = 38 yrs

Sam = 41 yrs. 

5. Ram Singh goes to his office in the city, every day from his suburban house. His driver

Gangaram drops him at the railway station in the morning and picks him up in the evening. 

Every evening Ram Singh reaches the station at 5 O' Clock. Gangaram also reaches at the

same time. One day Ram Singh started early from his office and came to the station at 4 O'

Clock. Not wanting to wait for the car he starts walking home. Mangaram starts at normal

time, picks him up on the way

Page 235: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

and takes him back house, half an hour early.  How much time did Ram Singh walk? 

6. In a railway station, there are two trains going. One in the harbour line and one in the main

line,

each having a frequency of 10 minutes. The main line service starts at 5 o'clock and the

harbour line starts at 5.02A.M.  A man goes to the station every day to catch the first train that

comes.  What is the probability of the man catching the first train? 

Ans: 0.8

7. A family X went for a vacation. Unfortunately it rained for 13 days when they were there.

But whenever it rained in the mornings, they had clear afternoons and vice versa. In all they

enjoyed 11 mornings and 12 afternoons.

How many days did they stay there totally? 

Ans: 18

8. A survey was taken among 100 people to find their preference of watching T.V.

programmes. There are 3 channels. Given the no of people who watch 

at least channel 1 

at least channel 2 

at least channel 3 

no channels at all 

atleast channels 1and 3 

atleast channels 1 and 2 

atleast channels 2 and 3 

Find the no of people who watched all three. 

9. Albert and Fernandes have two leg swimming race. Both start from opposite ends of the

pool. On the first leg, the boys pass each other at 18 m from the deep end of the pool. During

the second leg they pass at 10 m from the shallow end of the pool.  Both go at constant

speed but one of them is

faster. Each boy rests for 4 seconds at the end of the first leg. 

What is the length of the pool? 

10. Each alphabet stands for one digit in the following multiplication. 

T H I S 

x I S

---------

X F X X 

X X U X 

------------

X X N X X 

Page 236: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

------------

What is the maximum value T can take? 

Ans: T max value = 4 

1) A man collects cigarette stubs and makes one full cigarette with every 8 stubs. If he gets

64 stubs how many full cigarettes can he smoke. 

Ans: 8+1=9

2) A soldier looses his way in a thick jungle. At random he walks from his camp but

mathematically in an interesting fashion. First he walks one mile East then half mile to North.

Then 1/4 mile to West, then 1/8 mile to South and so on making a loop.  Finally how far he is

from his camp and in which

direction. 

Ans: Distance travelled in north and south directions 

1/2 - 1/8 + 1/32 - 1/128 + 1/512 - and so on 

= 1/2/((1-(-1/4)) 

Similarly in east and west directions 

1- 1/4 + 1/16 - 1/64 + 1/256 - and so on 

= 1/(( 1- ( - 1/4)) 

Add both the answers 

3) How can 1000000000 be written as a product of two factors neither of them containing

zeros 

Ans: 2 power 9 x 5 power 9 

4) Conversation between two mathematicians:  First : I have three children. The product of

their

ages is 36.  If you sum their ages, it is exactly same as my neighbor's door number on my

left. 

The second mathematician verifies the door number and says that it is not sufficient. 

Then the first says " Ok one more clue is that my youngest is really the youngest".

Immediately the

second mathematician answers .  Can you answer the question asked by the first

mathematician? 

What are the children ages? 

Ans 1,6 and 6

5) Light glows for every 13 seconds . How many times did it glow between 1:57:58 and

3:20:47 am.

Ans : 383 + 1 = 384 

Page 237: HCL - msccLucknow.commscclucknow.com/downloads/campus/HCL Technologies.doc · Web viewHCL Sample Test Paper 1. Which of the following involves context switch, (a) system call (b)

6) 500 men are arranged in an array of 10 rows and 50 columns according to their heights.

Tallest among each row of all are asked to fall out. And the shortest among them is A. 

Similarly after resuming that to their original positions that the shortest among each column

are asked to fall out. 

And the tallest among them is B . Now who is taller among A and B ? 

Ans A 

7) A person with some money spends1/3 for cloths, 1/5 of the remaining for food and 1/4 of

the remaining for travel. He is left with Rs 100/- .  How much did he have with him in the

beginning ? 

Ans: Rs 250/- 

8) There are six boxes containing 5 , 7 , 14 , 16 , 18 , 29 balls of either red or blue in colour.

Some boxes contain only red balls and others contain only blue. One sales man sold one box

out of them and then he says  " I have the same number of red balls left out as that of blue ". 

Which box is the one he solds out ? 

Ans: Total no of balls = 89 and (89-29 /2) = 60/2 = 30

and also 14 + 16 = 5 + 7 + 18 = 30 

9) A chain is broken into three pieces of equal lenths containing 3 links each. It is taken to a

backsmith to join into a single continuous one .  How many links are to to be opened to make

it ? 

Ans : 2.

10) Grass in lawn grows equally thick and in a uniform rate. It takes 24 days for 70 cows and

60 days for 30 cows to eat the whole of the grass. How many cows are needed to eat the

grass in 96 days.? 

Ans : 20 

g - grass at the beginning 

r - rate at which grass grows, per day 

y - rate at which one cow eats grass, per day 

n - no of cows to eat the grass in 96 days

g + 24*r = 70 * 24 * y 

g + 60*r = 30 * 60 * y 

g + 96*r = n * 96 * y 

Solving, n = 20