Asked by GIANSH GUPTA KHUNDKER · BIRLA BRAINIACS
Answer: C. 10
Answer: (C) 10
Explanation:
• This loop acts as a multiplication mechanism (X × Y).
• The loop runs exactly 5 times because X starts at 5 and decreases by 1 each iteration (5 → 4 → 3 → 2 → 1 → 0).
• In each of the 5 runs, Y (which is 2) is added to Z.
• Total value of \(Z = 2 + 2 + 2 + 2 + 2 = \mathbf{10}\).
Answering after opening this box earns no Practice Points.