Past-paper question · 2012 October-November · Paper 23 · Q8(d)

Question 8(d) 2012 · October-November · Paper 23 · 51 marks

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

The answer for this question is in the official mark scheme: open the mark scheme.

Mark scheme 9691_w12_ms_23.pdf →

Show text version of question

Question 8

Part (d)

Question 8

[10]

Question 5

(ii)

Explain why 487BK is an invalid bike registration. For

Examiner's Use

State the line number of your code in part (e)(i) which detects that it is invalid.

Line Number

[2]

Part (f)

The code in part (e)(i) will be subject to black box testing and white box testing.

Explain how this testing will be carried out.

(i)

Black box testing

[3]

(ii)

White box testing

[3]

Question 6

2 Super Bikes owns a rectangular parking area with 30 rows; each row has 4 bike spaces. For Each bike is always parked in the same space. Examiner's Use The array BikeSpace[30,4] stores the bike registrations. Soni uses a flowchart to help him design a module to populate the array with the bike registrations. Input is terminated using the rogue value “BK000”.

Row ← 1

No Row <= 30? To rest of program

Yes

Position ← 1

No Position <= 4?

Yes

Input BikeReg

No BikeReg <> “BK000”? To rest of program

Yes

BikeSpace[Row, Position] ← BikeReg

Position ← Position + 1

Row ← Row + 1

Question 7

Part (d)

There are a number of debugging tools associated with high-level languages.

Describe how breakpoints and a variable watch can be used when developing a program.

[4]

Question 11

3 Super Bikes will need a printed report that shows all the hires made in a given month, For grouped by insurance rating (A, B or C) and the income each hire generated. The report Examiner's Use should include the total income figure for each insurance group.

Design the layout of the report.

[7]

4 Super Bikes will store the data in files.

Part (a)

One file will store the following data:

  • bike registration
  • purchase cost of bike
  • insurance rating (A, B or C only)
  • whether or not service is due

Complete the following table. Use a single value only for Field Size.

Field Name Data Type Field Size (in bytes)

BikeReg

PurchaseCost

InsuranceRating

ServiceDue

[4]

Question 12

Part (b)

Estimate the size, in kilobytes, of the file if it stores the details of 1000 bikes. Show your For

working. Examiner's Use

[4]

Part (c)

(i)

Using a high-level programming language, define a bike record with identifier

HireBike and the fields listed in part (a).

Programming language

Code

[5]

Question 13

(ii)

Bike records are stored in a file SuperBikes. For

Examiner's Use Write the code to read every bike record, count the number of bikes where service is due and output the result. You should assume that the file is not already in use.

[9]

Question 14

Question 15

Question 16

reasonable effort has been made by the publisher (UCLES) to trace copyright holders, but if any items requiring clearance have unwittingly been included, the publisher will be pleased to make amends at the earliest possible opportunity.

University of Cambridge International Examinations is part of the Cambridge Assessment Group. Cambridge Assessment is the brand name of University of Cambridge Local Examinations Syndicate (UCLES), which is itself a department of the University of Cambridge.

Topic relevance

Why this question appears here

75% assigned-topic match · Hardware › Logic gates and logic circuits

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_w12_qp_23.pdf

Keep practising this topic