Question:

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.

Starting again from X = 3, Y = 2, if the value of N is changed to 500, what would be the final value of X?

Show Hint

360 is below the new threshold of 500, so the machine needs one more step, taking X to 2160.
Updated On: Jul 15, 2026
  • 360
  • 500
  • 560
  • 2160
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is D

Solution and Explanation

Step 1: Continue the simulation past step 4.
From before: after step 4, X = 360, Y = 6. Since 360 is less than the new N of 500, the machine keeps going.

Step 2: Run one more step.
Step 5: X = 360 x 6 = 2160, Y = 7. Since 2160 ≥ 500, the machine stops here.

Step 3: Final Answer.
The final value of X is 2160, so option D is correct.
Was this answer helpful?
0
0