Вы находитесь на странице: 1из 7

<jsatyan@yahoo.

com>
To: <cs
Subject: [cse2001] HCL QP
Date: Saturday, August 05, 2000 11:52 PM
HCL Systems Software Division Qn. Paper 1999-2000.
4 sections. -ve marking.
a) Computer awareness (15 mks.) 1/4
b) C programs (20 mks.) 1
c) Program Analysis (10 mks.) 1
d) Analytical Problems (20 mks.) 1/4
***Qns. and choices are not in the given order.
Section 1 : COMPUTER AWARENESS ( 15 questions)
1) Piggybacking is a concept associated with
a) Flow control b)process control
c) Acknowledgement d) None of the above ans : c
2) The time required for a 25 MHz processor to
complete 3 clock cycles
is
a) 120 ms b) 120 ns c) 40 ms d) 40 ns ans. : b
3) Semaphores is used to
a) to avoid deadlocks b) to acquire shared resources
c) both a & b d) None ans. : c
4) To address 1 MB, the no. of address lines required
is
a) 16 b) 20 c) 24 d) 30 ans. : b
5) The hex value FEDB when converted to octal gives
a) 177333 b) 770333 c) 751233 d) 378453 ans. :
a
6) Which of the following is not in JAVA but in ANSI C
a) Volatile modifier b) forward reference of variable
c) variable length of arguments list d) None of the
above
7) IP address should be
a) unique for domain node
b) unique for domain subnetworks nodes
c) unique for the individual terminal
d) none of the above ans. : c (should be)
8) Virtual Address is converted in Physical address by
a) Process b) Operating System
c) MMU c) All the above ans. : c)Memory
Management Unit
9) OLE is associated with
a) communication between process in UNIX
b) communication between user and NT
c) communication between process in NT
d) communication between hosts in INTERNET ans. : c
10) In 8-bit representation using sign bit, the
minimum number is
a) -128 b) -127 c) -255 d) 0 ans. : a
11)Bit Parity can detect
a) Odd no. of errors b)Even no. of errors
c) Only one error d) None ans. : a
12)SQL Qn.

13)SQL Qn.

Section 2 : C PROGRAMS ( 20 questions)

1)which is a ternary operator?


a)? B)+ c)sizeof d)^ e)~ ans.: a
2)which is logical operator?
1)&& 2)|| 3)! 4)^
a)1 only B)2 only c)1,2,4 only e)1,2,3 ans : e
3) which is not bitwise operator?
a)^ B)~ c)! d)|| e)& ans. : d
4)
f(int x)
{
if(x<=0) return 1;
return f(x-1) + x;
}
void main()
{
printf("%d",f(5));
}
a) 16 b) 15 c) 5 d) None ans. : a
5)short *p[4]
memory allocated for the above
a)none B)2 c)4 d)16 e)6 ans.:
6)which

7)which is true?
a) main(char argc, char *argv[])
b) main(int argc, int *argv[])
c) main(int *argc, char *argv[])
d) main(int argc, char *argv[])
e) main(int argc, char argv[])
ans. : d
8) sizeof the following segment is
union x
{
int j;
char y[8];
int a[4];
char k;
} xy;
a) 29 b)19 c)8 d)20 ans. : c

Section 3 : PROGRAM ANALYSIS ( 10 questions)


1)Qn. on doubly linked list. Ans. : d
2)
#define NULL 0
char * f(str,c)
register char * str,c;
{
while(*str)
if(*str++ == c) return str;
return NULL;
}
the above function will always work
a)always b) won't work for c = NULL
c) won't work if c is not found
d) won't work if c is the first character ans. : a
3)main()
{printf( %d ,f(7));
}
f(x)
{if (x<=4)
return(x);
return f(--x);
}
a) 5 b) 4 c) 6 d) 8
4) in a system where the size of a pointer is 4 bytes.
#define NULL 0
void main()
{
int i=0,*p = NULL;
i++;p++;
printf("%d %d",i,p);
}
a) 1 4 b) 4 1 c) 4 4 d)1 1 ans. : a
5)which segment is correct for string copy?
a)
b)
c)
d)
10)
class a{
public :
int x;
a(){x = 10; cout <<x;}
};
class b : public a
{
public :
b(){x = 20; cout<<x;}
};
void main()
{
b temp;
}
a) 10 b) 20 c) 2010 d)1020 ans. : d

