Computer Science · Oct / Nov 2019 · Paper 1 HL · Question 13
Adapt for 20272D array algorithms and tracing a recursive method (B2.4.5, HL only) are on the course; rewrite the pseudocode in Python or Java.
IBCS
As printed in the paper
The question as text
13. The following matrix has non-zero elements on the diagonal, on the super-diagonal (the first diagonal above the main diagonal) and on the sub-diagonal (the first diagonal below the main diagonal). All the rest of the elements are zeros. The following two-dimensional array named MAT of dimensions 6 × 6 is an example of such a matrix. MAT [0] [1] [2] [3] [4] [5] [0] 7 7 0 0 0 0 [1] 1 2 1 0 0 0 [2] 0 9 -3 5 0 0 [3] 0 0 -5 6 4 0 [4] 0 0 0 7 7 2 [5] 0 0 0 0 5 1
Read automatically from the paper; the printed page above is exact.
Show the answer and mark scheme
13(a)[1]
13(b)[8]
13(c)[4]
13(d)[2]
Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.

