Sample Question Paper
What is diners phylosophers algorithm.
What is atomicity.Explain
Give an example of source- level debugger in unix/linx.
What is Pre-emptive multitasking.
Do not remember this one.
DataStructures: (ONly 5 Questions)
Where will the parameters be stored when a function is called in a program.
What is recursion?What are its disadvantages.
Which one is the best and efficient sort?
Networking:(Only 5 Questions)
ASN.1 belongs to which layer.
Give an example of popular Transport Layer Protocol
What is the netmask of Class B IP address?
Explain CSMA/CD.
Given a size from 0-7 what would be the least window size.
C Language (Total 13 Questions)
main()
{
printf("%d",printf("HelloSoft"));
} Output?
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.
main()
{
int i=3;
printf("%d %d %d",i++,i,++i);
}
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.
Write In Order Tree Traversal Pseudo-code.
main()
{
int *p=0x100;
int *q=0x100;
int k=p*q;
printf("%x\n",k);
} Output ?
Char* foo(Str...) {
char str[4];
strcpy(str,"HelloSoft");
return str;
} Output?
int a[10][20][30][40];
int *p
How to access an element of a using p?
main()
{
int i=10;
if(i>20)
if(i==10)
print("Hi");
else
printf("Bye");
} Output ?
main()
{
float f;
int i;
//something like this not remember these 4 questionsexactly
f=(float *)malloc(sizeof((float *)*4));
}
Showing posts with label HCL. Show all posts
Showing posts with label HCL. Show all posts
Saturday, June 7, 2008
HCL TECHNOLOGIES INDIA PRIVATE LIMITED
HCL TECHNOLOGIES INDIA PRIVATE LIMITED
HCL System Software Sample Test Paper there r two papers
NOTE : 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 ,cancatch
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 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 physicaladdress 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
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
A
MITEDHCL System Software Sample Test Paper there r two papers
NOTE : 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 ,cancatch
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 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 physicaladdress 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
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
A
HCL System Software Sample Test Paper there r two papers
NOTE : 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 ,cancatch
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 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 physicaladdress 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
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
A
MITEDHCL System Software Sample Test Paper there r two papers
NOTE : 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 ,cancatch
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 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 physicaladdress 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
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
A
Labels:
HCL
PAPER 22
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,
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); 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
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
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,
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); 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
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
Labels:
HCL
PAPER 21
1.6*12*15 is the volume of some material.How many cubes
can be inserted
into that? Ans.40
2.Two pipes can fill a tank in 10 1nd 12 hours while
third pipe will
make the tank empty in 20 hours.If all three pipes
operate simultaneously,
in how many hours the tank will be filled ? Ans.7hours
30 minutes.
3.Diameter of a beaker is 7cm. Mambler(some instrument) dia is 1.4cm.How many mamblers has to be put to increase the water level by 5.6cm.
4.Cost of an item is x. It's value increases by p% and decreases by p% Now the new value is 1 rupee, what is the actual value.
Ans.(1000)/(1000-p*p).
5.A right circular cylinder and a cone are there.Base radius of cone is equal to radius of cylinder.What is the ratio of height to slant side.
6.Distance between two poles is 50 meters.A train goes by 48 kmph in one
minute.How many poles will be crossed by the train.
7.A pole seen from a certain distance at an angle of 15 degrees and
100 meters ahead by 30 degrees. What is th height of pole.
8.15 people--each has to pay Rs.20..20 people--each has to pay Rs.18..
for 40 people--how much has to pay ?
9.if p=2q then q=r*r,
if p-odd then q is even,
whether we decide r is even or odd ?
choices:a)first condition is sufficient
b)second condition is sufficient
c)both are sufficient
d)both are not sufficient
10.What is the value of m given that
i) m is devided by 2
ii) m is devided by 5
Ans: none of these
11.If he sells 40 magoes, he will get the selling price of 4 mangoes
extra, What is his % increse in profit ? Ans: 25%
12.100 glasses are there. A servant has to supply glasses to a person
If he supplies the glasses without any damage he will get 3 paiseotherwise he will loose 3 paise.At the end of supplying 100 glassesif he gets 270 paise, how many glasses were supplied safely.Ans: 95
Some questions on reasoning
Electronics.
1.Fastest logic ..Ans: ECL
2.202.141.65.62 type of IP address belong to which class.
Ans:class B
3.Mod K ring counter requres how many number of
flipflops.Ans:K
4.ftp is in application layer.
5.Problem related to Ternary operations. Ans:3
6.Problem related to macro # define square x x*x. Ans:11
7.Problem related to 5 pointers..refer Page.123 of C
prog.,by Keringan
and Ritchie.
8.Ideal op-amp CMRR. Ans: infinity.
9.13-bit DAC MSB resistance 2kohms.
LSB resistance ?
Ans: 2k * 2 to the power of 12.
Few question related to C++
IIT- Guwahati.
they r giving the same paper so be thro this
after written test
select guys will go for group dis.
after a formal interview.
( main thing to note dont't tell them u r intersted in
going to states or abroad. u don't say ur GRE score.)
due to this reason 7 guys r not selected.
they taken only 4 guys.
so take care of all the things
section I and section II and sec III
questions r not in sequence .................
1. forall(roar(x)=> lions(x)) what does it mean ?
ans all lions roar .
2. p<=>q read about this
3. when 2 dice r thrown atleast one of them shows 6 probability is
ans 11/36.
4.2's complement of a 2's complement number is
ans . same no.
5. internatioaal court is at -----------
ans Hague.
6. Meaning of ambasador ?
uca ( u can ans)
7. automata DFA dia is given
ans most probably B. chec
8.criticall section
( uca )
9. No of page faults asked by giving the sequence
2 3 6 7 1 3 4 8 9 10 3 2 4
( just for example I have given this seq .)
thro LRU.
ans 6 ( corect).
10.problem in scheduling RR , a sequence is given just like above
with time slice of 1 and completion period for a process is asked
ans . 11
11.A directory has write permission then a user can create a file.
12.Java is
a. compiled
b. interpreted.
c. OOP
d. mutithreaded.
e. all
ans e.
13. Bubble sort is given ., No of times it executes
ans . n(n-1)/2
14. The appriximate ratio for no of internal nodes to total no of nodes in k-ary tree of depth n.
ans. 1/k
15. what is fidelity
satya u check
16 what is microprogram.
u check
17.joke :: laugh
ans. cracker : blast
18. question on deadlock
19. How do u remove a ghost in t.v
u check ( clue. ghost means shadow of pictures i.e
20. Queston about a familiy eric, koren, davis etc .
ans . for first one of question. mother
21. If a channel has 2400 bauds what is the data rate it support.
check in data commn book stalins
22. if Band width is w what is data rate
ans 2w
23. A graph is given u have to answer shotest path a to f ans. none of these shotest path between a to f ans. 17 shortest path between b to f ans . 16 meanings of tact , grudging check
can be inserted
into that? Ans.40
2.Two pipes can fill a tank in 10 1nd 12 hours while
third pipe will
make the tank empty in 20 hours.If all three pipes
operate simultaneously,
in how many hours the tank will be filled ? Ans.7hours
30 minutes.
3.Diameter of a beaker is 7cm. Mambler(some instrument) dia is 1.4cm.How many mamblers has to be put to increase the water level by 5.6cm.
4.Cost of an item is x. It's value increases by p% and decreases by p% Now the new value is 1 rupee, what is the actual value.
Ans.(1000)/(1000-p*p).
5.A right circular cylinder and a cone are there.Base radius of cone is equal to radius of cylinder.What is the ratio of height to slant side.
6.Distance between two poles is 50 meters.A train goes by 48 kmph in one
minute.How many poles will be crossed by the train.
7.A pole seen from a certain distance at an angle of 15 degrees and
100 meters ahead by 30 degrees. What is th height of pole.
8.15 people--each has to pay Rs.20..20 people--each has to pay Rs.18..
for 40 people--how much has to pay ?
9.if p=2q then q=r*r,
if p-odd then q is even,
whether we decide r is even or odd ?
choices:a)first condition is sufficient
b)second condition is sufficient
c)both are sufficient
d)both are not sufficient
10.What is the value of m given that
i) m is devided by 2
ii) m is devided by 5
Ans: none of these
11.If he sells 40 magoes, he will get the selling price of 4 mangoes
extra, What is his % increse in profit ? Ans: 25%
12.100 glasses are there. A servant has to supply glasses to a person
If he supplies the glasses without any damage he will get 3 paiseotherwise he will loose 3 paise.At the end of supplying 100 glassesif he gets 270 paise, how many glasses were supplied safely.Ans: 95
Some questions on reasoning
Electronics.
1.Fastest logic ..Ans: ECL
2.202.141.65.62 type of IP address belong to which class.
Ans:class B
3.Mod K ring counter requres how many number of
flipflops.Ans:K
4.ftp is in application layer.
5.Problem related to Ternary operations. Ans:3
6.Problem related to macro # define square x x*x. Ans:11
7.Problem related to 5 pointers..refer Page.123 of C
prog.,by Keringan
and Ritchie.
8.Ideal op-amp CMRR. Ans: infinity.
9.13-bit DAC MSB resistance 2kohms.
LSB resistance ?
Ans: 2k * 2 to the power of 12.
Few question related to C++
IIT- Guwahati.
they r giving the same paper so be thro this
after written test
select guys will go for group dis.
after a formal interview.
( main thing to note dont't tell them u r intersted in
going to states or abroad. u don't say ur GRE score.)
due to this reason 7 guys r not selected.
they taken only 4 guys.
so take care of all the things
section I and section II and sec III
questions r not in sequence .................
1. forall(roar(x)=> lions(x)) what does it mean ?
ans all lions roar .
2. p<=>q read about this
3. when 2 dice r thrown atleast one of them shows 6 probability is
ans 11/36.
4.2's complement of a 2's complement number is
ans . same no.
5. internatioaal court is at -----------
ans Hague.
6. Meaning of ambasador ?
uca ( u can ans)
7. automata DFA dia is given
ans most probably B. chec
8.criticall section
( uca )
9. No of page faults asked by giving the sequence
2 3 6 7 1 3 4 8 9 10 3 2 4
( just for example I have given this seq .)
thro LRU.
ans 6 ( corect).
10.problem in scheduling RR , a sequence is given just like above
with time slice of 1 and completion period for a process is asked
ans . 11
11.A directory has write permission then a user can create a file.
12.Java is
a. compiled
b. interpreted.
c. OOP
d. mutithreaded.
e. all
ans e.
13. Bubble sort is given ., No of times it executes
ans . n(n-1)/2
14. The appriximate ratio for no of internal nodes to total no of nodes in k-ary tree of depth n.
ans. 1/k
15. what is fidelity
satya u check
16 what is microprogram.
u check
17.joke :: laugh
ans. cracker : blast
18. question on deadlock
19. How do u remove a ghost in t.v
u check ( clue. ghost means shadow of pictures i.e
20. Queston about a familiy eric, koren, davis etc .
ans . for first one of question. mother
21. If a channel has 2400 bauds what is the data rate it support.
check in data commn book stalins
22. if Band width is w what is data rate
ans 2w
23. A graph is given u have to answer shotest path a to f ans. none of these shotest path between a to f ans. 17 shortest path between b to f ans . 16 meanings of tact , grudging check
Labels:
HCL
PAPER 20
HCL SYSTEM SOFTWARE PAPER: 60 qs; 90 min. (4 sections)
section 1
1.which of the following involves context switch,
a) system call b)priviliged instruction c)floating poitnt exception d)all the above e)none of the above
ans: a
2.In OSI, terminal emulation is done in
a)semion b)appl.. c)presenta d)transport
ans: b
3…...... 25MHz processor , what is the time taken by the instruction which needs 3 clock cycles,
a)120 nano secs b)120 micro secs c)75 nano secs d)75 micro secs
4. For 1 MBmemory no of address lines required,
a)11 b)16 c)22 d) 24
ans: 16
5. Semafore is used for
a) synchronization b0 dead-lock avoidence c)box d) none
ans : a
6. class c: public A, public B
a) 2 member in class A,B shouldnot have same name b) 2 member in class A,C " '' '' '' c) both d) none
ans : a
7. question related to java
8. OLE is used in
a)inter connection in unix b)interconnection in WINDOWS c)interconnection in WINDOWS NT
9.No given in HEX ---- write it in OCTAL
10.macros and function are related in what aspect?
a)recursion b)varying no of arguments c)hypochecking d)type declaration
11.preproconia.. does not do one of the following
a)macro ...... b)conditional compliclation c)in type checking d)including load file
ans: c
SECTION B
1.enum day = { jan = 1 ,feb=4, april, may} what is the value of may?
a)4 b)5 c)6 d)11 e)none of the above
2.main { int x,j,k; j=k=6;x=2;
ans x=1 x=j*k; printf("%d", x);
3. fn f(x) { if(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);
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=?
(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
section 1
1.which of the following involves context switch,
a) system call b)priviliged instruction c)floating poitnt exception d)all the above e)none of the above
ans: a
2.In OSI, terminal emulation is done in
a)semion b)appl.. c)presenta d)transport
ans: b
3…...... 25MHz processor , what is the time taken by the instruction which needs 3 clock cycles,
a)120 nano secs b)120 micro secs c)75 nano secs d)75 micro secs
4. For 1 MBmemory no of address lines required,
a)11 b)16 c)22 d) 24
ans: 16
5. Semafore is used for
a) synchronization b0 dead-lock avoidence c)box d) none
ans : a
6. class c: public A, public B
a) 2 member in class A,B shouldnot have same name b) 2 member in class A,C " '' '' '' c) both d) none
ans : a
7. question related to java
8. OLE is used in
a)inter connection in unix b)interconnection in WINDOWS c)interconnection in WINDOWS NT
9.No given in HEX ---- write it in OCTAL
10.macros and function are related in what aspect?
a)recursion b)varying no of arguments c)hypochecking d)type declaration
11.preproconia.. does not do one of the following
a)macro ...... b)conditional compliclation c)in type checking d)including load file
ans: c
SECTION B
1.enum day = { jan = 1 ,feb=4, april, may} what is the value of may?
a)4 b)5 c)6 d)11 e)none of the above
2.main { int x,j,k; j=k=6;x=2;
ans x=1 x=j*k; printf("%d", x);
3. fn f(x) { if(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);
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=?
(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
Labels:
HCL
PAPER 19
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.) r and s are true as first two statements
are contradictory. thus either P or S is murederer. as
q is not murderer, he is tellinjg truth that P was
with him. hence S is murderer.
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
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
ans d)
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 ?
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
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 (e)
10) if q <> 0 and k = qr/2 -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 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
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 pX-Mozilla-Status: 0009by 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
e) T
ans: e
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.) r and s are true as first two statements
are contradictory. thus either P or S is murederer. as
q is not murderer, he is tellinjg truth that P was
with him. hence S is murderer.
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
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
ans d)
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 ?
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
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 (e)
10) if q <> 0 and k = qr/2 -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 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
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 pX-Mozilla-Status: 0009by 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
e) T
ans: e
Labels:
HCL
PAPER 18
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
ans: b.) 16
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
e) a & b
ans: e) a & b . extern functions and variables should
have been declared in the files for external linkage.
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.) 55 and 55. similar to program 6.)
10) consider the following program:
# include
class x
{
public:
int a;
x();
};
x::x()
{
a=10;
cout < < a;
}
class b:public x
{
public:
b();
};
b::b()
{
a=20;
cout < < a;
}
main ()
{
b temp;
}
what will be the output of this prg?
a) 10
b) 20
c) 2010
d) 1020
ans: d.) 1020 first constructor for A prints 10
then constructor for B prints 20.
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.) r and s are true as first two statements
are contradictory. thus either P or S is murederer. as
q is not murderer, he is tellinjg truth that P was
with him. hence S is murderer.
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
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
ans d)
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 ?
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
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 (e)
10) if q <> 0 and k = qr/2 -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 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
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 pX-Mozilla-Status: 0009by 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
e) T
ans: e
{
if (x<=0)
return(1);
return func(x -1) +x;
}
main()
{
printf("%d\n",func(5));
}
a) 12
b) 16
c) 15
d) 11
ans: b.) 16
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
e) a & b
ans: e) a & b . extern functions and variables should
have been declared in the files for external linkage.
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.) 55 and 55. similar to program 6.)
10) consider the following program:
# include
class x
{
public:
int a;
x();
};
x::x()
{
a=10;
cout < < a;
}
class b:public x
{
public:
b();
};
b::b()
{
a=20;
cout < < a;
}
main ()
{
b temp;
}
what will be the output of this prg?
a) 10
b) 20
c) 2010
d) 1020
ans: d.) 1020 first constructor for A prints 10
then constructor for B prints 20.
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.) r and s are true as first two statements
are contradictory. thus either P or S is murederer. as
q is not murderer, he is tellinjg truth that P was
with him. hence S is murderer.
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
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
ans d)
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 ?
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
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 (e)
10) if q <> 0 and k = qr/2 -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 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
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 pX-Mozilla-Status: 0009by 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
e) T
ans: e
Labels:
HCL
PAPER 17
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 and C++,JAVA(only 1 on this) Q.10 each quetion -2 marks -ve
marks: -1/4
Section IV: Analytical Q.20
each quetion - 2 marks. -ve marks: -1/4
it bhu hcl paper 2004
sec 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 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 ans a
4. For 1 MB memory, the number of address lines required,
(a)11 (b)16 (c)20(d) 24
Ans. (c)
5. Semaphore is used for
(a) synchronization(b) dead-lock avoidence(c) box(d) none
Ans. (a)
6. Parity error checking is used for.........?
ans: a odd numbers of errors
7. Address on internet are (Internet IP address is
unique for..)
a) unique for particular domain
b) unique for a particular sub-node list
c) unique countrywide
d) unique in a network area
ans b has to be unique in the sub network
8 one ans is c Volatile modifier
8. OLE is used in
a) inter connection in unix
b) interconnection in WINDOWS
c) interconnection in WINDOWS NT
ans c(check)
9. Convert a given HEX number to OCTAL
one que ans is 177333
10. Macros and function are related in what aspect?
(a)recursion
(b)varying no of arguments
(c)hypochecking
(d)type declaration
ans d or a (check)
11.Preprocessor 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
ans a
14. There is an employer table with key fields as employer number data in every n'th row are needed for a simple ollowing queries will get required results.
(a) select A employee number from employee A , w here 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) & (b)
(d) none of the above
15. Type duplicates of a row in a table customer withnon uniform key field customer number you can see
a) delete from costomer where customer number exists(select distinct customer number from customer having count )
b) delete customer a where customer number in b rowid c) delete customer a where custermor number in( select customer number from customer a, customer b )
d) none of the above
about computer) Q.15 -ve marks: 1/4
Section II: Simple C- language Q. 15 & -ve marks: -1/4
Section III: On pointers & structures and C++,JAVA(only 1 on this) Q.10 each quetion -2 marks -ve
marks: -1/4
Section IV: Analytical Q.20
each quetion - 2 marks. -ve marks: -1/4
it bhu hcl paper 2004
sec 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 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 ans a
4. For 1 MB memory, the number of address lines required,
(a)11 (b)16 (c)20(d) 24
Ans. (c)
5. Semaphore is used for
(a) synchronization(b) dead-lock avoidence(c) box(d) none
Ans. (a)
6. Parity error checking is used for.........?
ans: a odd numbers of errors
7. Address on internet are (Internet IP address is
unique for..)
a) unique for particular domain
b) unique for a particular sub-node list
c) unique countrywide
d) unique in a network area
ans b has to be unique in the sub network
8 one ans is c Volatile modifier
8. OLE is used in
a) inter connection in unix
b) interconnection in WINDOWS
c) interconnection in WINDOWS NT
ans c(check)
9. Convert a given HEX number to OCTAL
one que ans is 177333
10. Macros and function are related in what aspect?
(a)recursion
(b)varying no of arguments
(c)hypochecking
(d)type declaration
ans d or a (check)
11.Preprocessor 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
ans a
14. There is an employer table with key fields as employer number data in every n'th row are needed for a simple ollowing queries will get required results.
(a) select A employee number from employee A , w here 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) & (b)
(d) none of the above
15. Type duplicates of a row in a table customer withnon uniform key field customer number you can see
a) delete from costomer where customer number exists(select distinct customer number from customer having count )
b) delete customer a where customer number in b rowid c) delete customer a where custermor number in( select customer number from customer a, customer b )
d) none of the above
Labels:
HCL
PAPER 16
section 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.?
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?
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.?
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?
Labels:
HCL
HCL Technology Interview 2004 in MKU
HCL Technology Interview 2004 in MKU
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)
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?
(
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)
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?
(
Labels:
HCL
PAPER15
PASSAGE H:In the totalitariturican days,the words have very much
devalued.In the present day,they are becoming domestic that is the words will
be much more devalued. In that days, the words will be very much
effected in political area.but at present,the words came very cheap .We can
say they come free at cost.
Answer questions 32-34 based on passage H
32.Totalitarian society words are devalued.
Ans.False
33. Totalitarians will have to come much about words
Ans.True
34. The art totalitatian society the words are used for the political
speeches.
Ans. False
PASSAGE I:There should be copyright for all arts. The reele has came
that all the arts has come under one copy right society,they were use the
money that come from the arts for the developments . There may be a lot
of money will come from the Tagore works. We have to ask the benifiters
from Tagore work to help for the development of his works.
Answer questions 35-39 based on passage I
35. Tagore works are came under this copy right rule.
Ans. False
36. People are free to go to the public because of the copy right rule.
Ans.Can't say
38. People gives to theater and collect the money for development.
Ans.Can't say
39. We have ask the Tagore resedents to help for the developments of art.
Ans.Can't say
PYSCHOMETERIC TEST
You don't need to fret much about this test. This test consists of 150
questions and is just a pyshcology test which should be answered confidently
anddoesn't require any preparation.One must try being consistent while
answering as the same questions are repeatedly asked in different forms.
Also one must answer all questions.Questions are of yes,no or can't say kind.
1. Will you be interested in social activities.
2. While going upstairs do you move two steps at a time.
3. Can you make friends with people of the same sex or with opposite
sex also
4. Your friends consider you as a leader in your group
5. People think that your'e serious minded.
6. There are times you feel dull without any reason.
7. You host several parties
8. When relatives come to your house do you entertain them.
9. You can work for long hours without tireness.
10. In your company you want to lead the organisation.
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)
2. In OST, terminal emulation is done in
(a) sessions layer
(b) application layer
(c) presentation layer
(d) transport layer
Ans: (b)
3. For a 25MHz processor , what is the time taken by the instruction which needs 3 clock cycles,
(a)120 nano secs
(b)120 micro secs
(c)75 nano secs
(d)75 micro secs
4. For 1 MB memory, the number of address lines required,
(a)11
(b)16
(c)22
(d) 24
Ans. (b)
5. Semaphore is used for
(a) synchronization
(b) dead-lock avoidence
(c) box
(d) none
Ans. (a)
6. Which holds true for the following statement
class c: public A, public B
a) 2 member in class A, B should not have same name
b) 2 member in class A, C should not have same name
c) both
d) none
Ans. (a)
7. Question related to java
8. OLE is used in
a) inter connection in unix
b) interconnection in WINDOWS
c) interconnection in WINDOWS NT
9. Convert a given HEX number to OCTAL
10. Macros and function are related in what aspect?
(a)recursion
(b)varying no of arguments
(c)hypochecking
(d)type declaration
11.Preproconia.. does not do which one of the following
(a) macro
(b) conditional compliclation
(c) in type checking
(d) including load file
Ans. (c)
12. Piggy backing is a technique for
a) Flow control
b) Sequence
c) Acknowledgement
d) retransmition
Ans. (c)
13. In signed magnitude notation what is the minimum value that can be represented with 8 bits
(a) -128
(b) -255
(c) -127
(d) 0
14. There is an employer table with key fields as employer number data
in every n'th row are needed for a simple following queries will get required results.
(a) select A employee number from employee A , where exists from employee B where A employee no. = B
employee having (count(*) mod n)=0
(b) select employee number from employe A, employe B where A employe number=B employ number
group by employee number having(count(*) mod n=0 )
(c) both (a) &a
devalued.In the present day,they are becoming domestic that is the words will
be much more devalued. In that days, the words will be very much
effected in political area.but at present,the words came very cheap .We can
say they come free at cost.
Answer questions 32-34 based on passage H
32.Totalitarian society words are devalued.
Ans.False
33. Totalitarians will have to come much about words
Ans.True
34. The art totalitatian society the words are used for the political
speeches.
Ans. False
PASSAGE I:There should be copyright for all arts. The reele has came
that all the arts has come under one copy right society,they were use the
money that come from the arts for the developments . There may be a lot
of money will come from the Tagore works. We have to ask the benifiters
from Tagore work to help for the development of his works.
Answer questions 35-39 based on passage I
35. Tagore works are came under this copy right rule.
Ans. False
36. People are free to go to the public because of the copy right rule.
Ans.Can't say
38. People gives to theater and collect the money for development.
Ans.Can't say
39. We have ask the Tagore resedents to help for the developments of art.
Ans.Can't say
PYSCHOMETERIC TEST
You don't need to fret much about this test. This test consists of 150
questions and is just a pyshcology test which should be answered confidently
anddoesn't require any preparation.One must try being consistent while
answering as the same questions are repeatedly asked in different forms.
Also one must answer all questions.Questions are of yes,no or can't say kind.
1. Will you be interested in social activities.
2. While going upstairs do you move two steps at a time.
3. Can you make friends with people of the same sex or with opposite
sex also
4. Your friends consider you as a leader in your group
5. People think that your'e serious minded.
6. There are times you feel dull without any reason.
7. You host several parties
8. When relatives come to your house do you entertain them.
9. You can work for long hours without tireness.
10. In your company you want to lead the organisation.
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)
2. In OST, terminal emulation is done in
(a) sessions layer
(b) application layer
(c) presentation layer
(d) transport layer
Ans: (b)
3. For a 25MHz processor , what is the time taken by the instruction which needs 3 clock cycles,
(a)120 nano secs
(b)120 micro secs
(c)75 nano secs
(d)75 micro secs
4. For 1 MB memory, the number of address lines required,
(a)11
(b)16
(c)22
(d) 24
Ans. (b)
5. Semaphore is used for
(a) synchronization
(b) dead-lock avoidence
(c) box
(d) none
Ans. (a)
6. Which holds true for the following statement
class c: public A, public B
a) 2 member in class A, B should not have same name
b) 2 member in class A, C should not have same name
c) both
d) none
Ans. (a)
7. Question related to java
8. OLE is used in
a) inter connection in unix
b) interconnection in WINDOWS
c) interconnection in WINDOWS NT
9. Convert a given HEX number to OCTAL
10. Macros and function are related in what aspect?
(a)recursion
(b)varying no of arguments
(c)hypochecking
(d)type declaration
11.Preproconia.. does not do which one of the following
(a) macro
(b) conditional compliclation
(c) in type checking
(d) including load file
Ans. (c)
12. Piggy backing is a technique for
a) Flow control
b) Sequence
c) Acknowledgement
d) retransmition
Ans. (c)
13. In signed magnitude notation what is the minimum value that can be represented with 8 bits
(a) -128
(b) -255
(c) -127
(d) 0
14. There is an employer table with key fields as employer number data
in every n'th row are needed for a simple following queries will get required results.
(a) select A employee number from employee A , where exists from employee B where A employee no. = B
employee having (count(*) mod n)=0
(b) select employee number from employe A, employe B where A employe number=B employ number
group by employee number having(count(*) mod n=0 )
(c) both (a) &a
Labels:
HCL
VERBAL SECTION
VERBAL SECTION
Directions for questions 1-15:Find the synonyms of the following words
1. Merry
Ans. Gay,Happy
2. Alienate
Ans. Estrange
3. Solicit
Ans. To request
4.Heap
Ans. To pile
5.Cargo
Ans. Freight
6.Momentary
Ans. Transient
]
7. Volume
Ans.Quantity
8.Veer
Ans.Diverge
9.Dispel
Ans.Dissipate
10.Admonish
Ans.Cautious
11.Meager
Ans.Scanty
12.Latitude
Ans.Scope
13.Latent
Ans.Potential
14.Covet
Ans.Crave
15.Discretion
Ans. Prudence
QUANTITATIVE SECTION
1. If two pencils cost 8 cents, then how much do 5 pencils cost?
Ans. 20 cents
2. Some work is done by two people in 24 minutes. One of them can do
this work alone in 40 minutes. How much time does the second person take
to do the same work ?
Ans. 60 minutes
3. A car is filled with four and half gallons of fuel for a round
trip.If the amount of fuel taken while going is 1/4 more than the amount
taken for coming, what is the amount of fuel consumed while coming back?
Ans.2 gallons
4. The lowest temperature in the night in a city A is 1/3 more than 1/2
the highest during the day. Sum of the lowest temperature and the
highest temperature is 100 degrees. Then what is the low temp?
Ans.40 degrees
5. Javagal, who decided to go to weekened trip should not exceed 8
hours driving in a day. The average speed of forward journey is 40
miles/hr.Due to traffic on sundays, the return journey's average speed is 30
m/h. How far he can select a picnic spot?
a) 120 miles
b) between 120 and 140 miles
c) 160 miles
Ans. 120 miles
6. A salesperson by mistake multiplied a number and got the answer as
3, instead of dividing the number by 3.What is the answer he should have
actually got?
Ans. 3
7. A building with height D shadow upto G. What is the height of a
neighbouring building with a shadow of C feet.
Ans. (C*D)/G
8. A person was fined for exceeding the speed limit by 10 mph. Another
person was also fined for exceeding the same speed limit by twice the
same. If the second person was travelling at a speed of 35 mph, find the
speed limit.
Ans. 15 mph
9. A bus started from bustand at 8.00am, and after staying for 30
minutes at a destination, it returned back to the busstand. The destination
is 27 miles from the busstand. The speed of the bus is 18mph. During
the return journey bus travels with 50% faster speed.At what time does it
return to the busstand?
Ans. 11.00am
10. In a mixture, R is 2 parts and S is 1 part. In order to make S to
25% of the mixture, how much of R is to be added?
Ans.One part of R
11. Wind flows 160 miles in 330 min, for travelling 80 miles how much
time does it require?
Ans. 2 hrs 45 mins
12. With a 4/5 full tank a vehicle can travel 12 miles, how far can it
travel with a 1/3 full tank
Ans. 5 miles
13. There are two trees in a lawn. One grows at a rate 3/5 of the other
in 4 years. If the total growth of trees is 8 ft. What is the height of
the smaller tree after 2 years
Ans. 1 1/2 feet
14. Refer to the figure below.A ship started from P and moves at a
speed of I miles per hour and another ship starts from L and moving with H
miles per hour simultaneously.Where do the two ships meet?
PG H I J K L are the various stops in between denoted by || . The
values g, h, i, j, k, l denote the distance between the ports.
Ans. Between I and J, closer to J
15. If A is travelling at 72 km per hour on a highway. B is travelling
at a speed of 25 meters per second on a highway. What is the difference
in their speeds in m/sec.
Ans. 1 m/sec
CRITICAL REASONING SECTION
The critical reasoning section consists of some passages followed by 4
to 7 questions per passage. The questions are such that they require
ability to read fast and comprehend. The questions asked in this section
have three choices TRUE, FALSE, CAN'T SAY. Some examples of questions
are given below. Please note that these passages are not the exact
passages asked. The passages used a good deal of difficult words which have
been removed in this reproduction. Also the passages appearing in the
actual paper are much lengthier.
Directions: Answer the questions given below the passage or statement
as true, false or can't say.
PASSAGE A: My father has no brothers. He has three sisters who has two
childs each.
Answer 1-5 based on the passage A
1.My grandfather has two sons .
Ans. False
2. Three of my aunts have two sons
Ans. Can't say
3. My father is only child to his father
Ans. False
4. I have six cousins from my mother side
Ans. Can't say
5. I have one uncle
Ans. Can't say(uncle can be from the mother's side as well)
PASSAGE B: Ether injected into gallablader to dissolve colestrol based
gallstones. This type one day treatment is enough for gallstones not
for calcium stones. This method is alternative to surgery for millions of
people who are suffering from this disease.
Answer questions 6-9 based on passage B
6.Calcium stones can be cured in oneday
Ans. False
7. Hundreds of people contains calcium stones
Ans. Can't say
8. Surgery is the only treatment to calcium stones
Ans. True
9. Ether will be injected into the gallbleder to cure the cholestrol
based gall stones
Ans. True
PASSAGE C: Hacking is illegal entry into another computer. This happens
mostly because of lack of knowledge of computer networking. With
networks one machine can access to another machine.Hacking go about without
knowing that each network is accredited to use network facility.
Answer questions 10-12 based on passage B
10. Hackers never break the code of the company which they work for
Ans. Can't say
11. Hacking is the only vulnerability of the computers for the usage of
the data
Ans. False
12.Hacking is done mostly due to the lack of computer knowledge
Ans. False
PASSAGE C: Alphine tunnels are closed tunnels.In the past 30 yrs not
even a single accident has been recorded for there is one accident in the
rail road system. Even in case of a fire accident it is possible to
shift the passengers into adjacent wagons and even the live fire can be
detected and extinguished with in the duration of 30 min.
Answer questions 13-16 based on passage C
13. No accident can occur in the closed tunnels
Ans. True
14. Fire is allowed to live for 30 min
Ans. False
16. All the care that travel in the tunnels will be carried by rail
shutters.
Ans.True
PASSAGE D: In the past helicopters were forced to ground or crash
because of the formation of the ice on the rotors and engines. A new
electronic device has been developed which can detect the watercontent in the
atmosphere and warns the pilot if the temperature is below freezing
temperature about the formation of the ice on the rotors and wings.
Answer questions 17-20 based on passage D
17.The electronic device can avoid formation of the ice on the wings
Ans.False
18. There will be the malfunction of rotor & engine because of
formation of ice
Ans.True
19. The helicopters were to be crashed or grounded
Ans.True
20. There is only one device that warn about the formation of ice
Ans.True
PASSAGE E:In the survey conducted in mumbai out of 63 newly married
house wives not a single house wife felt that the husbands should take
equal part in the household work as they felt they loose their power over
their husbands. Inspite of their careers they opt to do the kitchen
work themselves after coming back to home. the wives get half as much
leisure time as the husbands get at the week ends.
Answer questions 21-23 based on passage E
21.Housewives want the husbands to take part equally in the household
Ans.False
22. Wives have half as much leisure time as the husbands have
Ans. False
23. 39% of the men will work equally in the house in cleaning and
washing
Ans. False
PASSAGE F:Copernicus is the intelligent. In the days of copernicus the
transport and technology development was less & it took place weeks to
comunicate a message at that time,wherein we can send it through
satellite with in no time.Even with this fast developments it has become
difficult to understand each other
Answer questions 24-27 based on passage F
24. People were not intelligent during Copernicus days
Ans.False
25. Transport facilities are very much improved in noe a days
Ans.Can't say
26. Even with the fast developments of the techonology we can't live
happily.
Ans. Can't say
27. We can understand the people very much with the development of
communication
Ans. False.
PASSAGE G:Senior managers warned the workers that because of the
intfoductors of japanese industry in the car market. There is the threat to
the workers.They also said that there will be the reduction in the
purchase of the sales of car in public.the interest rates of the car will be
increased with the loss in demand.
Answer questions 28-31 based on passage G
28. Japanese workers are taking over the jobs of indian industry.
Ans.False
29.Managers said car interests will go down after seeing the raise in
interest rates.
Ans.True
30. Japanese investments are ceasing to end in the car industry.
Ans. False
31. People are very interested to buy the cars.
Ans.False
Directions for questions 1-15:Find the synonyms of the following words
1. Merry
Ans. Gay,Happy
2. Alienate
Ans. Estrange
3. Solicit
Ans. To request
4.Heap
Ans. To pile
5.Cargo
Ans. Freight
6.Momentary
Ans. Transient
]
7. Volume
Ans.Quantity
8.Veer
Ans.Diverge
9.Dispel
Ans.Dissipate
10.Admonish
Ans.Cautious
11.Meager
Ans.Scanty
12.Latitude
Ans.Scope
13.Latent
Ans.Potential
14.Covet
Ans.Crave
15.Discretion
Ans. Prudence
QUANTITATIVE SECTION
1. If two pencils cost 8 cents, then how much do 5 pencils cost?
Ans. 20 cents
2. Some work is done by two people in 24 minutes. One of them can do
this work alone in 40 minutes. How much time does the second person take
to do the same work ?
Ans. 60 minutes
3. A car is filled with four and half gallons of fuel for a round
trip.If the amount of fuel taken while going is 1/4 more than the amount
taken for coming, what is the amount of fuel consumed while coming back?
Ans.2 gallons
4. The lowest temperature in the night in a city A is 1/3 more than 1/2
the highest during the day. Sum of the lowest temperature and the
highest temperature is 100 degrees. Then what is the low temp?
Ans.40 degrees
5. Javagal, who decided to go to weekened trip should not exceed 8
hours driving in a day. The average speed of forward journey is 40
miles/hr.Due to traffic on sundays, the return journey's average speed is 30
m/h. How far he can select a picnic spot?
a) 120 miles
b) between 120 and 140 miles
c) 160 miles
Ans. 120 miles
6. A salesperson by mistake multiplied a number and got the answer as
3, instead of dividing the number by 3.What is the answer he should have
actually got?
Ans. 3
7. A building with height D shadow upto G. What is the height of a
neighbouring building with a shadow of C feet.
Ans. (C*D)/G
8. A person was fined for exceeding the speed limit by 10 mph. Another
person was also fined for exceeding the same speed limit by twice the
same. If the second person was travelling at a speed of 35 mph, find the
speed limit.
Ans. 15 mph
9. A bus started from bustand at 8.00am, and after staying for 30
minutes at a destination, it returned back to the busstand. The destination
is 27 miles from the busstand. The speed of the bus is 18mph. During
the return journey bus travels with 50% faster speed.At what time does it
return to the busstand?
Ans. 11.00am
10. In a mixture, R is 2 parts and S is 1 part. In order to make S to
25% of the mixture, how much of R is to be added?
Ans.One part of R
11. Wind flows 160 miles in 330 min, for travelling 80 miles how much
time does it require?
Ans. 2 hrs 45 mins
12. With a 4/5 full tank a vehicle can travel 12 miles, how far can it
travel with a 1/3 full tank
Ans. 5 miles
13. There are two trees in a lawn. One grows at a rate 3/5 of the other
in 4 years. If the total growth of trees is 8 ft. What is the height of
the smaller tree after 2 years
Ans. 1 1/2 feet
14. Refer to the figure below.A ship started from P and moves at a
speed of I miles per hour and another ship starts from L and moving with H
miles per hour simultaneously.Where do the two ships meet?
PG H I J K L are the various stops in between denoted by || . The
values g, h, i, j, k, l denote the distance between the ports.
Ans. Between I and J, closer to J
15. If A is travelling at 72 km per hour on a highway. B is travelling
at a speed of 25 meters per second on a highway. What is the difference
in their speeds in m/sec.
Ans. 1 m/sec
CRITICAL REASONING SECTION
The critical reasoning section consists of some passages followed by 4
to 7 questions per passage. The questions are such that they require
ability to read fast and comprehend. The questions asked in this section
have three choices TRUE, FALSE, CAN'T SAY. Some examples of questions
are given below. Please note that these passages are not the exact
passages asked. The passages used a good deal of difficult words which have
been removed in this reproduction. Also the passages appearing in the
actual paper are much lengthier.
Directions: Answer the questions given below the passage or statement
as true, false or can't say.
PASSAGE A: My father has no brothers. He has three sisters who has two
childs each.
Answer 1-5 based on the passage A
1.My grandfather has two sons .
Ans. False
2. Three of my aunts have two sons
Ans. Can't say
3. My father is only child to his father
Ans. False
4. I have six cousins from my mother side
Ans. Can't say
5. I have one uncle
Ans. Can't say(uncle can be from the mother's side as well)
PASSAGE B: Ether injected into gallablader to dissolve colestrol based
gallstones. This type one day treatment is enough for gallstones not
for calcium stones. This method is alternative to surgery for millions of
people who are suffering from this disease.
Answer questions 6-9 based on passage B
6.Calcium stones can be cured in oneday
Ans. False
7. Hundreds of people contains calcium stones
Ans. Can't say
8. Surgery is the only treatment to calcium stones
Ans. True
9. Ether will be injected into the gallbleder to cure the cholestrol
based gall stones
Ans. True
PASSAGE C: Hacking is illegal entry into another computer. This happens
mostly because of lack of knowledge of computer networking. With
networks one machine can access to another machine.Hacking go about without
knowing that each network is accredited to use network facility.
Answer questions 10-12 based on passage B
10. Hackers never break the code of the company which they work for
Ans. Can't say
11. Hacking is the only vulnerability of the computers for the usage of
the data
Ans. False
12.Hacking is done mostly due to the lack of computer knowledge
Ans. False
PASSAGE C: Alphine tunnels are closed tunnels.In the past 30 yrs not
even a single accident has been recorded for there is one accident in the
rail road system. Even in case of a fire accident it is possible to
shift the passengers into adjacent wagons and even the live fire can be
detected and extinguished with in the duration of 30 min.
Answer questions 13-16 based on passage C
13. No accident can occur in the closed tunnels
Ans. True
14. Fire is allowed to live for 30 min
Ans. False
16. All the care that travel in the tunnels will be carried by rail
shutters.
Ans.True
PASSAGE D: In the past helicopters were forced to ground or crash
because of the formation of the ice on the rotors and engines. A new
electronic device has been developed which can detect the watercontent in the
atmosphere and warns the pilot if the temperature is below freezing
temperature about the formation of the ice on the rotors and wings.
Answer questions 17-20 based on passage D
17.The electronic device can avoid formation of the ice on the wings
Ans.False
18. There will be the malfunction of rotor & engine because of
formation of ice
Ans.True
19. The helicopters were to be crashed or grounded
Ans.True
20. There is only one device that warn about the formation of ice
Ans.True
PASSAGE E:In the survey conducted in mumbai out of 63 newly married
house wives not a single house wife felt that the husbands should take
equal part in the household work as they felt they loose their power over
their husbands. Inspite of their careers they opt to do the kitchen
work themselves after coming back to home. the wives get half as much
leisure time as the husbands get at the week ends.
Answer questions 21-23 based on passage E
21.Housewives want the husbands to take part equally in the household
Ans.False
22. Wives have half as much leisure time as the husbands have
Ans. False
23. 39% of the men will work equally in the house in cleaning and
washing
Ans. False
PASSAGE F:Copernicus is the intelligent. In the days of copernicus the
transport and technology development was less & it took place weeks to
comunicate a message at that time,wherein we can send it through
satellite with in no time.Even with this fast developments it has become
difficult to understand each other
Answer questions 24-27 based on passage F
24. People were not intelligent during Copernicus days
Ans.False
25. Transport facilities are very much improved in noe a days
Ans.Can't say
26. Even with the fast developments of the techonology we can't live
happily.
Ans. Can't say
27. We can understand the people very much with the development of
communication
Ans. False.
PASSAGE G:Senior managers warned the workers that because of the
intfoductors of japanese industry in the car market. There is the threat to
the workers.They also said that there will be the reduction in the
purchase of the sales of car in public.the interest rates of the car will be
increased with the loss in demand.
Answer questions 28-31 based on passage G
28. Japanese workers are taking over the jobs of indian industry.
Ans.False
29.Managers said car interests will go down after seeing the raise in
interest rates.
Ans.True
30. Japanese investments are ceasing to end in the car industry.
Ans. False
31. People are very interested to buy the cars.
Ans.False
Labels:
HCL
PAPER 14
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
ans a
4. For 1 MB memory, the number of address lines
required,
(a)11
(b)16
(c)20
(d) 24
Ans. (c)
5. Semaphore is used for
(a) synchronization
(b) dead-lock avoidence
(c) box
(d) none
Ans. (a)
6. Parity error checking is used for.........?
ans: a odd numbers of errors
7. Address on internet are (Internet IP address is
unique for..)
a) unique for particular domain
b) unique for a particular sub-node list
c) unique countrywide
d) unique in a network area
ans b has to be unique in the sub network
8 one ans is c Volatile modifier
8. OLE is used in
a) inter connection in unix
b) interconnection in WINDOWS
c) interconnection in WINDOWS NT
ans c(check)
9. Convert a given HEX number to OCTAL
one que ans is 177333
10. Macros and function are related in what aspect?
(a)recursion
(b)varying no of arguments
(c)hypochecking
(d)type declaration
ans d or a (check)
11.Preprocessor 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
ans a
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) & (b)
(d) none of the above
15. Type duplicates of a row in a table customer with
non uniform key field customer number you can see
a) delete from costomer where customer number exists(
select distinct customer number from customer having
count )
b) delete customer a where customer number in b rowid
c) delete customer a where custermor number in( select
customer number from customer a, customer b )
d) none of the above
sec 2
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
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\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
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 = b8 ? b <<3 : b4 ? b1:b;
a) 7 b) 28 c)3 d) 14 e) None
ans: c
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
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
ans d
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");
}
}
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: e
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
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;
struct Node left;
struct Node right;
}
(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
ans a
4. For 1 MB memory, the number of address lines
required,
(a)11
(b)16
(c)20
(d) 24
Ans. (c)
5. Semaphore is used for
(a) synchronization
(b) dead-lock avoidence
(c) box
(d) none
Ans. (a)
6. Parity error checking is used for.........?
ans: a odd numbers of errors
7. Address on internet are (Internet IP address is
unique for..)
a) unique for particular domain
b) unique for a particular sub-node list
c) unique countrywide
d) unique in a network area
ans b has to be unique in the sub network
8 one ans is c Volatile modifier
8. OLE is used in
a) inter connection in unix
b) interconnection in WINDOWS
c) interconnection in WINDOWS NT
ans c(check)
9. Convert a given HEX number to OCTAL
one que ans is 177333
10. Macros and function are related in what aspect?
(a)recursion
(b)varying no of arguments
(c)hypochecking
(d)type declaration
ans d or a (check)
11.Preprocessor 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
ans a
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) & (b)
(d) none of the above
15. Type duplicates of a row in a table customer with
non uniform key field customer number you can see
a) delete from costomer where customer number exists(
select distinct customer number from customer having
count )
b) delete customer a where customer number in b rowid
c) delete customer a where custermor number in( select
customer number from customer a, customer b )
d) none of the above
sec 2
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
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\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
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 = b8 ? b <<3 : b4 ? b1:b;
a) 7 b) 28 c)3 d) 14 e) None
ans: c
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
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
ans d
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");
}
}
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: e
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
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;
struct Node left;
struct Node right;
}
Labels:
HCL
PAPER13
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...
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);
}
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
ans: b.)
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)
{
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
ans: c.) 45 and 45
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
ans: b.) 16
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
e) a & b
ans: e) a & b . extern functions and variables should
have been declared in the files for external linkage.
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.) 55 and 55. similar to program 6.)
10) consider the following program:
# include < stream.h
class x
{
public:
int a;
x();
};
x::x()
{
a=10;
cout < < a;
}
class b:public x
{
public:
b();
};
b::b()
{
a=20;
cout < < a;
}
main ()
{
b temp;
}
what will be the output of this prg?
a) 10
b) 20
c) 2010
d) 1020
ans: d.) 1020 first constructor for A prints 10
then constructor for B prints 20
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...
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);
}
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
ans: b.)
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)
{
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
ans: c.) 45 and 45
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
ans: b.) 16
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
e) a & b
ans: e) a & b . extern functions and variables should
have been declared in the files for external linkage.
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.) 55 and 55. similar to program 6.)
10) consider the following program:
# include < stream.h
class x
{
public:
int a;
x();
};
x::x()
{
a=10;
cout < < a;
}
class b:public x
{
public:
b();
};
b::b()
{
a=20;
cout < < a;
}
main ()
{
b temp;
}
what will be the output of this prg?
a) 10
b) 20
c) 2010
d) 1020
ans: d.) 1020 first constructor for A prints 10
then constructor for B prints 20
Labels:
HCL
PAPER 12
HCL SYSTEM SOFTWARE PAPER 2k2: 60 qs; 90 min. (4sections)
NOTE : Please check answers once again.
only this much i got , which is available here iniit-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,
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.No given in HEX ---- write it in OCTAL
9. one question on semaphore
10.macros and function are related in what aspect?
a)recursion b)varying no of arguments
c)hypochecking d)type declaration
11)one question on passing by refrence in 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=5
x=j*k;
printf("%d", x);
3. fn f(x)
{ if(x<=0)
return;
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);
5. int i =10
main()
{
int i =20,n;
for(n=0;n<=i;)
{
int i=10
i++;
}
printf("%d", i); ans i=20
6. int x=5;
y= x&y
( MULTIPLE CHOICE QS)
ans : c
7)simple prog asked for out put based on simple for loop
8. f=(xy)?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: a 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=?
(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
NOTE : Please check answers once again.
only this much i got , which is available here iniit-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,
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.No given in HEX ---- write it in OCTAL
9. one question on semaphore
10.macros and function are related in what aspect?
a)recursion b)varying no of arguments
c)hypochecking d)type declaration
11)one question on passing by refrence in 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=5
x=j*k;
printf("%d", x);
3. fn f(x)
{ if(x<=0)
return;
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);
5. int i =10
main()
{
int i =20,n;
for(n=0;n<=i;)
{
int i=10
i++;
}
printf("%d", i); ans i=20
6. int x=5;
y= x&y
( MULTIPLE CHOICE QS)
ans : c
7)simple prog asked for out put based on simple for loop
8. f=(xy)?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: a 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=?
(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
Labels:
HCL
SECTION III - ANALYSIS PROGRAM SEGMENTS
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
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);
}
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
ans b
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)
{
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
ans c
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
ans b
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
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 < stream.h
class x {
public:
int a;
x();
};
x::x() { a=10; cout < < a; }
class b:public x {
public:
b();
};
b::b() { a=20; cout < < a; }
main ()
{ b temp;
}
what will be the output of this prg?
a) 10
b) 20
c) 2010
d) 1020
answer: b
---------------------------------------
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
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);
}
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
ans b
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)
{
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
ans c
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
ans b
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
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 < stream.h
class x {
public:
int a;
x();
};
x::x() { a=10; cout < < a; }
class b:public x {
public:
b();
};
b::b() { a=20; cout < < a; }
main ()
{ b temp;
}
what will be the output of this prg?
a) 10
b) 20
c) 2010
d) 1020
answer: b
---------------------------------------
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
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);
}
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
ans b
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)
{
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
ans c
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
ans b
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
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 < stream.h
class x {
public:
int a;
x();
};
x::x() { a=10; cout < < a; }
class b:public x {
public:
b();
};
b::b() { a=20; cout < < a; }
main ()
{ b temp;
}
what will be the output of this prg?
a) 10
b) 20
c) 2010
d) 1020
answer: b
---------------------------------------
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
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);
}
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
ans b
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)
{
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
ans c
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
ans b
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
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 < stream.h
class x {
public:
int a;
x();
};
x::x() { a=10; cout < < a; }
class b:public x {
public:
b();
};
b::b() { a=20; cout < < a; }
main ()
{ b temp;
}
what will be the output of this prg?
a) 10
b) 20
c) 2010
d) 1020
answer: b
Labels:
HCL
HCL TECHNOLOGIES INDIA PRIVATE LIMITED
HCL TECHNOLOGIES INDIA PRIVATE LIMITED
HCL System Software Sample Test Paper
NOTE : 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
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
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
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
a
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;
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
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
HCL System Software Sample Test Paper
NOTE : 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
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
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
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
a
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;
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
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
Labels:
HCL
PAPER 11
SECTION A
INSTRUCTIONS: FOLLOWING EACH QUESTION HAVE FIVE POSSIBLE ANSWERS LABELLED A), B), C), D), E). TICK THE BEST CHOICE
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:
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
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
INSTRUCTIONS : EACH PROBLEM CONSISTS OF A QUESTION AND
TWO STATEMENTS NUMBERED (1) AND (2), IN
WHICH CERTAIN DATA ARE GIVEN, THESE ARE
FOLLOWED BY FIVE OPTIONS, PLEASE TICK:
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
(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 LABELED
A), 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
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?
INSTRUCTIONS: FOLLOWING EACH QUESTION HAVE FIVE POSSIBLE ANSWERS LABELLED A), B), C), D), E). TICK THE BEST CHOICE
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:
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
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
INSTRUCTIONS : EACH PROBLEM CONSISTS OF A QUESTION AND
TWO STATEMENTS NUMBERED (1) AND (2), IN
WHICH CERTAIN DATA ARE GIVEN, THESE ARE
FOLLOWED BY FIVE OPTIONS, PLEASE TICK:
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
(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 LABELED
A), 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
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?
Labels:
HCL
Subscribe to:
Posts (Atom)