Company: HCL Technologies

jnu-2002(HCL)
———–
Aptitude 25 Q
______
1-5Q.   DOGS..SEPHARD …LEARN TO
STAY..HEEL…TERRIES..LIKE THIS.
HERE ANWERS FOLLOWS:
(i) (A)–>THE GROUP INCLUDES MORE FEMALES THAN MALES.
(ii) (C)–>ALL TERRIES HAVE LEARNED TO STAY
(iii) (E)—> FOUR OF THE DOGS HAVE LEARNED TO STAY.
(iV) (C)—>2
(V) (B)—> ALL THE DOGS ARE MALE.

6. “CARD BOX”, “BAG…”,ONE MORE WORD IS GIVEN…AND
ASKED LIKE..BY ADDING A WORD FOR THIS , WE  CAN 
PRODUCE SOME MORE WORDS..THE N WHAT IS THTAT
WORD.._____(ANS): POST.

7. SIMILAR TO ABOVE….”GRASS” AND “SCAPE” IS
GIVEN..ADDING A WORD AT SUFFIX AND PREFIX 
RESSPECTIVELY   THE TWO MORE WORDS WILL PRODUCE WHAT
IS THAT WORD….(ANS) :LAND. 

8. SOME JUMBLE WORD IS GIVEN ANSWER IS:”PARACHUTE”.

9.SHE LIKES 225 BUT NOT 224,LIKES 144 BUT NOT 145 ,
LIKES 900 BUT NOT 800..THEN WHAT SHE LIKES IN
FOLLOWING….ANS:1600.

10.A PAPER BOY SELLS FROM OPENING SHOP TO NOON 40% AND
FROM NOON TO CLOSING 60% OF REMAINING THE  WHAT HIS
TOTAL SALE FROM OPENING TO CLOSING ANS:76%.

11.A QUESTION IS GIVEN IN WORDS FOR AN EQUATION
…IT’S MEANING IS “X(X-1)=(X^2)-4 “SO ANS: 4.

12.(BE)^2 = MPB WHAT IS VALUE OF M. ANS :3.(B’COZ 19 ^
2 = 369)

13. PRESENT TIME….SOME THING LIKE THIS. ANS:21:30.

14. A 4X4 TABLE IS GIVEN AND AT END OF EACH ROW AND
COLUMN SOME VALUES R GIVEN..AND WITH ONE  BLANK..WHAT
IS THE VALUE IN BLANK? ANS:25.

15.(X-A)(X-B)…(X-Z)=? ANS :0 (ANS IS NOT GIVEN IN
QP..SO NONE IS ANS.)

