Past-paper question · 2016 October-November · Paper 23 · Q1(a)

Question 1(a) 2016 · October-November · Paper 23 · 8 marks

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)

Part (a)

Many correct answers, the identifiers must be meaningful. These are examples only.

✓
There are two marks available for each identifier:
  • 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
[8]

Mark scheme 2210_w16_ms_23.pdf →

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

Topic relevance

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

Keep practising this topic