Skip to content

Course home

Programming fundamentals

Programming fundamentals

EasyMediumHard
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
Question 22

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]
Markscheme

Programming fundamentals Questions

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

95 exam-style questions on OCR GCSE Computer Science Programming fundamentals. Each one has a worked solution and a mark scheme showing where the marks go.

Question bank