Past-paper question · 2015 May-June · Paper 33 · Q4(b)(ii)

Question 4(b)(ii) 2015 · May-June · Paper 33 · 3 marks

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

Official answer for Question 4

Part (b)

(ii)

(ii)

✓
StationID is hashed to produce home location

Question 1

✓
If home location is free insert record

Question 1

✓
Else use overflow method to find free location

Question 1

✓
Total: 11
✓
Mark Scheme
✓
Syllabus
✓
Paper
✓
Cambridge International A Level – May/June 2015
✓
9608

Question 33

Mark scheme 9608_s15_ms_33.pdf →

Show text version of question

Question 4

Part (b)

(ii)

Question 4

Part (b)

Temperature data from a number of weather stations are to be processed by a program.

The following data are to be stored: • weather station ID (a unique four-letter code) • latitude (to 2 decimal places) • average temperature (to the nearest whole number) for each year from 2001 to 2015 inclusive

A
programmer designs a composite data type WeatherStation. A variable of this type can

be used to store all the data for one particular station.

(ii)

The programmer decides to store all the data in a file. The number of weather stations could grow to reach 20000, but not all stations will be present at first. The programmer decides on random organisation for the file. Describe three steps which show how a new weather station record is added to the file. 1 ........................................................................................................................................ ........................................................................................................................................... 2 ........................................................................................................................................ ........................................................................................................................................... 3 ........................................................................................................................................ .......................................................................................................................................[3]

Question 10

Topic relevance

Why this question appears here

71% assigned-topic match · Programming › Constructs

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 9608_s15_qp_33.pdf

Keep practising this topic