Selection (IF) - Quiz

1. What Python construct allows you to execute code based on certain conditions?

While loops
Print statements
If statements
For loops

2. What will happen if an 'if' statement's condition is True?

Nothing will happen
The indented block of code underneath will execute
The program will exit
All code in the program will execute

Log in or sign-up to access the quiz



Don't have a login?

You can still revise this topic