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

Question 8(d)(i) 2012 · October-November · Paper 21 · 40 marks

Original past-paper question for 8(D)(I)
Original past-paper question for 8(D)(I)
Original past-paper question for 8(D)(I)
Original past-paper question for 8(D)(I)
Original past-paper question for 8(D)(I)
Original past-paper question for 8(D)(I)
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_21.pdf →

Show text version of question

Question 8

Part (d)

(i)

Question 8

[10]

Question 5

(ii)

Explain why Bike46 is an invalid bike ID. For

Examiner's Use

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

Line Number

[2]

Part (g)

(i)

Soni will need to test the logic of this program module.

State whether this is black box testing or white box testing.

[1]

(ii)

Soni is also planning to use alpha testing of the software.

Explain who will do the testing, when the testing would be carried out, and what will be the purpose of this testing stage.

who

when

purpose

[3]

Question 6

2 The company stores the bikes in bike racks. The bike racks are in 30 rows, each with 3 For places. Each bike is always kept in the same place. Examiner's Use

The array BikePlace[30,3] stores the bike ID. Soni uses a flowchart to help him design a module to populate the array with bike IDs.

Row ← 1

No Row <= 30? To rest of program

Yes

Position ← 1

No Position <= 3?

Yes

Input BikeID

BikePlace[Row, Position] ← BikeID

Position ← Position + 1

Row ← Row + 1

Question 7

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

Describe how a variable check is used.

[2]

Question 11

3 Super Bikes will need a report each month that shows how many times the 5 most used For bikes have been hired that month, the income each generated and any repairs needed. Examiner's Use

Design the layout of the report.

[7]

Question 12

4 Super Bikes will store the data in files. For Examiner's Use

Part (a)

One file will store the following data:

  • bike ID
  • bike type
  • date bought
  • currently needs repair

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

Field Name Data Type Field Size (in bytes)

BikeID

BikeType

DateBought

NeedsRepair

[4]

Part (b)

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

working.

[4]

Question 13

Part (c)

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

HireBike and the fields listed in part (a). Examiner's Use

Programming language used

Code

[5]

Part (d)

Adding a HireBike record to the file could be programmed as procedure

AddBikeRecord.

(i)

Explain why adding a HireBike record to the file would not be programmed as a

function.

[2]

Question 14

Topic relevance

Why this question appears here

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

Keep practising this topic