Past-paper question · 2024 October-November · Paper 22 · Q7(a)

Question 7(a) 2024 · October-November · Paper 22 · 5 marks

Original past-paper question for 7(A)
Original past-paper question for 7(A)
Reveal official mark-scheme answer Official mark-scheme answer for 7(A)

Official answer for Question 7

Part (a)

✓
One mark per mark point (max five)

Question 5

✓
•
✓
Correct Value column
✓
•
✓
Correct Count column
✓
•
✓
Correct Answer column (down to first OUTPUT (120)) – Shaded grey
✓
•
✓
Correct Answer column (remaining rows)
✓
•
✓
Correct OUTPUT column
✓
Value
✓
Count
✓
Answer
✓
OUTPUT

Question 5

Question 5

Question 4

Question 20

Question 3

Question 60

Question 2

✓
120

Question 1

✓
120
✓
120

Question 6

Question 6

Question 5

Question 30

Question 4

✓
120

Question 3

✓
360

Question 2

✓
720

Question 1

✓
720
✓
720
✓
−1

Mark scheme 0478_w24_ms_22.pdf →

Show text version of question

Question 7

Part (a)

Question 7

This pseudocode represents an algorithm.

An input of –1 will terminate the algorithm.

DECLARE Count : INTEGER DECLARE Answer : INTEGER DECLARE Value : INTEGER REPEAT INPUT Value IF Value <> -1 THEN

Answer Value FOR Count Value - 1 TO 1 STEP -1 Answer Answer * Count NEXT Count OUTPUT Answer ENDIF UNTIL Value = -1

Part (a)

Complete the trace table for the input data:

5, 6, –1, 20, 9, 4

Value Count Answer OUTPUT

[5]

Question 7

, ,

Topic relevance

Why this question appears here

98% assigned-topic match · Algorithm design and problem-solving

Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.

Permanent source page: Educate A Change · From 0478_w24_qp_22.pdf

Keep practising this topic