Past-paper question · 2021 May-June · Paper 23 · Q2(b)

Question 2(b) 2021 · May-June · Paper 23 · 2 marks

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

Official answer for Question 2

Part (b)

Question 2

✓
PROCEDURE LoanReturn (LoanID, BookID : STRING,
✓
BYREF Fine : REAL)
✓
One mark for each underlined part
✓
9618/23
✓
Cambridge International AS & A Level – Mark Scheme
✓
May/June 2021
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 9618_s21_ms_23.pdf →

Show text version of question

Question 2

Part (b)

Part (b)

The definition for module LoanReturn() is amended as follows:

Module name Description Called with parameters LoanID, BookID and Fine LoanReturn() The module code checks whether the book has been returned on time and then assigns a new value to Fine

  • LoanID and BookID are of type STRING
  • Fine is of type REAL

Write the pseudocode header for the amended module LoanReturn().

...................................................................................................................................................

.............................................................................................................................................

[2]

Question 6

Topic relevance

Why this question appears here

71% 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 9618_s21_qp_23.pdf

Keep practising this topic