Past-paper question · 2021 October-November · Paper 21 · Q2(b)

Question 2(b) 2021 · October-November · Paper 21 · 6 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)

✓
Count ← 1

Question 6

✓
Flag ← FALSE
✓
WHILE Flag = FALSE AND Count <= 5
✓
CALL ReBoot()
✓
Count ← Count + 1
✓
Flag ← Check()
✓
ENDWHILE
✓
IF Flag = FALSE THEN
✓
CALL Alert(27)
✓
ENDIF
✓
One mark per point:

Question 1

✓
Initialisation of Count AND Flag

Question 2

✓
WHILE ... ENDWHILE // REPEAT ... UNTIL loop

Question 3

✓
... including both conditions

Question 4

✓
Call ReBoot() AND increment Count inside the loop

Question 5

✓
Assign return value from Check() to Flag inside the loop

Question 6

✓
Final test of Flag AND call to Alert(27) not in a loop
✓
Question
✓
Answer
✓
Marks

Mark scheme 9618_w21_ms_21.pdf →

Show text version of question

Question 2

Part (b)

Part (b)

The program flowchart shown describes a simple algorithm.

START

Set Count to 1

Set Flag to FALSE

Is Flag = YES FALSE AND Count <= 5 ?

NO ReBoot()

Set Count to Count + 1

Set Flag to Check()

Is Flag = YES FALSE ?

NO Alert(27)

END

Question 7

Write pseudocode for the simple algorithm shown on page 6.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[6]

Question 8

Topic relevance

Why this question appears here

71% 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_w21_qp_21.pdf

Keep practising this topic