Saturday, June 7, 2008

PAPER 1

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
ans 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);//no after dot tells Maximum number
of characters to print;
} //for integers, minimum number of
digits to print

a)Hello,.World...
b)....Hello,.Wor
c)Hello,.Wor....
d)None of the above
ans b





Q. In an empty queue front=or rear=

a) 0 b)-1c) d)

ans -1.

Q.In a dual ring configuration(don’t remember the exact ques.)

Ans is It rearranges itself to use secondary ring when primary fails
Q. Value of~0

a) 0 b) 1 c)0Xff d)0Xffff

Ans. D

QShort int x=-1;

Long int y=x;

Y=?

a)0 b)-1 c)0Xff d)0Xffff
QNo. Of node at level k in a tree

a)2^k b)2^(k-1) c)2^(k+1) d)

Ans a

QQues on line discipline ENQ/Ack

Q Terminal emulation is done by which layer

Ans Application layer
Q Ques on bubble sort

Ans 10

Q Searching based on key

Ans Hash

Q To run C program from assembly what is reqd.

HCL APTI
1. jumbled word

ans. parachut

2. prefix to add in several words

ans. post
3. prefix to add in' scape '& use same suffix in

'grass'

ans land

4. dogs & cats related very tough question. check out in barrons first bit ans is a. third bit ans is c

5. now is midnight ,so can we expect sunny days after 72 hrs.

ans. no

6. 2 nos. whose sum is 330 and when we remove last

digit of one no. sum is 330, find the nos.

ans. 300,30

7. (ap)^2=bpm digits are there and we have to find out the value of ap

ans. 19

1. product is s.p. 20% of c.p.

are both sufficient

1. 50 rs sell

2. s.p. 10% deduct profits

ans. 1 & 2

2. two words here, sit atleast 2 dogs learnt sit, atleast 2 learnt here, atleast 1 knows both,total = 8. three types s,r,z. r=all females there were 4 quetions on this

mug up the above conditions as it cud help u in

answering the questions faster.
3. in maze 25 images were there , leftmost column had no number. find out the number.

4. simple maths linear eqns
1. arq protocol
2. unix init process does what

3. which is a network mgmt protocol

ans. snmp

4. virtual memory size depends on what

a. address lines b. data bus c. disk space

ans. c

5. # define cube(x) x * x * x

main()

a=3

cube(a++)
6. # define mult(x) x*y

main()

mult(2+1);

7. printf('%d',printf('hello'));

8. char a[10];

char *p1=a;

char *p1=&a[a];

{

*p1++;

*p2--;

}
9. one ques was there in which funda was that printf

only prints upto /0

10. for cube marco is

#define cube(x) (x)*(X)*(x)

Vishal Rastogi wrote:Excuse me,

I dont remember all the questions of HCL paper. that's why i m asking if anyone having the whole paper in written. If u find, plz send, my few friends r asking for it.

And I m serious bcoz i know this group is not made

No comments: