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

Question 4(d)(i) 2018 · October-November · Paper 42 · 3 marks

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

Official answer for Question 4

Part (d)

(i)

Question 1

mark per bullet point:

Question 3

✓
•
✓
Assignment to Acrobat_1
✓
•
✓
Creates instance of Acrobat
✓
•
✓
Correct five parameter values
✓
Example Python:
✓
Acrobat_1 = Acrobat("Alex","Tan","Amazing Alex","Popcorn Seller",
✓
True)
✓
Example VB.NET:
✓
Acrobat_1 = New Acrobat("Alex","Tan","Amazing Alex","Popcorn Seller",
✓
True)
✓
Example Pascal:
✓
Acrobat_1 := Acrobat("Alex","Tan","Amazing Alex","Popcorn Seller",
✓
True)

Mark scheme 9608_w18_ms_42.pdf →

Show text version of question

Question 4

Part (d)

(i)

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. Information about a performer is as follows:

Amazing Alex (real name Alex Tan) is an acrobat. Fire is part of Alex’s act. When not performing, Amazing Alex is a popcorn seller.

(i)

Write program code to create an instance of an object with the identifier Acrobat_1.

All attributes of the instance should be fully initialised.

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

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

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

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

[3]
Topic relevance

Why this question appears here

92% 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

Keep practising this topic