Location : Mumbai
January 2012 HCL Placement Paper:-
1.void main()
{
int i,j,k;
for(i=0;i<3;i++)
k=sum(i,i);
printf("\n%d",k);
getch();
}
sum(s,t)
{
static int m;
m+=s+t;
return m;
}
Ans: 6
2.void main()
{
int i;
clrscr();
for(i=1;i<6;++i)
switch(i)
{
case 1:
case 2: printf("%d,",i++);break;
case 3: continue;
case 4: printf("%d,",i);
}
printf("%d",i);
getch();
}
Ans: 1,4,6
3. Lucia is a wonderful grandmother. Her age is between 50 and 70.Each of her sons have as many sons as they have brothers. Their combined number gives Lucia?s age. What is the age?
Ans: 64
4.There are two towers A and B. Their heights are 200ft and 150ft respectively and the foot of the towers are 250ft apart. Two birds on top of each tower fly down with the same speed and meet at the same instant on the ground to pick a grain. What is the distance between the foot of tower A and the grain?
Ans:90ft
5.raju having some coins want to distribute to his 5 son , 5 daughter and driver in a manner that , he gave fist coin to driver and 1/5 of remaining to first son he again gave one to driver and 1/5 to 2nd son and so on.... at last he equally distributed all the coins to 5 daughters. how many coins raju initially have???
Ans:-881
6. There is a 5digit no. 3 pairs of sum is eleven each. Last digit is 3 times the first one. 3 rd digit is 3 less than the second.4 th digit is 4 more than the second one. Find the digit.
Ans : 25296.
7.0, 2, 4, 6, 8, 12, 12, 20, 16, ____ Ans: 12
8. A tree on first day grows 1/2 of its size second day 1/3rd of its size on the previous day similarly than 1/4th and so on.u have to calculate after how many days the tree will be 100 times of its original size.
Ans -198 days
9. A is an integer. Dividing 89 & 125 gives remainders 4 & 6 respectively. Find a ?
Ans: 17
10. If there are 1024*1280 pixels on a screen and each pixel can have around 16 million colors Find the memory required for this?
Similar Threads:
- HCL Technologies 2012 Placement Papers, Placement Process, Criteria and Company Profile
- Ness Technologies Limited 2012 Placement Papers,Placement Process and Criteria,Company Profile
- Tech Mahindra placement papers (January 2012)
- Renault-Nissan placement paper (January 2012)
- Wipro Technologies placement papers (January 2011)
thanks for posting this solved paper