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
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