Past-paper question · 2021 May-June · Paper 21 · Q3(a)

Question 3(a) 2021 · May-June · Paper 21 · 5 marks

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 5

✓
1 mark for each of:
✓
1 Iteration arrow
✓
2 Selection diamond
✓
3 Both sets of parameters from Module_X
✓
4 Parameter ByReferene to Module_YA
✓
5 Parameter (ByValue) and return Boolean from Module_YB

Mark scheme 9608_s21_ms_21.pdf →

Show text version of question

Question 3

Part (a)

The following table contains information about five modules in a program. It describes the calls made and the parameters passed.

Module Description

  • repeatedly calls Module_Y then Module_Z
  • Module_X • passes a parameter of type REAL to Module_Y

  • passes two parameters of type INTEGER to Module_Z

Module_Y calls either Module_YA or Module_YB Module_Z called with two parameters of type INTEGER

Module_YA

  • called with a parameter of type REAL
  • parameter is passed by reference

Module_YB

  • called with a parameter of type INTEGER
  • returns a BOOLEAN value

Complete the structure chart to include the information given about the five modules.

Module_X

Module_Y Module_Z

Module_YA Module_YB

[5]

Question 9

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

Keep practising this topic