Exercise 1: Basic Conditional (IF...ELSE)
Scenario: A program needs to determine if a student has passed a test.
Task: Input a test score (0-100). If the score is 40 or higher, print "Pass", otherwise print "Fail".
Selection Focus: Single condition check.
Exercise 2: Multiple Selection (ELIF/IF...ELIF...ELSE)
Scenario: A school assigns grades based on marks.
Task: Input a numerical grade.
: Print "Distinction"
: Print "Merit"
: Print "Pass"
: Print "Fail"
Selection Focus: Handling multiple, mutually exclusive paths.
Isaac Computer Science +2
Exercise 3: Range Check/Validation (Input Validation)
Scenario: A program asks for a user's age for a website, which must be between 13 and 110.
Task: Prompt the user to enter their age. Use selection to check if the age is within the valid range. If valid, print "Age accepted". If not, print "Invalid age".
Selection Focus: Using AND or OR operators for boundary checks.
Save My Exams
Exercise 4: Nested Selection (If inside If)
Scenario: A login system that checks both username and password.
Task:
Check if the username is "admin".
If it is, check if the password is "secret123".
If both are correct, print "Login successful".
If the username is correct but the password isn't, print "Incorrect password".
If the username is wrong, print "User not found".
Selection Focus: Nested IF statements.
Scribd
Exercise 5: Case Selection (SWITCH/CASE)
Scenario: A calculator program selects operations based on user input.
Task: Ask the user to enter 'a' for add, 's' for subtract, 'm' for multiply. Use a CASE structure (or if/elif in Python) to perform the correct math operation on two input numbers.
Selection Focus: Choosing one action from a list of options.
Save My Exams +1
Exercise 6: Past Paper Style (Leap Year)
Scenario: (Adapted from Nov 2021 Paper 2)
PMT
Task: Write a program that accepts a year (e.g., 2024) and outputs whether it is a leap year or not.
Hint: A year is a leap year if it is divisible by 4, unless it is divisible by 100 but not 400.
Selection Focus: Using the Modulo operator (% or MOD) to create complex conditions.
Typical Edexcel Paper 2 Exam Requirements
YouTube +1
Input/Output: Use input() and print().
Comments: Use # to add comments explaining your logic.
Variables: Use sensible, descriptive names (e.g., userScore, isLoggedIn).
Data Types: Ensure you convert input to integers or floats if necessary (int(input())).
Validation: You might be required to check if input data is valid (e.g., not a string when a number is expected).