Question 1(a) 2016 · October-November · Paper 23 · 8 marks
Reveal official mark-scheme answer
Official answer for Question 1
Part (a)
Part (a)
Many correct answers, the identifiers must be meaningful. These are examples only.
- 1 mark for suitable name
- 1 mark for a suitable data structure, data type and use
- MaxVotes, constant, integer, maximum number of votes that can be cast
- CandidateName, array, string, name of candidate
- NoCandidates, variable, integer, number of candidates
- TotalNoCandidateVotes, array, integer, total number of votes cast
Show text version of question
Question 1
Part (a)
All variables, constants and other identifiers should have meaningful names.
For four of the variables, constants or arrays that you used in Task 1, state the name, data structure, data type and its use.
Name 1 ......................................................................................................................................
Data structure ............................................................................................................................
Data type ...................................................................................................................................
Use ............................................................................................................................................
Name 2 ......................................................................................................................................
Data structure ............................................................................................................................
Data type ...................................................................................................................................
Use ............................................................................................................................................
Name 3 ......................................................................................................................................
Data structure ............................................................................................................................
Data type ...................................................................................................................................
Use ............................................................................................................................................
Name 4 ......................................................................................................................................
Data structure ............................................................................................................................
Data type ...................................................................................................................................
Use ........................................................................................................................................[8]
Question 4
Why this question appears here
99% 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_w16_qp_23.pdf
