Data for one working week (Monday to Friday) is stored in a 2D array with the identifier activeMins. The following table shows part of this array, containing active minutes for 4 friends.
| Friends | ||||||
|---|---|---|---|---|---|---|
| Alex | Blake | Charlie | Delta | |||
| 0 | 1 | 2 | 3 | |||
| Days of the week | Mon | 0 | 45 | 25 | 60 | 10 |
| Tue | 1 | 50 | 30 | 45 | 20 | |
| Wed | 2 | 30 | 40 | 50 | 15 | |
| Thu | 3 | 90 | 15 | 30 | 45 | |
| Fri | 4 | 120 | 50 | 10 | 80 |
The coach wants to output the number of active minutes Charlie (column index 2) recorded on Thursday (row index 3). The following code is written:
print(activeMins[2, 3])
Write a line of code to output the number of active minutes that Alex recorded on Friday.
You must use either:
Practise OCR GCSE Computer Science Programming fundamentals with exam-style questions for GCSE Computer Science. 100 questions, matched to the OCR GCSE Computer Science (J277) specification and written in Component 01 and Component 02 style. Every question includes a full worked solution and mark scheme, so you can see where marks are awarded rather than just whether you got the answer right.