Past-paper question · 2013 October-November · Paper 23 · Q3(b)

Question 3(b) 2013 · October-November · Paper 23 · 5 marks

Original past-paper question for 3(B)
Original past-paper question for 3(B)
Original past-paper question for 3(B)
Reveal official mark-scheme answer Official mark-scheme answer for 3(B)

Official answer for Question 3

Part (b)

Part (b)

–

✓
title
✓
–
✓
date
✓
–
✓
heading for ID
✓
–
✓
grouping
✓
–
✓
heading for keeping place
✓
–
✓
use of all page
✓
[max 5]

Mark scheme 9691_w13_ms_23.pdf →

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.

[5]

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.

A
piece of equipment with equipment ID Catalog[X] is kept at KeptIn[X] where X is an

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

Topic relevance

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

Keep practising this topic