Past-paper question · 2019 May-June · Paper 42 · Q1(b)(vi)

Question 1(b)(vi) 2019 · May-June · Paper 42 · 8 marks

Original past-paper question for 1(B)(VI)
Original past-paper question for 1(B)(VI)
Original past-paper question for 1(B)(VI)
Original past-paper question for 1(B)(VI)
Original past-paper question for 1(B)(VI)
Original past-paper question for 1(B)(VI)
Reveal official mark-scheme answer Official mark-scheme answer for 1(B)(VI)

Official answer for Question 1

Part (b)

(vi)

Question 1

mark per bullet point to max 8

Question 8

✓
•
✓
Procedure Main header and close (where appropriate)
✓
•
✓
Input candidate number, centre number and mark with suitable prompt(s)
✓
•
✓
Create instance of ExaminationPaper named ThisPaper«
✓
•
✓
« with input parameters candidate number and centre number
✓
•
✓
Call SetFinalMark for ThisPaper with mark input as parameter
✓
•
✓
«storing/using return value
✓
•
✓
«outputting a message if this is valid or invalid
✓
•
✓
Call SetGrade for ThisPaper with correct thresholds
✓
•
✓
Output grade for ThisPaper «
✓
•
✓
«using .GetGrade
✓
PYTHON
✓
def main():
✓
candidateNumber = input("Please enter the candidate number")
✓
centreNumber = input("Please enter the centre number")
✓
mark = input("Please enter the mark")
✓
ThisPaper = ExaminationPaper(centreNumber, candidateNumber)
✓
if ThisPaper.SetFinalMark(mark) == FALSE:
✓
print("Invalid mark")
✓
else:
✓
ThisPaper.SetGrade(80, 70, 55)
✓
print(ThisPaper.GetGrade())
✓
9608/42
✓
Cambridge International AS/A Level – Mark Scheme
✓
May/June 2019
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 9608_s19_ms_42.pdf →

Show text version of question

Question 1

Part (b)

(vi)

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

(vi)

Emily is a candidate who has taken the examination paper. The grades are awarded as

follows:

Grade Criteria Distinction >= 80 Merit >= 70 Pass >= 55

The procedure Main() performs the following tasks.

  • allows the centre number, candidate number and mark to be input, with suitable
  • prompts

  • assigns an instance of ExaminationPaper to the variable ThisPaper
  • sets the mark for the object
  • sets the grade for the object
  • outputs the grade for the object

Write program code for the Main() procedure.

Programming language .....................................................................................................

Program code

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[8]

Question 10

Topic relevance

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

Keep practising this topic