Question 4(b) 2018 · October-November · Paper 42 · 5 marks
Reveal official mark-scheme answer


Official answer for Question 4
Part (b)
Question 1
mark per bullet point to max 5:
Question 5
- class declaration (and end where applicable)
- declaring five attributes as private (with string data types where applicable)
- (language specific) constructor method (and end where applicable)
- « with five parameters
- initialising five attributes « « using parameters
- procedure header (and close) for EditSecondaryRole // procedure header (and close) for EditStageName …
- «takes parameter
- …EditSecondaryRole replaces SecondaryRole with parameter
- …EditStageName replaces StageName with parameter
Show text version of question
Question 4
Part (b)
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 (b)
Write program code for the Performer class.
Programming language ............................................................................................................
Program code
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
..............................................................................................................................................
Question 10
Why this question appears here
82% assigned-topic match · Hardware › Logic gates and logic circuits
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
