Past-paper question · 2022 February-March · Paper 22 · Q1(a)

Question 1(a) 2022 · February-March · Paper 22 · 6 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 6

✓
One mark per mark point, max three
✓
Constant name
✓
MaxNumberPlayers
✓
Value

Question 4

✓
Why constant used This number will not change whilst the program is running
✓
One mark per mark point, max three
✓
Variable name
✓
NumberOfPlayers
✓
Data type
✓
Integer/int
✓
Why variable used A value between 2 and 4 inclusive is input and stored at the start of the round

Mark scheme 0478_m22_ms_22.pdf →

Show text version of question

Question 1

Part (a)

Question 1

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

Part (a)

State one constant and one variable that you could have used for Task 1. Give the value

that would be assigned to the constant. Give the data type for the variable. Explain why the constant was used rather than a variable and explain why the variable was used rather than a constant.

Constant name .........................................................................................................................

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

Why a constant was used .........................................................................................................

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

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

Variable name ...........................................................................................................................

Data type ..................................................................................................................................

Why a variable was used ..........................................................................................................

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

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

[6]
Topic relevance

Why this question appears here

96% 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_m22_qp_22.pdf

Keep practising this topic