Past-paper question · 2024 May-June · Paper 22 · Q2(b)

Question 2(b) 2024 · May-June · Paper 22 · 5 marks

Original past-paper question for 2(B)
Original past-paper question for 2(B)
Original past-paper question for 2(B)
Reveal official mark-scheme answer Official mark-scheme answer for 2(B)

Official answer for Question 2

Part (b)

✓
Example solutions:

Question 5

✓
Flag GetStat()
✓
WHILE Flag <> TRUE
✓
FOR Port 1 TO 3
✓
CALL Reset(Port)
✓
NEXT Port
✓
Flag GetStat()
✓
ENDWHILE
✓
Alternative:
✓
REPEAT
✓
Flag GetStat()
✓
IF Flag <> TRUE THEN
✓
FOR Port 1 TO 3
✓
CALL Reset(Port)
✓
NEXT Port
✓
ENDIF
✓
UNTIL Flag = TRUE
✓
One mark per point:
✓
1 (Outer) conditional loop testing Flag
✓
2 Correct assignment of Flag from GetStat() in a loop
✓
3 (Inner) loop checking / counting port // Check if Port is different to 4
✓
4 … loop for 3 iterations
✓
5 a call to Reset()in a loop
✓
Question
✓
Answer
✓
Marks

Mark scheme 9618_s24_ms_22.pdf →

Show text version of question

Question 2

Part (b)

Question 2

A program is being developed.

Part (b)

A different part of the program contains an algorithm represented by the following program

flowchart:

START

Set Flag to GetStat()

Is Flag = Yes TRUE ?

No END

Set Port to 1

No Is Port = 4 ?

CALL Reset(Port) Yes

Set Port to Port + 1

Write pseudocode for the algorithm.

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

.............................................................................................................................................

[5]

Question 7

Topic relevance

Why this question appears here

92% assigned-topic match · Algorithm design and problem-solving › Algorithms

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 9618_s24_qp_22.pdf

Keep practising this topic