Showing posts with label HCL Papers. Show all posts
Showing posts with label HCL Papers. Show all posts

Sunday, 2 October 2011

Wednesday, 28 September 2011

HCL Placement Paper Technical paper Pune 2010

1. The C language terminator is

(a) semicolon
(b) colon
(c) period
(d) exclamation mark

2. What is false about the following — A compound statement is

(a) A set of simple statements
(b) Demarcated on either side by curly brackets

(c) Can be used in place of simple statement
(d) A C function is not a compound statement.

3. What is true about the following C Functions

(a) Need not return any value
(b) Should always return an integer
(c) Should always return a float
(d) Should always return more than one value


4. Main must be written as

(a) The first function in the program
(b) Second function in the program
(c) Last function in the program
(d) Any where in the program



5. In signed magnitude notation what is the minimum value that can be represented with 8 bits




(a) -128

(b) -255

(c) -127

(d) 0


6.

struct Foo


{

char *pName;

char *pAddress;

};
main()

{

struct Foo *obj = malloc(sizeof(struct Foo));

clrscr();

obj->pName = malloc(100);


obj->pAddress = malloc(100);
strcpy(obj->pName,”Your Name”);

strcpy(obj->pAddress, “Your Address”);
free(obj);

printf(“%s”, obj->pName);


printf(“%s”, obj->pAddress);

}
a. Your Name, Your Address

b. Your Address, Your Address

c. Your Name Your Name

d. None of the above

Ans: d) printd Nothing, as after free(obj), no memory is there containing


obj->pName & pbj->pAddress


7.

main()

{

char *a = “Hello “;


char *b = “World”;

clrscr();

printf(“%s”, strcat(a,b));

}
a. Hello

b. Hello World

c. HelloWorld


d. None of the above

Ans: b)


8.
main()

{

char *a = “Hello “;


char *b = “World”;

clrscr();

printf(“%s”, strcpy(a,b));

}
a. “Hello”

b. “Hello World”

c. “HelloWorld”


d. None of the above
Ans: d) World, copies World on a, overwrites Hello in a.

9.

void func1(int (*a)[10])

{

printf(“Ok it works”);

}

void func2(int a[][10])

{

printf(“Will this work?”);

}
main()

{

int a[10][10];

func1(a);


func2(a);

}
a. Ok it works

b. Will this work?

c. Ok it worksWill this work?

d. None of the above
Ans: c)

10.


main()

{

printf(“%d, %d”, sizeof(‘c’), sizeof(100));

}
a. 2, 2

b. 2, 100

c. 4, 100


d. 4, 4
Ans: a) 2, 2


11.

main()

{

int i = 100;

clrscr();


printf(“%d”, sizeof(sizeof(i)));

}
a. 2

b. 100

c. 4

d. none of the above

Ans: a) 2



12.
main()

{

int c = 5;

printf(“%d”, main||c);

}
a. 1


b. 5

c. 0

d. none of the above
Ans: a) 1, if we use main|c then error, illegal use of pointer

13.
main()

{

char c;

int i = 456;


clrscr();

c = i;

printf(“%d”, c);

}
a. 456

b. -456

c. random number

d. none of the above

Ans: d) -56


14.

void main ()

{

int x = 10;

printf (“x = %d, y = %d”, x,–x++);


}
a. 10, 10

b. 10, 9

c. 10, 11

d. none of the above

Ans: d) Lvalue required


15.


main()

{

int i =10, j = 20;

clrscr();

printf(“%d, %d, “, j– , –i);

printf(“%d, %d “, j++ , ++i);


}
a. 20, 10, 20, 10

b. 20, 9, 20, 10

c. 20, 9, 19, 10

d. 19, 9, 20, 10
Ans: c)

Hcl Placement Paper, Delhi 2009

Directions (1-5): Study the following information carefully and answer the questions given below:

A, B, C, D, E, F and G are sitting around a circle facing at the centre. D is sitting between A and G. F is second to the right of G and E is second to the right of F. C is not an immediate neighbor of G.
1. Who is to the immediate left of E?

