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


Official answer for Question 4
Part (b)
Question 1
mark per bullet to max 5
Question 5
Show text version of question
Question 4
Part (b)
Question 4
X-Games is an international extreme sports 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 (b)
Write program code for the Member class.
Programming language ............................................................................................................
Program code
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...............................................................................................................................................[5]
Question 15
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
