Question:

A calculator has two memory buttons, A and B. Value 1 is initially stored in both memory locations. The following sequence of steps is carried out five times: add 1 to B, multiply A to B, store the result in A. What is the value stored in memory location A after this procedure?

Show Hint

Follow the steps literally: B goes up by 1 each time, and the product of A and B is stored in A.
Updated On: Nov 5, 2026
  • 720
  • 450
  • 120
  • 250
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is A

Solution and Explanation

Step 1: Read the procedure:
Each pass does three things: add 1 to B, multiply A by B, and store the product in A. The product is stored in A, so B only changes by the "add 1" step.

Step 2: Run the five passes (start \(A = 1,\ B = 1\)):
  • Pass 1: \(B = 2\), \(A = 1 \times 2 = 2\)
  • Pass 2: \(B = 3\), \(A = 2 \times 3 = 6\)
  • Pass 3: \(B = 4\), \(A = 6 \times 4 = 24\)
  • Pass 4: \(B = 5\), \(A = 24 \times 5 = 120\)
  • Pass 5: \(B = 6\), \(A = 120 \times 6 = 720\)
Step 3: Result:
\(A = 2 \times 3 \times 4 \times 5 \times 6 = 720\). Option (3), 120, is the value after only four passes.

Final Answer:
The correct option is (1): 720
Was this answer helpful?
0
0

Top CAT Arithmetic Questions

View More Questions