Skip to content

Course home

Constructs

Constructs

EasyMedium
1234
Question 3

A program is needed that will accept the input of a candidate's test score (as an integer) and compare it with a stored average score of 72.

It will check whether the candidate's score is lower than average, higher than average, or exactly equal to the average.

It must output both the candidate's score, the stored average score, and an appropriate descriptive message in each case.

Amend the starter code below to complete the selection structure to produce the required output.

averageScore = 72
userScore = int(input("Enter your test score: "))

# Amend and complete the code below

[4]
Markscheme

Constructs Questions

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

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

Question bank