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

Question 8(d) 2012 · October-November · Paper 22 · 50 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_22.pdf →

Show text version of question

Question 8

Part (d)

Question 8

[10]

Question 5

(ii)

Explain why 487HIRE is an invalid car 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)

Eventually the software will be subject to alpha testing and beta testing.

Soni is planning each of these testing stages for this software.

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

(i)

Alpha testing

who

when

purpose

[3]

(ii)

Beta testing

who

when

purpose

[3]

Question 6

2 Super Cars owns a rectangular car park with 25 rows; each row has 4 parking spaces. For Each car is always parked in the same space. Examiner's Use The array ParkingSpace[25,4] stores the car registrations. Soni uses a flowchart to help him design a module to populate the array with the car registrations. Input is terminated using the rogue value “00HIRE”.

Row ← 1

No Row <= 25? To rest of program

Yes

Position ← 1

No Position <= 4?

Yes

Input CarReg

No CarReg <> “00HIRE”? To rest of program

Yes

ParkingSpace[Row, Position] ← CarReg

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 stepping can be used when developing a program.

[4]

Question 11

3 Super Cars will store the data in files. For Examiner's Use

Part (a)

One file will store the following data:

  • car registration
  • make of car
  • date car bought
  • whether on hire or not

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

Field Name Data Type Field Size (in bytes)

CarReg

Make

DateBought

OnHire

[4]

Part (b)

Estimate the size, in kilobytes, of the file if it stores the details of 100 cars. Show your

working.

[4]

Question 12

Part (c)

(i)

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

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

Programming language

Code

[5]

(ii)

Car records are stored in a file SuperCars.

Write a procedure, AddCar(), to add a record to the end of the file. The record is passed as the parameter. You should assume that the file is not already in use.

[5]

Question 13

Part (d)

A parameter can be passed by value or by reference. For

Examiner's Use Describe each method.

By value

By reference

[4]

4 Super Cars will need a printed report that shows how many times the top 10 cars have been hired in a given month, and the income that each generated.

Design the layout of the report.

[6]

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

Keep practising this topic