This study notes covers Selection Structures 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 4 of 10 in this topic. Use this study notes to connect the idea to the wider topic before moving on to questions and flashcards.
Selection Structures
| Structure | Use When | GCSE Pseudocode |
|---|---|---|
| IF | Single condition | if condition then...endif |
| IF-ELSE | Two alternatives | if...then...else...endif |
| IF-ELSEIF-ELSE | Multiple conditions | if...then...elseif...else...endif |
| SWITCH/CASE | Many specific values | switch...case...default...endswitch |
Practice questions for Selection (IF Statements)
Which programming construct is used to make a decision based on a condition?
Explain the difference between using ELSEIF and using nested IF statements to test multiple conditions.