Computer Science · May / June 2025 · Paper 2 TZ3 HL · Question 15
IBCS
As printed in the paper
The question as text
15. The owner of the art shop would like the artworks separated into three different categories: paintings, sculptures, and performances. Three classes, Painting, Sculpture, and Performance, are created for the three different categories of artwork. The variable typeOfPaint belongs to Painting. It holds the name of the type of paint used. The variable weight belongs to Sculpture. It holds the weight of a sculpture. The variable needForSound belongs to Performance. It states whether sound is needed for the performance. The other variables are common to all three classes.
Read automatically from the paper; the printed page above is exact.
Show the answer and mark scheme
15(a)(i)[1]
15(a)(ii)[1]
15(a)(iii)[1]
15(b)(i)[4]
15(b)(ii)[3]
15(c)[6]
Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.

