ITPEC IP April 2024 Question 7

Source exam: ITPEC IP April 2024Topic: Algorithm and Programming

ITPEC IP April 2024 — Question 7 of 100

After the procedure is performed twice, the machine reaches state 4. Begin at state 1 and apply the remainder rule separately on each performance.

First, 1 × 11 = 11, and 11 mod 3 = 2. Remainder 2 means move two states clockwise: 1 → 2 → 3. The current state is now 3. Second, 3 × 11 = 33, and 33 mod 3 = 0. Remainder 0 means move one state clockwise: 3 → 4.

Answer (d)

Why not others:
- (a) 1 would require returning to the starting state

- (b) 2 is only the first clockwise step during the initial two-step transition

- (c) 3 is the state reached after the first performance, before the required second performance

Key rule: Recalculate the remainder from the newly reached state each time the procedure is performed; do not reuse the first result.

AI-generated — may contain errors

The original exam layout is preserved in the image so diagrams, formulas, tables, and code remain accurate.

This question comes from an official ITPEC past paper. ITPEC Practice is an independent study tool and is not affiliated with ITPEC. See the official IP past-paper collection or Report an issue.