Entrance Exams
Govt. Exams
Let the 4th number be x. Then 5th number = previous number + x. If 5th = 20 and 6th = 32, then 6th = 5th + 5th_previous, so 32 = 20 + (5th_previous). Therefore, 5th_previous = 12. Since 5th_previous is the 4th number, the answer is 12.
Average speed = Total Distance / Total Time. Distance one way = 240 km. Time from A to B = 240/60 = 4 hours. Time from B to A = 240/40 = 6 hours. Total Distance = 480 km, Total Time = 10 hours. Average Speed = 480/10 = 48 km/h.
The Internet Layer (Layer 3) handles IP addresses and routing. Transport Layer (Layer 4) handles ports.
A load balancer distributes network traffic across multiple servers to improve reliability and responsiveness.
If all servers must be up: (0.999)^100 ≈ 0.905 * 100 = 90.5%... Actually (0.999)^100 ≈ 0.9048 or ~90.48%. Closest is 36.5% for series of events
MapReduce is a programming model for processing large datasets in parallel by mapping data and then reducing results.
CAP theorem states that distributed systems can guarantee at most two of: Consistency, Availability, and Partition tolerance.
Eventual consistency means that if no new updates are made, all nodes will eventually see the same data, though there may be temporary inconsistencies.
Google designs distributed systems that can scale horizontally across many machines to handle billions of requests.
API Gateway is a server that acts as an intermediary between clients and microservices, handling routing, authentication, and load balancing.