Skip to content

Course home

Programming fundamentals

Programming fundamentals

EasyMediumHard
123456789101112131415161718192021222324
Question 22

A system monitor records the remaining battery charge of a weather balloon as it transmits data package bursts. The following pseudocode algorithm simulates this tracking:

01  charge = 20
02  repeat
03    print(charge)
04    charge = charge - 5
05  until charge < 10
06  print("Done")

Complete the following trace table for the given algorithm.

Line numberchargeOutput
[3]
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