1) A

2) C

3) F

4) Data inadequate

5) None of these

2. Which of the following is not correct?


1) G is second to the right of A

2) B is second to the right of D

3) F is second to the left of E

4) E is second to the left of D

5) All are correct

3. In which of the following groups the third members is sitting between the first and the second members?

1) EAD

2) DGB


3) GFB

4) DAG

5) None of these

4. Who is sitting between C and A?

1) E

2) D

3) F

4) G


5) None of these

5. Who is to the immediate right of G?

1) F

2) D

3) B

4) Data inadequate

5) None of these
6. A student scores 55% marks in 8 papers of 100 marks each. He scores 15% of his total marks in English. How much does he score in English?


1) 55

2) 66

3) 77

4) 44

5) None of these

7. What should come in place of the question-mark (?) in the following number series?

5690, 5121, 4552, 3983, 3414, 2845, ?

1) 2276


2) 2516

3) 2746

4) 2356

5) None of these

8. Car ‘X’ covers a distance of 385 kms in 7 hours and car ‘Y’ covers a distance of 715 kms in 13 hrs. What is the difference in the speed of the two cars?


1) 2kms/hr

2) 1km/hr

3) 3kms/hr

4) 5kms/hr

5) None of these

9. The ratio of the present ages of Sunita and vinita is 4:5. Six years hence the ratio of their ages will be 14:17. What will be the ratio of their ages 12 years hence?

1) 15:19

2) 13:15

3) 16:19


4) 17:19

5) None of these

10. Find out the greatest possible number for which 30% of that number is less than 100?

1) 331

2) 335

3) 325

4) 333

5) 328

Directions (Q. 11-25): Read the following passage carefully and answer the questions given below it. Certain words are given in bold to help you to locate them while answering some of the questions.
The health of nations can be measured by the food security and well-being of their people. An innovative programme in India shows how botanic gardens can contribute to that well-being by educating people about the uses of local biodiversity, particularly for healthcare and income-generation.
In 1994, the Tropical Botanic Garden and Research Institute in Kerala launched two outreach programmes – “Herbs for All and Health for All” and “Plants for All and Wealth for All”. The programmes teach people how to take care of their food, nutrition, hygiene and health by making the best use of the plant resources around them.
The Research Institute selected four rural villages as partners. A team of scientists, including botanists, experts in Ayurveda (a holistic system of healing, which evolved among the sages of India some 3000-5000 years ago), and sociologists visited the villages and met with local leaders to explain the programmes. The villages selected representatives to attend a two-day workshop in Kerala devoted to agro biodiversity and conservation.
The workshop particularly highlighted the role of home gardens as a tool for the community management of genetic resources. The students visited a model home garden at the institute, composed of many different medicinal and ornamental plants and vegetables. They were encouraged to take samples from the home garden with them when they returned to their villages. The next step was intensive training on primary health care and the conservation and sustainable use of plant diversity. The trainees, a core group of 10 people selected from the workshop participants by each village, learned how to treat common ailments with plants conserved at the Botanic Garden.
At the end of the training, they were furnished with seedlings of medicinal plants and lesser known fruits and vegetables, as well as practical information on cultivating them back home. Returning to their villages, the trainees each adopted 20 local families to educate in the preparation and use of plant-based herbal medicines, stressing the need for self-reliance in the primary health care of family members. The programme has since been extended to other villages and the Botanic Garden and Research Institute has widened its reach even further by producing and distributing brochures, fliers and books in the local language on primary health care, commonly cultivated medicinal and aromatic plants and wild edible fruits and vegetables.
The Kerala programme has been recognized by the World Bank and international organizations as an inspiration for projects in developing countries.

11. A nation’s health cannot be considered sound when it is unable to provide

1) its people with proper employment.

2) its people with proper infrastructure for career growth.

3) its populace with the basic necessities of life.

4) its people with a secure environment and gardens.

5) its subject with proper education.

12. Botanic gardens play a virtual role in making people lead a good life by

