Question:easy

Instructions: A numerical machine accepts two values X and Y. At every step, it updates the values as X = X times Y, and Y = Y + 1. The machine stops as soon as X becomes greater than or equal to N.

Using the same values as the previous question (X = 3, Y = 2, N = 100), what is the final value of X?

Show Hint

The final X is the value at the exact step where X first reaches or crosses 100.
Updated On: Jul 15, 2026
  • 6
  • 20
  • 72
  • 360
Show Solution

The Correct Option is D

Solution and Explanation

Since the machine only stops once X crosses 100, the final X value is simply whatever X becomes on the very last step that was run.

  1. The steps produced X values of 6, 18, 72 and then 360, in that order.
  2. The stopping rule triggers as soon as X is at least 100, and 360 is the first value in this sequence to satisfy that, since 72 is still below 100.

So the machine's last computed value of X, and hence its final value, is 360.

The correct answer is option D.

Was this answer helpful?
0


Questions Asked in SNAP exam