Past-paper question · 2025 May-June · Paper 23 · Q7(a)(ii)

Question 7(a)(ii) 2025 · May-June · Paper 23 · 1 mark

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

Official answer for Question 7

Part (a)

(ii)

✓
DAYINDEX(LastVisitDate) = DAYINDEX(TODAY())

Question 1

✓
9618/23
✓
Cambridge International AS & A Level – Mark Scheme
✓
May/June 2025
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 9618_s25_ms_23.pdf →

Show text version of question

Question 7

Part (a)

(ii)

Question 7

A program is being developed to implement a customer loyalty scheme for a coffee shop.

The programmer has decided that the following data items need to be stored for each customer:

Data item Description

customer ID a unique six-digit string

loyalty points an integer value that depends on how often the customer visits the coffee shop

last visit date the date the customer last visited the coffee shop

The programmer has defined a program module:

Module Description

  • called with two parameters:
  • 1. loyalty points of type INTEGER 2. last visit date of type DATE

  • change the loyalty points:

increase by four if the last visit date and the current date are in the UpdateVisit() same month otherwise increase by one

  • change the last visit date to the current date
  • the changed values must be available to the code that follows the call

to UpdateVisit()

(ii)

The programmer decides to amend the UpdateVisit() module so that loyalty points

are further increased if the customer visits the coffee shop the same day of the week as their last visit.

Write the pseudocode for this condition.

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

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

[1]

Question 16

, ,

Topic relevance

Why this question appears here

71% assigned-topic match · Programming › Constructs

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

Keep practising this topic