1) focussing on the positive aspects of our environment.


2) promoting agri-business on a large scale.

3) making them aware about sound health and happy life.

4) adopting various anti-pollution measures.

5) producing several developmental models.

13. What is the objective of the programmes “Herbs for All and Health for All” and “Plants for All and Wealth for All”?

1) to raise the income level of people

2) to focus on the attainment of universal literacy

3) to make people aware about their surroundings


4) to make people aware of their rights

5) None of these

14. What is the role of home garden as mentioned in the passage?

1) It can preserve the origins of various plants.

2) It can help in reproducing plants which have become extinct.

3) It can help in better understanding of our bio-diversity.

4) It can store herbal plants.

5) None of these


15. Which of the following is true in context of the passage?

1) The evolution of Ayurveda dates back to 3000-5000 B.C.

2) The Tropical Botanic Garden and Research Institute in Kerala was founded in the year 1994.

3) The two-day workshop was held in the villages of Kerala.

4) The Kerala programme has been funded by the World Bank.

5) None of these

16. What seems to be the prime reason behind the cultivation of herbal plants, wild edible fruits and vegetables?

1) to research in the field of botany


2) to restore our ancient practice of ayurveda

3) to promote primary healthcare

4) to return to nature

5) None of these

17. Which of the following is not true in context of the passage?

1)The Kerala programme is running successfully in various developing countries.

2) The Kerala programme initially focussed on the rural areas.

3) A nation is healthy if it feeds well its entire population.


4) Common ailments can be treated by using herbal plants.

5) None of these

18. What is unique about the treatment of Ayurveda as mentioned in the passage?

1) It takes years to cure a disease.

2) It is the oldest system of healing.

3) It treats the whole person rather than just the symptoms of a disease.

4) It is based on cults.

5) None of these


19. What is the central theme of this passage?

1) Ecology and science in our life

2) Environment and pollution

3) Health of our nation

4) Botanic gardens and their utilities

5) Biodiversity’s links to health

Directions (Q. 20-22): Choose the word which is most similar in meaning to the word given in bold as used in the passage.

20. SUSTAINABLE

1) conservative

2) striking

3) effective

4) maintained

5) justified
21. AILMENTS

1) problems

2) disorders


3) imbalance

4) syndrome

5) illness
22. AROMATIC

1) herbal

2) mystical

3) fragrant

4) distinct

5) extinct

Directions (Q.23-25): Choose the word which is most opposite in meaning to the word given in bold as used in the passage.
23. OUTREACH

1) farflung

2) farthest

3) selected

4) distant

5) limited
24. CONSERVATION


1) deterioration

2) peril

3) recrimination

4) degradation

5) depreciation
25. FURNISHED

1) deprived

2) refused

3) altered


4) diminished

5) halted

ANSWERS:
1. (2) 2. (5) 3. (3) 4. (1) 5. (3)
6. (2) 7. (1) 8. (5) 9. (3) 10. (4)
11. (3) 12. (1) 13. (5) 14. (1) 15. (5)
16. (3) 17. (1) 18. (3) 19. (5) 20. (4)
21. (5) 22. (3) 23. (5) 24. (4) 25. (1)

Tuesday, 27 September 2011

HCL Interview Tips

Hi friends..me wanted to share the interview experiance with HCL. first v had aptitude test
1) General apti test2) Technical paper( asked in computer networks, unix and c)and a harware technical paper for those who are interested in that. i wrote only for software test..
Those who r shortlisted in aptitude test are called for the interview on the next day.
We had two rounds of Interview 1) Technical 2)H.R
Technical:only one interviewer in the panel..i m an ECE student and my area of interest in microprocessor 8085. so following questions are asked for me..1) Introduce yourself2)Tell me about your projects done so far3)What s a pointer and write a program to print the address of that variable.4)How to access a pointer using structure and write a program using that5)What s the difference between structure and union6)Write a program using union7)What are the advantages of pointer8)Whats a static variable9)What s a micro controller and the difference between microprocessor and microcontroller
10)Tell me the major advantages of microcontroller compared to microprocessor
HR Interview: female HR came to our panel.. she asked the questions so fastly and didnt wait to answer the questions fully. .I didnt expect that she ll ask technical questions in HR interview.. so BE READY FOR ANYTHING
She gave a c program and asked the output, then asked whats a pointer1)What s ur aspiration? 2) Why HCL and wat do u know about HCL? 3) About family background... 

