Past-paper question · 2018 May-June · Paper 42 · Q4(a)

Question 4(a) 2018 · May-June · Paper 42 · 3 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:

Question 3

  • Team methods
  • Official attributes
  • Two inheritance arrows or containment
✓
Member
✓
Team
✓
FirstName: STRING
✓
TeamName: STRING
✓
LastName: STRING
✓
TeamList: ARRAY OF Member
✓
DateOfBirth: DATE
✓
Gender: STRING
✓
Constructor()
✓
Constructor()
✓
Introduction()
✓
AddMember()
✓
DisplayFullnameAndDateOfBirth()
✓
DeleteMember()
✓
Competitor
✓
Official
✓
Sport: STRING
✓
JobTitle: STRING
✓
FirstAidTrained: BOOLEAN/STRING
✓
Constructor()
✓
Constructor()
✓
Introduction()
✓
DisplayJobTitle()
✓
9608/42
✓
Cambridge International AS/A Level – Mark Scheme
✓
May/June 2018
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 9608_s18_ms_42.pdf →

Show text version of question

Question 4

Part (a)

Question 4

X-Games is an international extreme sports competition.

A
program will store and process data about the teams in the competition.
  • Each team is made up of members.
  • Members can be added and removed from each team.
  • Each member has a first name, last name, date of birth and gender.
  • Each member can be an official or a competitor.
  • Each official has a job title and may be first-aid trained.
  • Each competitor takes part in one sport.

The program is written using object-oriented programming.

The program can output the full name and date of birth of any member. For example, “Nadia Abad 16/05/1995”

An introduction about a team member can be output using their name. For example, “Hello, I’m Nadia Abad”.

The program outputs a different version of the introduction for a competitor. This version includes the competitor’s sport. For example, “Hello, I’m Sally Jones and my sport is Skateboard Park.”

Question 13

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.

Member Team FirstName : STRING TeamName : STRING

LastName : STRING TeamList : ARRAY OF Member

DateOfBirth : DATE

Gender : STRING Constructor() Constructor()

Introduction() ......................................................................

DisplayFullnameAndDateOfBirth() ......................................................................

Competitor Official Sport : STRING ..........................................................................

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

Introduction() DisplayJobTitle()

[3]

Question 14

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

Keep practising this topic