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

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

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

Official answer for Question 2

Part (a)

Question 5

✓
Answer
✓
The identifier name of a global variable
✓
Overload
✓
The name of the loop structure
✓
Pre-condition loop
✓
The identifier involved in a type mismatch
✓
Landed
✓
The name of a procedure that takes a
✓
Display()
✓
parameter
✓
Sample() //
✓
The name of a function
✓
SubA() // SubB()
✓
One mark per row
✓
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 (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

[5]

Question 5

Topic relevance

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

Keep practising this topic