Section 4 : Analytical Problems ( 20 questions)


1) if A through E represents no. from 1 to 9 then what
is the value of
E, if
ABCDE *
4
= EDCBA
ans. : 8
2) Convert F78 (hex) to radix 7 ans:14531
14355
3) If a=2 b=4 and c=5 then
(a+b)/c - c/(a+b) is ans. : 11/30
4)
4 8 8
10 (10 + 10 )
------------------ is
6
10
6
ans. : 2 * 10
5) Women driver meet car accident less frequently than
man driver.
What decision you could arrive at from the above
statement.
a) Men driver are less in number than women drivers.
b) Women drivers are more cautious than men drivers
are.
c) There is very less number of women drivers.
d) None
ans. : b
6)There are three persons Yogesh(Y),Deepak(D) and
Mohan(M) and divides
certain
amount. Mohan has twice as much as Deepak and Yogesh
as Rs.3 more than
half as much as Deepak. Which expression is valid :
a) Y < M < D b) Y < D < M
c) Y > D > M d) Data insufficient
ans. : d
7)There are four persons P,Q,R,S and related to a
murder they gave the
following statements among which only one is false,
Find the
Murderer.
P : I went to cinema with S while the murder had
occurred.
Q : I was playing tennis with P while the murder had
occurred.
R : I did not commit the murder.
S : R did not commit the murderer.
ans. : R
8)If A could do a work in 5 hours and A and B can do
the work in 2
hours
In how many hours does B alone could do the work.
ans. : 3 hr 20 min
9) If k=qr/2-s then the value of r if q is not equal
to zero is
ans. : 2(k + s) / q
10)if HCL machine can take 10 copies in 4 seconds. How
many copies in 6
minutes?ans:900
A causes B or C but not both.
F occurs only if B occurs
D occurs if B or C occurs
J occurs only if E or F occurs
E occurs only if C occurs
D causes G, H or both
H occurs if E occurs
G occurs if F occurs
11)If A occurs which will occur? 1.F and G 2.E and
H 3.D
a.1 only b.2 only c.3 only d.1,2 &3 e.1&2 or
2&3 but not both
ANS: e
12)If B occurs which occurs?
a. D b. G&H c. J d. D&G e. F&G
ANS:
(a)
13)If J occurs which occurs?
a. E b. either B or C c. both E & F d. B
e. both B &
C ANS: b
14)If result of cause is not specified, which is to
occur?
1.D
2.A
3.F
a. 1 b. 2 c. 1&2 d. 2&3 e.
1,2,3 ANS: c
15)If E occurs, which can t occur?
a. A b. F c. D d. C e. J ANS: b

There are 6 knights P,Q,R,S,T & U. They are split into


2 parties. One
travels to the northern side and other to the southern
side. Both the
parties meet after 1 month. During this meet they can
rearrange
themselves to form two new parties again and change
directions if necessary. P
and R are enemies and they should never be together.
P travels in the
same party as S. Q can never travel by south. U can
never change between
parties.

16) One party comprises of P, U and two more. These


two members are
a. Q, S b. Q, T c. R, S d. R, and T e. S, T ANS: e
17) The three members who cannot travel together are
a. P, S, U b.P,S,T in northern side c.P,S,T
in southern side
d.P,S,U to the south e. Q,R,T to the north
ANS: e
18) If U is in one party travelling north , then the
other members are
a. P,S b. P,T c. Q,R d. Q,T e.
R,T
ANS: a
19) If each party has three knights each after they
meet once

20)
__________________________________________________
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/
--------------------------------------------------------------------<e|-
Free, Unlimited Calls Anywhere!
Visit Firetalk.com - click below.
http://click.egroups.com/1/5479/2/_/_/_/965499828/
--------------------------------------------------------------------|e>-
To unsubscribe from this group, send an email to:
cse2001-unsubscribe@egroups.com

Вам также может понравиться