Question 6(c)(iv) 2015 · October-November · Paper 23 · 2 marks
Reveal official mark-scheme answer
Official answer for Question 6
Part (c)
(iv)
(iv)
TaskGrid : ARRAY[1:5, 1:12] OF BOOLEAN
Show text version of question
Question 6
Part (c)
(iv)
Question 6
A firm employs five staff who take part in a training programme. Each member of staff must
complete a set of twelve tasks which can be taken in any order. When a member of staff successfully completes a task, this is recorded.
To test the code, the programmer makes the program generate test data.
The program generates pairs of random numbers:
- the first, in the range, 1 to 5 to represent the member of staff
- the second, in the range, 1 to 12 to represent the task
Each pair of numbers simulates the completion of one task by one member of staff.
(iv)
Give the global variable that needs to be declared at line 03.
.......................................................................................................................................[2]
Question 12
Why this question appears here
71% assigned-topic match · Data types and structures › Data types and records
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 9608_w15_qp_23.pdf
