Past-paper question · 2018 October-November · Paper 42 · Q4(a)

Question 4(a) 2018 · October-November · Paper 42 · 4 marks

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

Official answer for Question 4

Part (a)

Question 1

mark per bullet point:

Question 4

✓
•
✓
Clown has attributes Item and MusicalInstrument with appropriate data types
✓
•
✓
Aerial has attribute Role/Type with appropriate data type.
✓
•
✓
Clown and Aerial have method PerformerInfo()/DisplayInfo() or equivalent.
✓
•
✓
Acrobat, Clown and Aerial inheriting from Performer.
✓
Performer
✓
Acrobat
✓
FirstName: STRING
✓
UseFire: Boolean
✓
LastName: STRING
✓
SecondaryRole: STRING
✓
Constructor()
✓
StageName: STRING
✓
PerformerInfo()
✓
Type: STRING
✓
Constructor()
✓
EditSecondaryRole()
✓
EditStageName()
✓
Clown
✓
Aerial
✓
Item: STRING
✓
Role: STRING
✓
MusicalInstrument: STRING
✓
Constructor()
✓
Constructor()
✓
PerformerInfo()
✓
PerformerInfo()
✓
9608/42
✓
Cambridge International AS/A Level – Mark Scheme
✓
October/November 2018
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 9608_w18_ms_42.pdf →

Show text version of question

Question 4

Part (a)

Question 4

A circus is made up of performers. There are three types of performer: clown, acrobat and aerial.

The following data are stored for each performer.

  • First name
  • Last name
  • Secondary role (that can be edited)
  • Stage name (that can be edited)
  • Type of performer (PerfType)

The following statements apply to performers.

  • An acrobat may or may not use fire in his or her act.
  • An aerial performer can be one of two types: either catcher or flyer.
  • Each clown has an item, such as a water-spraying flower or a unicycle.
  • Each clown also has a musical instrument, such as a guitar or an oboe.

Each of the three types of performer has a method that will display all of the information about that performer in a specific format. For example:

Sally Superstar (real name Sally Smith) is an acrobat. Fire is part of Sally Superstar’s act. When not performing, Sally Superstar is a set changer.

Part (a)

Complete the following class diagram to show the attributes, methods and inheritance for

the program.

You do not need to write the get and set methods.

Performer Acrobat FirstName : STRING UseFire : BOOLEAN LastName : STRING SecondaryRole : STRING Constructor() StageName : STRING PerformerInfo() PerfType : STRING Constructor() EditSecondaryRole() EditStageName()

Clown Aerial

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

............................................................. Constructor() Constructor()

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

[4]

Question 9

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

Keep practising this topic