Quiz

Quiz: Selection - Using IF/ELSE to Choose Paths

OCR GCSE J277 Computer Science specification

Ready to start this lesson?

Sign in to track your progress. 11 steps including 9 interactive questions.

Sign In to Start Learning
11 Steps9 Questions

Students also studied

Browse all

Steps in this lesson (11)

1
Text

Building on what you've learned about inputs, outputs, and sequence, let's test your understanding of selection using IF/ELSE to make decisions in programs!

2
Multiple ChoiceInteractive

What is the purpose of an IF statement in programming?

Start the lesson to answer this multiple choice question

3
Multi-SelectInteractive

Which of the following are valid conditions in an IF statement? (Select all that apply)

Start the lesson to answer this multi-select question

4
Fill in the BlankInteractive

An IF statement evaluates a condition and runs the code inside it only if the condition is {{blank0}}.

Start the lesson to answer this fill in the blank question

5
MatchingInteractive

Match the items on the left with their correct pairs on the right

Start the lesson to answer this matching question

6
Math EquationInteractive

Match the items on the left with their correct pairs on the right

Start the lesson to answer this math equation question

7
Code CompletionInteractive

Match the items on the left with their correct pairs on the right

Start the lesson to answer this code completion question

8
typedAnswer

Match the items on the left with their correct pairs on the right

9
Multiple ChoiceInteractive

What will the following code output? if 10 > 5: print('Yes') else: print('No')

Start the lesson to answer this multiple choice question

10
Multi-SelectInteractive

Which of the following outputs are possible for this code? if 8 == 8: print('Match') else: print('Mismatch')

Start the lesson to answer this multi-select question

11
Fill in the BlankInteractive

The ELSE block runs when the IF condition is {{blank0}}.

Start the lesson to answer this fill in the blank question

Genie

Want to Learn More?

Get personalised lessons, quizzes, and instant feedback from your AI tutor.

Explore More Topics
Revision GenieRevision Genie

Turn "I don't understand" into "I aced it" with instant explanations, personalised lessons, and exam practice that actually works.

Need Support?

We're here to help with study stress or exam pressure.

Revision Genie Ltd45 Fitzroy Street, London W1T 6EBCompany: 16212210ICO: ZC008367

© 2026 Revision Genie Ltd. All rights reserved. IBO, AQA, OCR, and Edexcel were not involved in the production of, and do not endorse, the resources or AI tutoring provided on the Revision Genie platform.Payments by Stripe.