Computer Science · May / June 2023 · Paper 1 TZ1 HL · Question 14
Adapt for 2027Processing a 2D array with nested loops and functions is B2.2.2 and B2.3; write the algorithms in Python or Java instead of IB pseudocode.
IBCS
As printed in the paper
The question as text
14. A program is developed to simulate the roll of dice in a game. Three dice are thrown, with faces that have numbers from 1 to 6. The dice are thrown seven times, and the data are stored in a two-dimensional array called DICEDIAL (see Figure 2). Figure 2: The example data stored in the DICEDIAL array [0] [1] [2] [0] 4 2 2 [1] 4 4 4 [2] 5 2 3 [3] 6 5 5 [4] 5 5 6 [5] 1 1 4 [6] 3 2 1
Read automatically from the paper; the printed page above is exact.
Show the answer and mark scheme
14(a)[3]
14(b)[4]
14(c)[8]
Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.

