Past-paper question · 2013 October-November · Paper 21 · Q3(c)

Question 3(c) 2013 · October-November · Paper 21 · 27 marks

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

Official answer for Question 3

Part (c)

Part (c)

–

✓
procedures
✓
–
✓
functions
✓
–
✓
block structures
✓
[max 2]

Mark scheme 9691_w13_ms_21.pdf →

Show text version of question

Question 3

Part (c)

Question 3

[6]

Part (f)

Juan wants to use an array, NumberOfCopies to store whole numbers.

In a high-level programming language:

  • declare the array of size 5000
  • initialise the array to 0

Programming language

Code

[4]

Question 7

Part (c)

In a high-level programming language write code that processes the variable For

ResourceID and outputs where the resource is kept. Use a CASE/SELECT Examiner's Use statement.

Programming language

Code

[6]

Question 10

Question 3

Part (a)

An interface is to be designed to add a new resource. The user must: For

Examiner's Use

  • enter the name of the resource
  • choose the type of the resource
  • select the purchase date

The program generates and displays:

  • a new resource ID
  • where the resource is kept

The user must be able to save the data, clear/cancel the input, and move on to entering another resource.

Design a graphical user interface (GUI). Pay particular attention to layout and effective use of the controls you would expect to find in a GUI.

Add new resource(s)

[6]

Question 11

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 resource ID and where the resource is kept. The resources will be grouped by type.

Design the report layout.

[5]

Question 12

An array, MyResource, size 5000, data type INTEGER, is used to store the resource IDs. For An array, KeptIn, size 5000, data type STRING, is used to store where a resource is kept. Examiner's Use

A
resource with resource ID MyResource[X] is kept at KeptIn[X], where X is an integer

variable.

MyResource KeptIn 1 … 1 ... 2 … 2 ... . . . . . . . . . .

X 2408 X Cabinet2 Drawer1

. . . . . . . . . . . . . . . . 5000 … 5000 …

Juan writes the pseudocode that searches MyResource for a given resource ID and outputs where the resource is kept.

flag ← 0 INPUT P FOR X ← 1 TO 5000 IF myresource[X] = P THEN OUTPUT keptin[X] flag ← 1 ENDIF NEXT IF flag = 0 THEN OUTPUT "Not Found" ENDIF

Question 13

Part (c)

Give four techniques that should have been applied to the pseudocode to make it For

easier to understand. Examiner's Use

Question 1

Question 2

Question 3

Topic relevance

Why this question appears here

72% 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_21.pdf

Keep practising this topic