Showing 11–20 of 312 questions
In a hash table with 10 slots, if 15 elements are inserted with a good hash function, what is the expected average chain length?
EXPLANATION
Load factor = n/m = 15/10 = 1.5. Average chain length in hash table = load factor = 1.5
Which of the following is a programming paradigm Google emphasizes for systems design?
A
Functional Programming
B
Object-Oriented Programming
C
Procedural Programming
D
Both A and B
Correct Answer:
D. Both A and B
EXPLANATION
Google uses both functional and OOP paradigms depending on requirements. Go language (created by Google) supports both paradigms.
What is the synonym of 'Meticulous'?
A
Careless
B
Careful
C
Systematic
D
Both B and C
Correct Answer:
D. Both B and C
EXPLANATION
Meticulous means very careful and precise. Both 'Careful' and 'Systematic' are synonyms.
Complete the sentence: Despite his _____ circumstances, he remained optimistic.
A
adversary
B
adverse
C
adversity
D
adversive
Correct Answer:
B. adverse
EXPLANATION
'Adverse' is an adjective meaning unfavorable. It correctly modifies 'circumstances'.
Select the pair that best represents a similar relationship: Teacher : School :: ?
A
Doctor : Hospital
B
Book : Library
C
Student : Classroom
D
Nurse : Medicine
Correct Answer:
A. Doctor : Hospital
EXPLANATION
Teacher works in School as Doctor works in Hospital. Both are professional-place relationships.
If a/b = 2/3 and b/c = 3/4, find a/c.
EXPLANATION
a/c = (a/b) × (b/c) = (2/3) × (3/4) = 6/12 = 1/2
A can do a work in 10 days and B in 15 days. How many days will both take together?
A
6 days
B
8 days
C
5 days
D
7 days
Correct Answer:
A. 6 days
EXPLANATION
A's work per day = 1/10. B's work per day = 1/15. Combined = 1/10 + 1/15 = 3/30 + 2/30 = 5/30 = 1/6. Time = 6 days
Three years ago, the sum of ages of father and son was 48. If the father is 20 years older, what is the current age of son?
A
17 years
B
18 years
C
16 years
D
20 years
Correct Answer:
A. 17 years
EXPLANATION
Let son's age 3 years ago = x. Father's age 3 years ago = x + 20. x + x + 20 = 48. 2x = 28. x = 14. Current age of son = 14 + 3 = 17
What is the probability of rolling a sum of 7 with two dice?
EXPLANATION
Favorable outcomes: (1,6), (2,5), (3,4), (4,3), (5,2), (6,1) = 6 ways. Total outcomes = 36. Probability = 6/36 = 1/6
A clock shows 3:00. What angle is between the hour and minute hands?
A
90 degrees
B
60 degrees
C
120 degrees
D
45 degrees
Correct Answer:
A. 90 degrees
EXPLANATION
At 3:00, minute hand is at 12 (0°) and hour hand is at 3 (90°). Angle = 90°