Skip to main content

HCL TECHNOLOGIES PAPER - 16 OCT 2005 - CHENNAI

1. How many segment registers are there in the 8086 processor?
a) 4 b) 6 c) 8 d) none
Ans: a
2. What is the addressing mode of this instruction MOV AL, [BX];
a) direct addressing mode
b) register indirect addressing mode
ANS: b I am not sure of it.
3. What is the type of file system used in the CD ROM?
a) VFAT B)
4) About CPU I think but answer is DMA.
5) If we double the clock speed, then?
a) It increases the speed of the processor b) It increases the speed of the system bus c) both of
the above D) None
6) Data recovery is done in which layer?
a) physical b) datalink c) network d) transport
7) What is thrashing?
ANS: swapping in and out the pages frequently from memory.
8) By using 3 nodes how many trees can be formed?
ANS:5
9) They give one tree, and ask the post order traversal for that tree?
ANS:C
10) Page cannibalation is?
ANS:C
Aptitude section:
1) They give one scenario and ask questions on that. that is easy. Those are 5 questions.
2) They ask 2 questions in English, I didn't answer those ones. They are - Find the odd one?
3) They give 2 questions on missing digits. They r matrix type, I didn't remember the questions,
But I know answers.
for first one 8. For second one 28 is the answer.
4)Two persons start walking from the same place in opposite directions. After walking for 4
mts, both of them take the left and walk for another 3 mts. Then
what is the distance b/w them?
Ans:10 mt.
5)One person start from his home towards college which is 53 km far away. Another person
started from college towards home after an hour. the speed of first one is 4kmph and the second
one is 3 kmph. Then, what is the distance from home to their meeting point?
AND:21 km.
6)3 machines can complete the work in 4,5, and 6 hours respectively. due to power failures they
did the work alternatively. Then what is time taken to complete the work?
ANS:9/20
7)Two persons take the pair of dies and throws them. If 12 appers first one wins, If two
consecutives 7 s appear then second one wins. What is the probability to
win first one in the game?
a)6/15 b)3/13 c)2/13
8)Two questions on figures .They give five figures ,and change them sequentially, u have to
find 6 th one. They give 4 choices.
9)one more Q. on number sequence.
C Programming:
1) what is name of the operator in passing variable no. of arguments to function?
ANS: Ellipsis
2) main()
{
printf("%d%d"size of ("Hcl
technologies"),strlen("HCL Technologies"));
}
a)16 16 b)16 17 c)17 17 d)17 16
3) main()
{ char arr[]={ '
a','b','\n',....}
some more instructions;
}
ANS:77
4) main()
{ int arr[]={0,1,2,3,4)
int *a={arr, arr+1,arr+2,...}
int **p=a;
p++;
some instructions:
}
ANS:1 1 1
5)They give one Q on 3-d array?
ANS:4
6)one Question on ++ and && operators.
ANS:1,0,0
7)one question on logical operators
Ans:1 00 1
8)one question on the return value of scanf function ?
ANS:1
ANALYSIS OF PROGRAMS:
1) For one Q. they make the constructor in the base class as virtual and give the big program.
So, for that one ANSWER is NONE, (d).
2) In one Q. They give the prototype of the function that structure as argument .But, Structure is
defined after that and they give the program.
ANS: ERROR
3) for one Q. They give the answers as 4444 ,7777, 9999.But, the answer is 6666. So, Answer is
None (d).

Comments

Popular posts from this blog

CIVIL SERVICES' (I.A.S.) EXAMINATION

The Union Public Service Commission (U.P.S.C.)  conducts Civil Services' Examination once a year in two stages. The Preliminary Examination (Objective Type) for selection of candidates for the Main Examination is held in the month of May. The Civil Services Main Examination  is held in the months of October/November. Blank application forms and other particulars are published in the Employment News, generally in the month of December. The last date for the submission of applications to the Secretary, Union Public Service Commission, Dholpur House, Shahjahan Road, NewDelhi-11001 1 is usually the last week of January of the year of examination. The Combined Civil Services Examination is conducted for Recruitment to the following Services/Posts: 1. Indian Administrative Service. 2. Indian Foreign Service. 3. Indian Police Service. 4. Indian P & T Accounts & Finance Service, Group 'A'. 5. Indian Audit and Accounts Service, Group 'A'. 6. Indian Customs and Centr

AGRICULTURAL SCIENTIST RECRUITMENT BOARD

Agricultural Research Service National   Eligibility  Test/ Senior Research Fellowship Examination  The Agricultural Scientists Recruitment Board (ASRB)  holds a Competitive Examination for recruiting Scientists of the ARS in the pay scale of Rs. 8,000-13,500 in the ICAR Institutes, combined with National Eligibility Test (NET) for recruitment of Lecturers and Assistant Professors by the State Agricultural Universities (SAUS) and for award of ICAR Senior Research Fellowships. The selected candidates for Agricultural Research Service must serve in the institutes to which they are posted until they find appointment for higher positions through selection at other institutes. (i) Candidates successful in ARS are appointed as Scientists in the Indian Council of Agricultural Research in the pay scale of Rs. 8,000-13,500. (ii) Candidates clearing the National Eligibility Test are recommended to various State Agricultural Universities who will consider them for appointment as Lecturers or A

Predict the output or error(s) for the following:

1 . void main(){ int const * p=5; printf("%d",++(*p)); } Answer: Compiler error: Cannot modify a constant value. Explanation: p is a pointer to a "constant integer". But we tried tochange the value of the "constant integer". 2. main() {  char s[ ]="man"; int i;  for(i=0;s[ i ];i++) printf("\n%c%c%c%c",s[i],*(s+i),*(i+s),i[s]); } Answer: mmmm aaaa nnnn Explanation: s[i], *(i+s), *(s+i), i[s] are all different ways of expressing the same idea. Generally array name is the base address for that array. Here s is the base address. i is the index number/displacement from the base address. So, indirecting it with * is same as s[i]. i[s] may be surprising. But in the case of C it is same as s[i]. 3 . main(){  float me = 1.1;  double you = 1.1;  if(me==you) printf("I love U"); else printf("I hate U"); } Answer: I hate U Explanation : For floating point numbers (float, double, long double)