Give an example of a conditional statement using pseudocode.
- (a)Give an example of a conditional statement using pseudocode.[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.
- [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] • 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 →