HCL Placement Papers
Placement Papers for All Companies
HCL Language paper
Q1. What is the output of the following program?
static int m;
Q2. What is the output of the following program?
case 2: printf("%d,",i++);break;
case 3: continue;
case 4: printf("%d,",i);
Q3. 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 Lucias age. What is the age?
Q4. 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: 90 ft
Q5. 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?
Q6. There is a 5 digit number. 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.
Q7. 0, 2, 4, 6, 8, 12, 12, 20, 16, ____
Q8. 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
Q9. A is an integer. Dividing 89 & 125 gives remainders 4 & 6 respectively. Find A?
Q10. If there are 1024*1280 pixels on a screen and each pixel can have around 16 million colors. Find the memory required for this?