16.A>B>1 THE WHICH OF THE FOLLOWING IS CLOSEST TO
ONE.ANS:(A+2+/(B+2).

17.IT’S 12:00 MID NIGHT…AFTER EXACTLY 72 HOURS…IS
IT SUNNY DAY?(ANS:NO)

18-19…2Q ON FOLLWOING PASSAGE.
IN A GAME  5 COMPONENTS R USED…CHESS AMKER, CHESS
BOX., DIES,…MATERIAL USED  EBONY..BROSS..TEAK…LIKE
THIS.
18. ANS–>>(B)–>CHESSMAN,BOX
19. ANS—>>(C)–>#3
20-21…2Q ON FOLLWOING PASSAGE.(VERIFY IT ONCE
AGAIN…IT’S IN MANY OLD PAPERS)
20.ANS–>>2ND DAY, 4TH DAY,5TH DAY, 7TH DAY.
21.ANS–>>7TH DAY.
22. 2,3,5,7,11,13,? (ANS: 17)
23-24 QUESTIONS ON DATA SUFFICIENCY
25. A NUMBER 330N IS GIVEN…SOME WORDING IS
THERE..ANS IS:( 300, 30).

30 Q ON C, C++-PROGRAMMING
————————–
1. QUESTION ON BITWISE OPERATORS. ANS:( 1 0 1 1)
2.VOID MAIN(){ enum(pass,fail,medium};
        enum s1,s2,s3;
        s1= pass; s2=fail; s3= medium;
        printf(“%d%d%d”,s1,s2,s3);
          }    ans:(0,1,2)
3.#define cube(x) x*x*x
void main(){ int i= 5,m; m= cube(i++);
        printf(“%d”,m); printf(“%d”, cube(i)); }
4.how to define cube(x)? ans:(x)*(x)*(x)
5.if u want assign x a float variable to int variable
m how u cast it(asked or round off).
ans:[m=(int)(x+0.5)]
6.unsigned char i=-1;
long int m= i;
7. m= ~0; ans:(0Xffff)
8. c=2;b=a=6;
  if(c=a==b){–} printf(“%d”,c);
9. cahr *s=”Ab…* is *….lA”;
  char  *t; while(s!=t){…} ans: starts
with..”AA…..”.
10.char *s = “hello world”;
  char dt[10]; strcpy(dt,s);printf(“%s”,dt);
   strcpy(source, dest){*dt++= *st++};
ans: NULL or  undefine.. check it.(this is old
repeated qp only).
11. write in sentence for(*(*fun(char*,int*))) (
ans:c) (verify K&r)
12.how to declare a pointer to costant integer.
13.what is the type should not be used in
switch(ans:float)
14. i=6;switch(i){default:i++;case:i++;case:3: i =4;
case:i++;braek;)printf(“%d”,i);
15.what is the minimum an d max ht of binary tree:
ans:log(n+1) and n.
16.what is the max no.of nodes in a binary treeat
level i.[ans:2^(i-1)].
17.#define value 1+2
main(){printf(“%d%d”,value/value,value);}
18.what r the  min. comparisions to search for 2 in
series. 1,2,3,4,5,6,7,8 for binary  search(ans:2).
19.when a c function is called from assembly…amy be
ans:the arguments are passed from left to  right in
stack and call function.
20. min. no.of caomparisionsin bubble sort is
3,5,6,1,2 for assending order is? ans:10
21. if the no.of records are more then what is  the
algorithm to use? ans:QUICKSORT
22.which datastructure is used for search with
key(ans:perhaps TREE)
23. a=(10,15);b=10,15; what the values of a and b?
(pl.,, execute and check it.)
24.main(){int i; char *p; i=
0x89;p=(char*)i;p++;printf(“%d”,p);}ans:(0x8A)
25.b=(3^6)+(a^a)=? ans:5;
26.int m= 32; printf(“%d”,~m);ans:0xffdf
27.main(){ int i = 1000;j=func(45*i);printf(“%d”,j);}
  func(int c){if(c>4000) return (c/10);
elsereturn10;}(note: 45000>int range)
(a)segmentation problem (b)4500(c)4000(d)10
28.value of conditional exception ..ans:3
29.when a function prototype is declared it specifies
  (a)return type (b)arguments type(c)no.of
arguments(d)all of the above
……..
we couldn’t recall one more qestion left may be on
some o/p
….

20 q out of 25Q questions on N/w and OS.(we recalled)

1.No of hosts in c-class network is- ans:256

2.no of bits in network field of ip addess 204.–.–
.– ans 21.
(not given)

3.a code segment start ay0xAAAA and ip at 0xAAAA in
8086.from which
adress it will take the next address.

ans:oxb554A

4.terminal emulation in which layer

ans :application layer

5.semaphore helps in
ans:process synchronization

6.16mb address needs how many address lines.

ans 24

7.where in disk boot sector is located
ans: 1 st sector of the disk

8.difference b/n tcp/ip and udp
ans:tcp/ip is coneection orinetd and udp is connection
less

9.which is used for lan
ans:csma/cd

10.windows dll files are in which directory
a.winmain b.dllmain  (check the amswer)

11.in which layer arq protocol is there.
ans:datalink layer

12.what is the first process to be created
ans.init

13.the no of errors detected by parity bit
ans :odd

14.context switch is used in
ams:system call

15.what is context switch
ans:change of process state

16.virtual memory depends on
a.address line b.diskspace c.a&b d.none (check once)

17.after calling the boot strap program next what
happens
a.it loads os. b.it loads os loader c.power on self
test d.—
(check once)

18.ppp is used in
a.ethernet b.tokenring c.arcnet d….

19.which of the following is the network management
protocol
ans:snmp

20.in synchronous transmission data will be send with
ans: clock syncronization