Past-paper question · 2019 May-June · Paper 23 · Q3(a)

Question 3(a) 2019 · May-June · Paper 23 · 6 marks

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

Official answer for Question 3

Part (a)

Question 6

✓
Mark as follows:
✓
•
✓
One mark for four boxes connected as shown (search, allocate and enable in
✓
the correct order)
✓
•
✓
One mark for each of:
  • Arrows labelled AA, BB and CC with correct symbols
  • Return parameter from Search with correct symbol
  • Return boolean from Allocate with correct symbol
  • Double-headed arrow for DD
✓
•
✓
One mark for repetition arrow (either direction)

Mark scheme 9608_s19_ms_23.pdf →

Show text version of question

Question 3

Part (a)

Question 3

The following pseudocode represents three separate modules from an algorithm design. The

module contents are not shown.

FUNCTION Search(AA : INTEGER, BB : STRING) RETURNS INTEGER

ENDFUNCTION

FUNCTION Allocate() RETURNS BOOLEAN

ENDFUNCTION

PROCEDURE Enable(CC : INTEGER, BYREF DD : INTEGER)

ENDPROCEDURE

A
fourth module, Setup(), refers to the previous three modules as follows:

PROCEDURE Setup()

WHILE Authorised = TRUE

ThisValue Search(27, "Thursday")

Authorised Allocate()

CALL Enable(ThisValue, 4)

ENDWHILE

ENDPROCEDURE

Question 9

Part (a)

Draw a structure chart to show the four modules and the parameters that these pass between

them.

[6]
Topic relevance

Why this question appears here

72% 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_s19_qp_23.pdf

Keep practising this topic