Question 1(a)(i) 2016 · May-June · Paper 22 · 3 marks
Reveal official mark-scheme answer
Official answer for Question 1
Part (a)
(i)
Part (a)
(i)
Many correct answers, they must be meaningful. This is an example only.
- NumSacks, integer, number of sacks
- SacksAccepted, integer, number of sacks accepted
- TotalWeight, real, total weight of all sacks
Show text version of question
Question 1
Part (a)
(i)
All variables, constants and other identifiers should have meaningful names.
(i)
For three of the variables that you have used in Task 2, state the name, type and its use.
Variable 1 name ................................................................................................................
Type ...................................................................................................................................
Use ....................................................................................................................................
Variable 2 name ................................................................................................................
Type ...................................................................................................................................
Use ....................................................................................................................................
Variable 3 name ................................................................................................................
Type ...................................................................................................................................
Use ................................................................................................................................[3]
Why this question appears here
79% 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 2210_s16_qp_22.pdf
