Question 1(a) 2022 · February-March · Paper 22 · 6 marks
Reveal official mark-scheme answer
Official answer for Question 1
Part (a)
Question 6
Question 4
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 ..........................................................................................................
...................................................................................................................................................
...................................................................................................................................................
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
