Skip to content

Course home

Operators

Operators

EasyMedium
1234567
Question 4

Fiona has written a Python program to help Maya calculate geographical statistics. Look at the following line of code from her program:

averageElevation = (peakElevation + valleyElevation) / 2

Give one reason why there are brackets around peakElevation + valleyElevation.

[1]
Markscheme

Operators Questions

  1. IGCSE
  2. /Computer Science
  3. /Operators

9 exam-style questions on Edexcel IGCSE Computer Science Operators. Each one has a worked solution and a mark scheme showing where the marks go.

Question bank