Past-paper question · 2022 May-June · Paper 23 · Q1(a)

Question 1(a) 2022 · May-June · Paper 23 · 4 marks

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

Official answer for Question 1

Part (a)

✓
Many correct answers, the names used must be meaningful. The names given are examples only.

Question 4

✓
One mark per mark point, max four
✓
Variable ClientName
✓
Use
✓
Storing the name of the person making the booking
✓
Array
✓
BookingsLarge[ ]
✓
Use
✓
Storing the bookings for the large meeting room
✓
Task 1 – setting up a booking system structure for the meeting rooms
✓
Set up suitable data structures for each of the three meeting rooms to store:
✓
when it is booked during a fixed eight-week period
✓
the client’s name (the person making the booking)
✓
a unique booking code
✓
the cost of the booking.
✓
Task 2 – booking a meeting room
✓
Extend the program in Task 1 to enable bookings to be made so that the client enters their name, the meeting room
✓
required and the day of the booking. After the data has been entered, the program should check if the requested day is
✓
available for the required meeting room and if not, the client should be allowed to enter an alternative day or exit the
✓
program.
✓
If the requested day is available, the booking details and cost of the booking should be output for the client to confirm.
✓
Once confirmed, a unique booking code should be generated and stored in both the appropriate meeting room data
✓
structure and the unique booking code data structure. The client’s name and cost of the booking should be stored in the
✓
appropriate data structures set up in Task 1.
✓
Bookings of more than one day must be entered as separate single day bookings.
✓
0478/23
✓
Cambridge IGCSE – Mark Scheme
✓
May/June 2022
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 0478_s22_ms_23.pdf →

Show text version of question

Question 1

Part (a)

Question 1

All variables, constants and other identifiers must have meaningful names.

Part (a)

Identify one variable and one array you could have used for Task 1 or Task 2.

Give the use for the variable and array.

Variable .....................................................................................................................................

Use ...........................................................................................................................................

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

Array .........................................................................................................................................

Use ...........................................................................................................................................

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

[4]
Topic relevance

Why this question appears here

71% assigned-topic match · Programming › Programming concepts

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 0478_s22_qp_23.pdf

Keep practising this topic