ITPEC IP October 2023 Question 5

Source exam: ITPEC IP October 2023Topic: Algorithm and Programming

ITPEC IP October 2023 — Question 5 of 100

The right-hand unit outputs B1 = 3. For each unit, output B1 is its second input A2, and output B2 is A1 mod A2.

The left unit receives A1 = 15 and A2 = 6, so it produces:
- B1 = 6

- B2 = 15 mod 6 = 3

These outputs become the right unit's inputs: A1 = 6 and A2 = 3. Since that unit copies its A2 to B1, its B1 is 3.

Answer (b)

Why not others:
- 0 would be the right unit's B2 because 6 mod 3 = 0

- 6 is the first unit's B1 and the second unit's A1

- 15 is only the original A1 input

Key rule: Trace every wire in order; do not confuse the second unit's B1 with its remainder output B2.

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.