Question 2(b) 2021 · May-June · Paper 22 · 5 marks
Reveal official mark-scheme answer
Official answer for Question 2
Part (b)
Question 5
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.
Question 6
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
