Computer Science · Oct / Nov 2017 · Paper 1 HL · Question 14
Adapt for 2027Working with two-dimensional arrays (B2.2.2) is on the syllabus; the compression algorithm should be written in Python or Java instead of pseudocode.
IBCS
As printed in the paper
The question as text
14. Consider the following two-dimensional array, MAT, with dimensions 6 × 6. [0] [1] [2] [3] [4] [5] [0] 7 0 0 0 0 0 [1] 0 0 0 0 0 0 [2] 0 0 −3 0 9 0 [3] 0 0 0 0 0 0 [4] 0 0 −1 0 0 0 [5] 0 −6 0 0 −5 1 The value −1 is stored in MAT at position [4][2]. The position [4][2] means row 4 and column 2.
Read automatically from the paper; the printed page above is exact.
Show the answer and mark scheme
14(a)[1]
14(b)[1]
14(c)[6]
14(d)[2]
14(e)[1]
14(f)(i)[1]
14(f)(ii)[3]
Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.

