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

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

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)

Question 5

✓
9608/22
✓
Cambridge International AS & A Level – Mark Scheme
✓
May/June 2021
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 9608_s21_ms_22.pdf →

Show text version of question

Question 2

Part (b)

Question 2

Study the following pseudocode.

DECLARE Overload : BOOLEAN

PROCEDURE LEM()

DECLARE Status : BOOLEAN DECLARE Landed : INTEGER

Overload FALSE Landed FALSE

WHILE Landed = FALSE Status Sample() IF Status = TRUE THEN Landed SubA(42) ELSE Overload SubB(37) IF Overload = TRUE THEN CALL Display("Alarm 1202") ENDIF ENDIF ENDWHILE

ENDPROCEDURE

Part (b)

Draw a program flowchart to represent the pseudocode algorithm.

Variable declarations are not required in program flowcharts.

[5]

Question 6

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 9608_s21_qp_22.pdf

Keep practising this topic