In a sequence, each number is the sum of the previous two numbers. If the 5th number is 20 and the 6th number is 32, what is the 4th number?
A10
B12
C15
D18
Correct Answer:
B. 12
EXPLANATION
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.
A train travels from City A to City B at 60 km/h and returns at 40 km/h. The total distance between the two cities is 240 km. What is the average speed of the train for the entire journey?
A48 km/h
B50 km/h
C52 km/h
D55 km/h
Correct Answer:
A. 48 km/h
EXPLANATION
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.
What is eventual consistency in distributed systems?
AAll nodes have same data at all times
BData will be consistent across all nodes eventually
CConsistency is never achieved
DOnly one node is consistent
Correct Answer:
B. Data will be consistent across all nodes eventually
EXPLANATION
Eventual consistency means that if no new updates are made, all nodes will eventually see the same data, though there may be temporary inconsistencies.