Past-paper question · 2019 October-November · Paper 22 · Q5

Question 5 2019 · October-November · Paper 22 · 7 marks

Original past-paper question for 5
Original past-paper question for 5
Original past-paper question for 5
Reveal official mark-scheme answer Official mark-scheme answer for 5

Official answer for Question 5

Question 7

✓
One mark for each of:
✓
1.
✓
Diagram with boxes as above correctly labelled
✓
2.
✓
P3 and S2
✓
3.
✓
Return Boolean from Validate()
✓
4.
✓
P4
✓
5.
✓
M4
✓
6.
✓
T4
✓
7.
✓
Return parameter from Update()
✓
9608/22
✓
Cambridge International AS/A Level – Mark Scheme
✓
October/November
✓
PUBLISHED
✓
2019
✓
Question
✓
Answer
✓
Marks

Mark scheme 9608_w19_ms_22.pdf →

Show text version of question

Question 5

The module headers for three modules in a program are defined in pseudocode as follows:

Pseudocode module header PROCEDURE Lookup(P4 : INTEGER, BYREF M4 : STRING) FUNCTION Update(T4 : INTEGER) RETURNS INTEGER FUNCTION Validate(S2 : INTEGER, P3 : STRING) RETURNS BOOLEAN

A
fourth module, Renew(), calls the three modules in the following sequence.

Validate() Lookup() Update()

Draw a structure chart to show the relationship between the four modules and the parameters passed between them.

[7]

Question 13

Question 6 begins on the next page.

Question 14

Topic relevance

Why this question appears here

82% assigned-topic match · Data types and structures › Data types and records

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_w19_qp_22.pdf

Keep practising this topic