Past-paper question · 2022 October-November · Paper 22 · Q1(a)(i)

Question 1(a)(i) 2022 · October-November · Paper 22 · 2 marks

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

Official answer for Question 1

Part (a)

(i)

✓
Many correct answers, the name used must be meaningful. The name given is an example only.

Question 2

✓
One mark per mark point, max two
✓
•
✓
Constant NumberDays …
✓
•
✓
… 14
✓
Value
✓
Task 1 – setting up the booking system
✓
Set up suitable data structures to store the car licence numbers and names of visitors who have booked car parking
✓
spaces. The data structures should have sufficient capacity to store data for each of the 20 parking spaces for a static
✓
period of two weeks. Allow a visitor to request a parking space on any day within the two-week period by entering a
✓
number between 1 and 14, inclusive. The system will check that there are spaces available on the day requested, and if
✓
so, will ask the visitor to enter their name and car licence number. This data will be stored in the data structures
✓
representing the first available parking space for the day requested. The visitor will be told the number of their parking
✓
space.
✓
At the end of the two-week period, allow all of the data to be deleted ready for the next two-week period.

Mark scheme 0478_w22_ms_22.pdf →

Show text version of question

Question 1

Part (a)

(i)

Question 1

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

(i)

Identify one constant you could have used for Task 1 and state its value.

Constant ............................................................................................................................

Value .................................................................................................................................

[2]
Topic relevance

Why this question appears here

83% 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_w22_qp_22.pdf

Keep practising this topic