Question 1(b)(v) 2019 · May-June · Paper 42 · 4 marks
Reveal official mark-scheme answer
Official answer for Question 1
Part (b)
(v)
Question 1
mark per bullet point
Question 4
Show text version of question
Question 1
Part (b)
(v)
Question 1
A company wants an online marking system for an examination.
The company wants to implement a program for the marking system. It will do this with object-oriented programming (OOP).
Many candidates take the examination. Each examination paper is given a PaperID that is made up of the centre (school) number followed by the candidate number.
Each examination paper is awarded a grade.
The following diagram shows the design for the ExaminationPaper class. This includes the attributes and methods.
ExaminationPaper FinalMark : INTEGER // maximum 2 digits, initialised to 0 Grade : STRING // "Pass", "Merit", "Distinction" // or "Fail", initialised to "Fail" PaperID : STRING // centre number followed by the // candidate number, for example // "ZZ00991001" Create() // creates and initialises a new instance // of the ExaminationPaper class using // language-appropriate constructor SetFinalMark() // checks that the mark parameter has a // valid value, if so, assigns it to // FinalMark SetGrade() // sets Grade based on FinalMark GetFinalMark() // returns FinalMark GetGrade() // returns Grade GetPaperID() // returns PaperID
Question 5
(v)
Write program code for the method:
SetGrade(DistMark, MeritMark, PassMark : INTEGER)
Use the properties in the original class definition.
Grades are awarded as follows:
Grade Criteria Distinction >= DistMark Merit >= MeritMark Pass >= PassMark Fail < PassMark
Programming language .....................................................................................................
Program code
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
.....................................................................................................................................
Question 9
Why this question appears here
98% assigned-topic match · Further programming › Programming paradigms
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_s19_qp_42.pdf
