Past-paper question · 2015 October-November · Paper 23 · Q6(d)

Question 6(d) 2015 · October-November · Paper 23 · 4 marks

Original past-paper question for 6(D)
Original past-paper question for 6(D)
Original past-paper question for 6(D)
Original past-paper question for 6(D)
Original past-paper question for 6(D)
Original past-paper question for 6(D)
Reveal official mark-scheme answer Official mark-scheme answer for 6(D)Official mark-scheme answer for 6(D)

Official answer for Question 6

Part (d)

Part (d)

Pseudocode …

✓
(SELECT) CASE (OF) + ENDCASE using StaffNo
✓
1 mark
✓
1 mark
✓
(CASE) 1: StaffName ← "Sadiq"

Question 1

✓
(CASE) 2: StaffName ← "Smith"
✓
(CASE) 3: StaffName ← "Ho"
✓
(CASE) 4: StaffName ← "Azmah"
✓
(CASE) 5: StaffName ← "Papadopolis"
✓
(all four cases …)

Question 1

✓
ENDCASE // ENDSELECT
[4]
✓
Visual Basic
✓
Select Case StaffNo
✓
Case 1
✓
StaffName = "Sadiq"
✓
Case 2
✓
StaffName = "Smith"
✓
Case 3
✓
StaffName = "Ho"
✓
Case 4
✓
StaffName = "Azmah"
✓
Case 5
✓
StaffName = "Papadopolis"
✓
End Select
✓
Mark Scheme
✓
Syllabus
✓
Paper
✓
Cambridge International AS/A Level – October/November 2015
✓
9608

Question 23

Mark scheme 9608_w15_ms_23.pdf →

Show text version of question

Question 6

Part (d)

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.

A
program is to be produced to record the completion of tasks for the five members of staff.

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.

Part (d)

Line 17 in the pseudocode outputs the staff number and the task number.

Staff number Staff name

A
new requirement is to display the name of the

member of staff given in the table. 1 Sadiq 2 Smith Write a CASE structure using variable StaffNum. 3 Ho Assign to a new variable StaffName the appropriate 4 Azmah staff name. 5 Papadopoulos

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...............................................................................................................................................[4]

Question 13

Question 7 begins on page 14.

Question 14

Topic relevance

Why this question appears here

71% assigned-topic match · Programming › Constructs

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

Keep practising this topic