Menu

Selection (IF) - Quiz

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

While loops
Print statements
For loops
If statements

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

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

Log in or sign-up to access the quiz



Don't have a login?

You can still revise this topic