Question 1(c)(ii) 2018 · May-June · Paper 32 · 3 marks
Reveal official mark-scheme answer
Official answer for Question 1
Part (c)
(ii)
Question 3
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
DECLARE CollegeStudent : StudentRecord
Students sit one exam in every course they take.
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
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
