question # 3\nmultiple choice\nwhat is the output of the following program?\nnuma = 2\nwhile numa < 30:\n…

question # 3\nmultiple choice\nwhat is the output of the following program?\nnuma = 2\nwhile numa < 30:\n numa = numa * 5\nprint(numa)\n50\n30\n10\n12
Answer
Explanation:
Step1: Initial value assignment
numA = 2
Step2: First - iteration check
The condition numA < 30 is true as 2 < 30. Then numA = numA * 5=2 * 5 = 10.
Step3: Second - iteration check
The condition numA < 30 is true as 10 < 30. Then numA = numA * 5=10 * 5 = 50.
Step4: Third - iteration check
The condition numA < 30 is false as 50>30, so the loop stops and the value of numA which is 50 is printed.
Answer:
50