Skip to main content
O-LevelComputer ScienceProgramming2210/21 · May/June 2019 · Q34 Marks

Give an example of a conditional statement using pseudocode.

  1. (a)Give an example of a conditional statement using pseudocode.[2]
  2. (b)Describe the purpose of a conditional statement.[2]

Mark scheme

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

  1. [2] Many possible answers, those given are examples only. 1 mark per bullet: • IF • Condition and outcome Example answer: IF X < 0 THEN PRINT "Negative" ELSE PRINT "Not negative" ENDIF OR 1 mark per bullet: • CASE • Condition and outcome Example answer: CASE X OF 1: PRINT ("ONE") 2: PRINT ("TWO") OTHERWISE PRINT ("Less than ONE or more than TWO") ENDCASE
  2. [2] • To allow different routes through a program • dependent on meeting certain criteria

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 2019 Paper 2 Variant 1, question 3.

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