Skip to main content
O-LevelComputer ScienceProgramming2210/21 · May/June 2025 · Q54 Marks

Two library routines used in programming are MOD and DIV. State the purpose of each of the library routines. Give one example pseudocode statement for each of the library routines. MOD purpose Example pseudocode DIV purpose Example pseudocode

  1. Two library routines used in programming are MOD and DIV. State the purpose of each of the library routines. Give one example pseudocode statement for each of the library routines. MOD purpose Example pseudocode DIV purpose Example pseudocode[4]

Mark scheme

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

  1. [1] MOD - returns the remainder of a division calculation.
  2. [1] Example: X ← MOD(10, 3)
  3. [1] DIV - Integer division/returns the quotient of a division.
  4. [1] Example: Y ← DIV(10, 3)

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 2025 Paper 2 Variant 1, question 5.

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