Skip to content

Course home

Programming fundamentals

Programming fundamentals

EasyMediumHard
123456789101112131415161718192021222324
Question 3

A monitoring system for a weather balloon needs to perform the following tasks:

  • Input two altitude readings (in meters) from the user
  • Compare both altitudes and output the higher (greater) altitude.

Complete the pseudocode for this program.

alt1 = input("Enter first altitude")
alt2 = .....

..... alt1 > ..... then
    print(.....)
else
    print(.....)
endif
[5]
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