HCL Logical and Quantitative Aptitude Questions
- Lucia is a wonderful grandmother. Her age is between 50 and 70. Each of her sons has as many sons as they have brothers. Their combined number gives Lucia’s age. What is the age?
(A) 60
(B) 65
(C) 64
(D) 66
Ans: C
Explanation:
Let the number of Lucia’s sons = n
No. of brothers for each son = n - 1
No. of sons for each of Lucia’s sons = n - 1
Lucia’s age = (n - 1) × (n - 1) = a perfect square between 50 and 70 = 64.
- Two trains running in opposite directions cross a man standing on the platform in 27 seconds and 17 seconds respectively, and they cross each other in 23 seconds. The ratio of their speeds is:
(A) 1 : 3
(B) 3 : 2
(C) 3 : 4
(D) None of these
Ans: B
- A train passes a station platform in 36 seconds and a man standing on the platform in 20 seconds. If the speed of the train is 54 km/hr, what is the length of the platform?
(A) 240 m
(B) 120 m
(C) 300 m
(D) None of these
Ans: A
- A can do a work in 15 days, and B in 20 days. If they work on it together for 4 days, the fraction of the work that is left is:
(A) 1/4
(B) 1/10
(C) 7/15
(D) 8/15
Ans: D
- On selling 17 balls at Rs. 720, there is a loss equal to the cost price of 5 balls. The cost price of a ball is:
(A) Rs. 45
(B) Rs. 50
(C) Rs. 55
(D) Rs. 60
Ans: D
- Grass in a lawn grows equally thick and at a uniform rate. It takes 40 days for 40 cows and 60 days for 30 cows to eat the whole grass. How many days does it take for 20 cows to do the same?
(A) 125
(B) 110
(C) 120
(D) 130
Ans: C
Explanation:
From the equations:
g + 40r = 40 × 40y
g + 60r = 30 × 60y
Solving, we find n = 120.
HCL Technical Questions
- How many such pairs of letters are there in the word *DISTURB*, each one having as many letters between its two letters in the word as there are between them in the English alphabet?
(A) 4
(B) 5
(C) 3
(D) 2
(E) None of these
Ans: A
- What are the types of linkages?
(A) Internal and External
(B) External, Internal, and None
(C) External and None
(D) Internal
Ans: B
- Which of the following is not a type of constructor?
(A) Copy constructor
(B) Friend constructor
(C) Default constructor
(D) Parameterized constructor
Ans: B
- If C and G interchange their positions, which of the following will indicate A’s position?
(A) To the immediate right of G
(B) 4th to the right of C
(C) 2nd to the left of G
(D) To the immediate left of C
(E) None of these
Ans: D
- Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1?
(A) rem = 3.14 % 2.1;
(B) rem = modf(3.14, 2.1);
(C) rem = fmod(3.14, 2.1);
(D) Remainder cannot be obtained in floating-point division.
Ans: C