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 before (X = 3, Y = 2, N = 100), what is the final value of Y?

Show Hint

Y simply increases by 1 each step, so its final value is the starting Y plus the number of steps run.
Updated On: Jul 15, 2026
  • 4
  • 5
  • 6
  • 20
Show Solution

The Correct Option is C

Solution and Explanation

Since Y simply increases by 1 on every step, its final value is just 2 (the starting value) plus the total number of steps performed.

  1. The machine was already shown to run for exactly 4 steps before stopping.
  2. Starting Y is 2, so after 4 increments, Y becomes $2 + 4 = 6$.

This matches the step-by-step tracking exactly.

So the correct answer is option C, 6.

Was this answer helpful?
0


Questions Asked in SNAP exam