Past-paper question · 2025 May-June · Paper 42 · Q3(d)(iii)

Question 3(d)(iii) 2025 · May-June · Paper 42 · 2 marks

Original past-paper question for 3(D)(III)
Original past-paper question for 3(D)(III)
Original past-paper question for 3(D)(III)
Original past-paper question for 3(D)(III)
Original past-paper question for 3(D)(III)
Reveal official mark-scheme answer Official mark-scheme answer for 3(D)(III)

Official answer for Question 3

Part (d)

(iii)

Question 1

mark each:

Question 2

  • All three messages accurate with all relevant values
  • … showing correctly updated territory for Nighteyes and words for Chewie
✓
e.g.

Mark scheme 9618_s25_ms_42.pdf →

Show text version of question

Question 3

Part (d)

(iii)

Question 3

A program stores data about animals using Object‑Oriented Programming (OOP).

The class Animal stores the data about animals.

Animal Name : String stores the name of the animal

Sound : String stores the sound the animal makes

Size : Integer stores the size of the animal as an integer between 1 (smallest) and 10 (largest)

Intelligence : Integer stores the intelligence of the animal as an integer between 1 (least) and 10 (most) Constructor() initialises all attributes to its parameter values

Description() returns a string message that contains the data from the attributes

(iii)

Test your program.

Take a screenshot of the output(s).

Save your program.

Copy and paste the screenshot into part 3(d)(iii) in the evidence document.

[2]

Permission to reproduce items where third‑party owned material protected by copyright is included has been sought and cleared where possible. Every reasonable effort has been made by the publisher (UCLES) to trace copyright holders, but if any items requiring clearance have unwittingly been included, the publisher will be pleased to make amends at the earliest possible opportunity.

To avoid the issue of disclosure of answer‑related information to candidates, all copyright acknowledgements are reproduced online in the Cambridge Assessment International Education Copyright Acknowledgements Booklet. This is produced for each series of examinations and is freely available to download at www.cambridgeinternational.org after the live examination series.

Cambridge Assessment International Education is part of Cambridge Assessment. Cambridge Assessment is the brand name of the University of Cambridge Local Examinations Syndicate (UCLES), which is a department of the University of Cambridge.

Topic relevance

Why this question appears here

71% assigned-topic match · Programming › Constructs

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 9618_s25_qp_42.pdf

Keep practising this topic