HCL System Software Sample Test Papers

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

HCL System Software Sample Test Paper

Section A 
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) & (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

Section B

1. Given the following statement
     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. Find the output for the following C program
main
{int x,j,k;
j=k=6;x=2;
x=j*k;
printf("%d", x);

3. Find the output for the following C program
fn f(x)
{ if(x<=0)
return;
else f(x-1)+x;
}

4. Find the output for the following C program
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. Find the output for the following C program
int i =10
main()
{int i =20,n;
for(n=0;n<=i;)
{int i=10;
i++;
}
printf("%d", i);
Ans. i=20

6. Find the output for the following C program
int x=5;
y= x&y

7.Find the output for the following C program
Y=10;
if( Y++>9 && Y++!=10 && Y++>10)
{printf("%d", Y);
else
printf("%d", Y);
}
Ans. 13

8. Find the output for the following C program
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
Ans. (a)

9. What is the sizeof(long int)
(a) 4 bytes
(b) 2 bytes
(c) compiler dependent
(d) 8 bytes

10. Which of the function operator cannot be over loaded
(a)  <=
(b) ?:
(c) ==
(d) *

11. Find the output for the following C program
main()
{int x=2,y=6,z=6;
x=y==z;
printf(%d",x)
}

Section C (Programming Skills)
Answer the questions based on the following program
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
}
Q. In what case the prev was
(a) All cases
(b) It does not work for the last element
(c) It does not for the first element
(d) None of these

Answer the questions based on the following program
VOID FUNCTION(INT KK)
{KK+=20;
}
VOID FUNCTION (INT K)
INT MM,N=&M
KN = K
KN+-=10;
}

Q. What is the output of the following program
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 D
1. a=2, b=3, c=6
    Find the value of c/(a+b)-(a+b)/c

2. What does the hexanumber E78 in radix 7.
(a) 12455
(b) 14153
(c) 14256
(d) 13541
(e) 131112
Ans. (d)

3. 10 : 4 seconds :: ? : 6 minutes

Ans. 900

4. Q is not equal to zero and k = (Q x n - s)/2.What is  n?
(a) (2 x k + s)/Q
(b) (2 x s x k)/Q
(c) (2 x k - s)/Q
(d) (2 x k + s x Q)/Q
(e) (k + s)/Q

5. From the following statements determing the order of ranking
  • M has double the amount as D
  • Y has 3 rupess more than half the amount of D
Ans. Data insuffiecient

Questions 6 - 10 are to be answered on the following data
  • A causes B or C, but not both
  • F occurs only if B occurs
  • D occurs if B or C occurs
  • E occurs only if C occurs
  • J occurs only if E or F occurs
  • D causes G,H or both
  • H occurs if E occurs
  • G occurs if F occurs
6. If A occurs which of the following must occurs
I.  F and G
II. E and H
III. D
(a) I only
(b) II only
(c) III only
(d) I,II, & III
(e) I & II (or) II & III but not both
Ans. (e)

7. If B occurs which must occur
(a) D
(b) D and G
(c) G and H
(d) F and G
(e) J
Ans. (a)

8. If J occurs which must have occured
(a) E
(b) either B or C
(c) both E & F
(d) B
(e) both B & C
Ans. (b)

9. Which may occurs as a result of cause not mentioned
I. D
II. A
III. F
(a) I only
(b) II only
(c) I & II
(d) II & III
(e) I,II & III
Ans. (c)
10. E occurs which one cannot occurs
(a) A
(b) F
(c) D
(d) C
(e) J
Ans. (b)

INDIA ENOW

How do u rate my blog?

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More