Question 3(b) 2013 · October-November · Paper 23 · 5 marks
Reveal official mark-scheme answer
Official answer for Question 3
Part (b)
Part (b)
–
Show text version of question
Question 3
Part (b)
Part (b)
A report will show all the items that have been entered on a particular day. For
Examiner's Use It will show each equipment ID and where the equipment is kept. Equipment for the same science subject will be grouped together.
Design the report layout.
Question 14
An array, Catalog, size 8 000, data type INTEGER, is used to store the equipment IDs. For An array, KeptIn, size 8 000, data type STRING, is used to store where a piece of Examiner's Use equipment is kept.
integer variable.
Catalog KeptIn 1 … 1 ... 2 … 2 ... . . . . . . . . . .
X 4080 X Chem Lab - Locked
. . . . . . . . . . . . . . . . 8 000 … 8 000 …
Ashvin writes the pseudocode that searches Catalog for a given equipment ID. The output is to be where the piece of equipment is kept.
flag ← 0 INPUT P FOR X ← 1 TO 8 000 IF catalog[X] = P THEN OUTPUT keptin[X] flag ← 1 ENDIF NEXT IF flag = 0 THEN OUTPUT “Not Found” ENDIF
Question 15
Why this question appears here
82% assigned-topic match · Programming › Programming basics
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 9691_w13_qp_23.pdf
