Skip to main content
O-LevelComputer ScienceProgramming2210/21 · May/June 2024 · Q29 Marks

Four descriptions of programming concepts and five programming concepts are shown.

  1. (a)Draw one line to link each description to the most appropriate programming concept. Not all programming concepts will be used. [Description table and Programming concept table][4]
  2. (b)Write the pseudocode to use a procedure named Average that passes the values 25 and 50 to the procedure.[2]
  3. (c)Outline the role of procedures and functions in creating a program that is easier to maintain.[3]

This question uses a diagram from the original paper, which isn't shown here. Open the full paper from the past papers archive to see it.

Mark scheme

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

  1. [4] (a) One mark for each correct line a subroutine that may not return a value -> procedure; a value that is declared and used within a specific procedure -> local variable; a value that a procedure expects you to supply when it is called -> parameter; a subroutine that will always return a value -> function
  2. [2] (b) One mark per mark point • Correct key word - CALL • Procedure name with correct parameters - Average (25, 50) CALL Average(25, 50)
  3. [3] (c) One mark per mark point, max three • Procedures / functions divide the program into smaller manageable segments • making it more readable / easier to understand / easier to debug Procedures / functions with meaningful names help to provide documentation for the program / enable/help/provide abstraction • Procedures and functions may be re-used (in the program / in other programs / as part of a library) / run from a single line • Procedures and functions can reduce / eliminate (repeated) code

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, 9 marks.
Source
O-Level Computer Science, May/June 2024 Paper 2 Variant 1, question 2.

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