Menu

Selection (IF) - Quiz

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

Print statements
If statements
For loops
While loops

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

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

Log in or sign-up to access the quiz



Don't have a login?

You can still revise this topic