Skip to content

Course home

Programming fundamentals

Programming fundamentals

EasyMediumHard
123456789101112131415161718192021222324
Question 2

A program is being developed to convert a volume of liquid measured in litres and millilitres into a total number of millilitres.

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.

litres = input("Please enter litres: ")
millilitres = input("Please enter millilitres: ")
totalMillilitres = .....
print(totalMillilitres)
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