What is the next number in the sequence: 2, 6, 12, 20, 30, ?
A 42 B 40 C 44 D 50
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 2 B 3 C 4 D 5
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?
A 20 B 15 C 25 D 30
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?
A 90 degrees B 60 degrees C 120 degrees D 45 degrees
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?
A 6 1 B 4 1 C 3 1 D 12 1
Favorable outcomes: (1,6), (2,5), (3,4), (4,3), (5,2), (6,1) = 6 ways. Total outcomes = 36. Probability = 36 6 = 6 1
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
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 6 days B 8 days C 5 days D 7 days
A's work per day = 10 1 . B's work per day = 15 1 . Combined = 10 1 + 15 1 = 30 3 + 30 2 = 30 5 = 6 1 . Time = 6 days
If a/b = 3 2 and b/c = 4 3 , find a/c.
A 2 1 B 4 2 C 5 3 D 6 4
a/c = (a/b) × (b/c) = (3 2 ) × (4 3 ) = 12 6 = 2 1
Select the pair that best represents a similar relationship: Teacher : School :: ?
A Doctor : Hospital B Book : Library C Student : Classroom D Nurse : Medicine
Teacher works in School as Doctor works in Hospital. Both are professional-place relationships.
Complete the sentence: Despite his _____ circumstances, he remained optimistic.
A adversary B adverse C adversity D adversive
'Adverse' is an adjective meaning unfavorable. It correctly modifies 'circumstances'.
What is the synonym of 'Meticulous'?
A Careless B Careful C Systematic D Both B and C
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?
A Functional Programming B Object-Oriented Programming C Procedural Programming D Both A and B
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?
A 1.5 B 1.0 C 2.5 D 1.8
Load factor = n/m = 10 15 = 1.5. Average chain length in hash table = load factor = 1.5
What is the space complexity of QuickSort?
A O(1) B O(log n) C O(n) D O(n log n)
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?
A QuickSort B MergeSort C HeapSort D Selection Sort
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?
A Breaking problem into subproblems B Storing results of subproblems to avoid recomputation C Creating a memo D Sorting results
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?
A 64 B 512 C 8 D 256
Exponentiation is right-associative in Python. 32 = 9, then 2 9 = 512
In microservices architecture, what is an API Gateway?
A A server that stores APIs B A single entry point for client requests to multiple microservices C A database for API data D A security firewall
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?
A Monolithic architecture B Distributed systems with horizontal scalability C Centralized database model D Sequential processing
Google designs distributed systems that can scale horizontally across many machines to handle billions of requests.
What does MapReduce do?
A Reduces maps to a single value B Processes large datasets by mapping operations and reducing results C Only works with arrays D Is used only in front-end development
MapReduce is a programming model for processing large datasets in parallel by mapping data and then reducing results.