Skip to content
MathsGenie logo
Open app

Course home

  1. GCSE
  2. Computer Science Edexcel
  3. Question bank

Computational thinking

EasyMediumHard
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
Question 47

A climate scientist writes a computer program to calculate the average daily rainfall over a year. The program executes successfully to the end without any warnings or crashes, but it outputs a negative value for the average rainfall because a subtraction operator was used instead of an addition operator in the summation loop.

State the type of programming error that is present in this program.

[1]

Computational thinking Questions

  1. GCSE
  2. /Computer Science
  3. /Computational thinking