Skip to content

Course home

Programming fundamentals

Programming fundamentals

EasyMediumHard
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
Question 16

Daily pollen levels (in grains per cubic metre) are recorded for five city districts over four days. This data is stored in a 2D array with the identifier pollenLevels. The following table shows this array:

Districts
NorthEastSouthWestCentral
01234
Days of the weekMon01208515095210
Tue114090165110230
Wed21107513080195
Thu3175105180130250

An analyst wants to output the pollen count recorded in the West district (column index 3) on Monday (row index 0). The following code is written:

print(pollenLevels[3, 0])

Write a line of code to output the pollen count recorded in the Central district on Thursday.

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