ITPEC IP April 2022 Question 9

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

ITPEC IP April 2022 — Question 9 of 100

The right-hand box outputs B2 = 1. The left box receives A1 = 49 and A2 = 11, so it produces B1 = 11 and B2 = 49 mod 11 = 5. These become the right box's inputs A1 = 11 and A2 = 5. Its B2 is therefore 11 mod 5 = 1.

Answer (a)

Why not others:
- 2 is not either calculated remainder

- 4 is the quotient of 49 divided by 11, not the requested remainder

- 5 is the left box's B2 and the right box's second input, not its final B2

Key rule: Trace intermediate outputs into the next box in order, then apply the remainder operation again.

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.