Past-paper question · 2018 May-June · Paper 32 · Q1(c)(ii)

Question 1(c)(ii) 2018 · May-June · Paper 32 · 3 marks

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

Official answer for Question 1

Part (c)

(ii)

✓
Any 3 from, 1 mark per bullet

Question 3

✓
•
✓
StudentID/key field is hashed to produce home location
✓
•
✓
If home location is free, insert record/data
✓
•
✓
Else use overflow method to find free location to store record / data
✓
•
✓
If no free location available then file is full and record/data cannot be stored
✓
9608/32
✓
Cambridge International AS/A Level – Mark Scheme
✓
May/June 2018
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 9608_s18_ms_32.pdf →

Show text version of question

Question 1

Part (c)

(ii)

Question 1

Data types can be defined in a programming language.

The data type, StudentRecord, is defined by the code:

TYPE StudentRecord DECLARE StudentID : INTEGER DECLARE StudentFirstName : STRING DECLARE StudentSurname : STRING DECLARE StudentDOB : DATE DECLARE StudentCourse : ARRAY[1:10] OF STRING ENDTYPE

A
variable, CollegeStudent, is declared with the code:

DECLARE CollegeStudent : StudentRecord

A
programmer is asked to write a program to process the assessment data for each student.

Students sit one exam in every course they take.

A
composite data type, StudentAssessment, needs to be defined with the following three

fields.

  • a student assessment code (a unique code of three letters and two digits)
  • the marks for the six exams
  • the average mark of the six exams

(ii)

Data about all students and their assessments are stored in a file that uses random

organisation. The StudentID is used as the key field.

The program allows a user to enter data for a new student.

Explain how the program adds the new data to the file.

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

.......................................................................................................................................[3]

Question 4

Topic relevance

Why this question appears here

82% assigned-topic match · Data types and structures › Data types and records

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

Keep practising this topic