Skip to content

Course home

Programming fundamentals

Programming fundamentals

EasyMediumHard
123456789101112131415161718192021222324
Question 23

A program is being developed to convert a distance run measured in kilometres and metres into a total number of metres.

The developer wants to create a subprogram (function) to perform this calculation.

The program has been started but is not complete.

Complete the program design by filling in the blanks.

kilometres = input("Please enter kilometres run: ")
metres = input("Please enter metres run: ")
totalMetres = .....
print(totalMetres)
function .....
.....
.....
.....
.....
endfunction
[4]
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