Skip to content

Course home

Programming fundamentals

Programming fundamentals

EasyMediumHard
123
Question 3

An ecological monitoring program uses a semi-autonomous drone to record wildlife sightings in a nature reserve. The data is imported into a program written in a high-level programming language and stored in a two-dimensional (2D) string array with the identifier obsData.

The data to be stored is shown in the table below:

TimeSlotSectorSpeciesCount
08:00SecADeer4
08:00SecBFox2
12:00SecABadger1
12:00SecCDeer3
16:00SecBBadger2
16:00SecCDeer5
20:00SecAFox1
20:00SecBBadger3

In this table, the value of obsData[1, 1] contains "SecB".

Write a program that:

  • asks the user to input a species name
  • totals the counts of sightings for the species input
  • outputs the calculated total in an appropriate message including the species name, for example:

Total sightings for Badger: 6

You must use either:

  • OCR Exam Reference Language, or
  • A high-level programming language that you have studied.
[6]
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