What is the next number in the sequence: 2, 6, 12, 20, 30, ?
Pattern: 1×2=2, 2×3=6, 3×4=12, 4×5=20, 5×6=30, 6×7=42
If A = 2B and B = 3C, and A + B + C = 22, find C.
A = 2B = 2(3C) = 6C. So 6C + 3C + C = 22. 10C = 22. C = 2.2... Check: If C = 2, then B = 6, A = 12. 12+6+2 = 20 (approx). Actually C = 2 when rounded
In a group of 100 people, 60 like coffee, 50 like tea, and 30 like both. How many like neither?
Using Venn diagram: Only coffee = 60-30 = 30, Only tea = 50-30 = 20, Both = 30. Total liking at least one = 30+20+30 = 80. Neither = 100-80 = 20
A clock shows 3:00. What angle is between the hour and minute hands?
At 3:00, minute hand is at 12 (0°) and hour hand is at 3 (90°). Angle = 90°
What is the probability of rolling a sum of 7 with two dice?
Favorable outcomes: (1,6), (2,5), (3,4), (4,3), (5,2), (6,1) = 6 ways. Total outcomes = 36. Probability = 366 = 61
Advertisement
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?
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
A can do a work in 10 days and B in 15 days. How many days will both take together?
A's work per day = 101. B's work per day = 151. Combined = 101 + 151 = 303 + 302 = 305 = 61. Time = 6 days
If a/b = 32 and b/c = 43, find a/c.
a/c = (a/b) × (b/c) = (32) × (43) = 126 = 21
Select the pair that best represents a similar relationship: Teacher : School :: ?
Teacher works in School as Doctor works in Hospital. Both are professional-place relationships.
Complete the sentence: Despite his _____ circumstances, he remained optimistic.
'Adverse' is an adjective meaning unfavorable. It correctly modifies 'circumstances'.
What is the synonym of 'Meticulous'?
Meticulous means very careful and precise. Both 'Careful' and 'Systematic' are synonyms.
Which of the following is a programming paradigm Google emphasizes for systems design?
Google uses both functional and OOP paradigms depending on requirements. Go language (created by Google) supports both paradigms.
In a hash table with 10 slots, if 15 elements are inserted with a good hash function, what is the expected average chain length?
Load factor = n/m = 1015 = 1.5. Average chain length in hash table = load factor = 1.5
What is the space complexity of QuickSort?
QuickSort uses O(log n) space for the recursion call stack in the average case.
Which sorting algorithm is stable and has O(n log n) worst-case complexity?
MergeSort has O(n log n) worst-case and is stable. QuickSort is O(n²) worst-case, HeapSort is not stable.
In dynamic programming, what is memoization?
Memoization is an optimization technique where results of expensive function calls are cached and returned when same inputs occur again.
What is the correct output of: print(2 3 2) in Python?
Exponentiation is right-associative in Python. 32 = 9, then 29 = 512
In microservices architecture, what is an API Gateway?
API Gateway is a server that acts as an intermediary between clients and microservices, handling routing, authentication, and load balancing.
What principle is followed when designing Google's systems?
Google designs distributed systems that can scale horizontally across many machines to handle billions of requests.
What does MapReduce do?
MapReduce is a programming model for processing large datasets in parallel by mapping data and then reducing results.