Question 2(a) 2021 · May-June · Paper 22 · 5 marks
Reveal official mark-scheme answer
Official answer for Question 2
Part (a)
Question 5
Show text version of question
Question 2
Part (a)
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 (a)
Examine the pseudocode and complete the following table:
Answer
The identifier name of a global variable
The name of the loop structure
The identifier involved in a data type mismatch
The name of a procedure that takes a parameter
The name of a function
Question 5
Why this question appears here
99% assigned-topic match · Programming › Structured programming
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
