Programming fundamentals
44
0/1

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
AlexBlakeCharlieDelta
0123
Days of the weekMon045256010
Tue150304520
Wed230405015
Thu390153045
Fri4120501080

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:

  • OCR Exam Reference Language, or
  • a high-level programming language that you have studied.
[1]

Programming fundamentals Questions

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.

PreviousNext

Programming fundamentals Questions

  1. GCSE
  2. /Computer Science
  3. /Programming fundamentals