Note AcademyNote Academy

Computer Science · May / June 2023 · Paper 1 TZ2 SL · Question 12

Adapt for 2027Arrays, linear search and selection sort are taught, but the algorithms must be written in Python or Java instead of pseudocode.

IBCS

As printed in the paper

The question as text

12. There are 1000 rooms where students can live on a college campus. The rooms are numbered from 1 to 1000. The bill for each room must be paid each month. The room numbers of the students who have paid their bills for the month of May so far are stored in the ROOMNUMS array (see Figure 1). Figure 1: Example data stored in the ROOMNUMS array ROOMNUMS [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] 2 216 15 109 156 120 93 18 21 56 For example, the bill for room number 93 has been paid. This can be seen in ROOMNUMS[6].

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

Show the answer and mark scheme
  • 12(a)[2]

  • 12(b)[2]

  • 12(c)[5]

  • 12(d)[6]

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