Making Decisions

Part of Selection (IF Statements) · Section 2 of 10

IntroductionUnit: 3.2 ProgrammingGCSE

This introduction covers Making Decisions within Selection (IF Statements) for GCSE Computer Science. Revise Selection (IF Statements) in 3.2 Programming for GCSE Computer Science with 15 exam-style questions and 8 flashcards. This topic shows up very often in GCSE exams, so students should be able to explain it clearly, not just recognise the term. It is section 2 of 10 in this topic. Use this introduction to connect the idea to the wider topic before moving on to questions and flashcards.

Making Decisions

Life is full of decisions: "IF it's raining, take an umbrella, ELSE wear sunglasses." Programs work the same way. Selection lets programs choose different paths based on conditions. IF the user enters the correct password, let them in. ELSE, show an error. Multiple choices? Use ELSEIF or SWITCH/CASE. Every game, every app makes thousands of decisions every second!

Practice questions for Selection (IF Statements)

Which programming construct is used to make a decision based on a condition?

  • A. FOR loop
  • B. IF statement
  • C. WHILE loop
  • D. Function definition
1 markfoundation

Explain the difference between using ELSEIF and using nested IF statements to test multiple conditions.

3 marksstandard

Quick recall flashcards

When use SWITCH?
Comparing one variable against many specific values
When use ELSEIF?
When you have multiple conditions to check

15 questions on Selection (IF Statements) — practise free

Instant marking, adaptive difficulty and spaced-repetition flashcards — all aligned to your exam board.

Start revising free →