Note AcademyNote Academy

Computer Science · May / June 2023 · Paper 2 SL · Question 10

Adapt for 2027Data types, static variables, objects and arrays of objects are taught; the class relationship parts use the Higher Level multiple-classes topic. Includes Higher Level only content, which Standard Level students do not study.

IBCS

As printed in the paper

The question as text

10. A real estate business maintains an unsorted database of houses and apartments that it tries to sell for the property owners. The following UML diagram describes the objects in the current system. Owner Property - name: String - address: String - phone: String < … more attributes > - ID: String - address: String - city: String - price: int < … more attributes > + constructor + accessor and mutator methods + constructor + accessor and mutator methods House Apartment < attributes > < attributes > < methods > < methods >

Read automatically from the paper; the printed page above is exact.

Show the answer and mark scheme
  • 10(a)[1]

  • 10(b)(i)[1]

  • 10(b)(ii)[1]

  • 10(c)(i)[1]

  • 10(c)(ii)[1]

  • 10(d)[2]

  • 10(e)[2]

  • 10(f)[2]

  • 10(g)[3]

Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.