Menu

Selection - Quiz

1. Which term describes the programming construct in which a condition is checked and its True or False result decides which block of code runs?

Selection
Nesting
Iteration
Sequence

2. What is meant by elif in Python?

It gives a block that runs when the condition of the if statement is False, and it has no condition of its own
It repeats the block below it again and again until its condition becomes False
It adds another condition to an if statement, and its block runs only if the conditions above it were all False
It marks the end of an if statement, so the lines below it are never part of the block

Log in or sign-up to access the quiz



Don't have a login?

You can still revise this topic