Skip to main content
O-LevelComputer ScienceProgramming2210/21 · May/June 2023 · Q44 Marks

Explain the purpose of the library routines DIV and ROUND

  1. Explain the purpose of the library routines DIV and ROUND DIV ROUND[4]

Mark scheme

Marking points from the official mark scheme (May/June 2023). The mark or mark type is shown in brackets.

  1. [1] DIV: To perform integer division
  2. [1] DIV: Meaning only the whole number part of the answer is retained
  3. [1] DIV: Example of DIV(9,4) = 2
  4. [1] ROUND: To return a value rounded to a specified number of digits / decimal places
  5. [1] ROUND: The result will either be rounded to the next highest or the next lowest value depending on whether the value of the preceding digit is >=5 or <5
  6. [1] ROUND: Example of ROUND (4.56, 1) = 4.6

Write your answer and get it marked

On Oracle Prep you can write or photograph your own answer and have it marked by AI against this mark scheme, with feedback on what you missed.

Sign up free →

About this question

Topic
Programming, O-Level Computer Science (syllabus 2210). Structured question, 4 marks.
Source
O-Level Computer Science, May/June 2023 Paper 2 Variant 1, question 4.

Questions and mark schemes are from past examination papers and remain the copyright of the exam board. How Oracle Prep builds its content

Related Computer Science questions

© 2026 Oracle Prep