1. In programming, selection is implemented using WHILE statements
2. What is happening on line 3 of this code?
3. Can you spot the error in this code? If the user enters 50, it doesn't display the desired message.
4. When using an ‘if...else if’ statement, the program will ____________________________. It is therefore very important to get the ‘if’ and ‘else’ conditions in the right order to make the program as efficient as possible
5. In the following python code, when would the 'else' part of the code on line 11 and 12 be executed?
6. In reference to the following code,if the input is 3, what would the ouput be?
7. What inputs would be necessary in order for this program to output: "YES"
8. In the following code, what needs to go in line 1 in order for the rest of the if statement to work?
9. In what situation would the 'else' part of this code be executed?
10. What is the output of the following, and why?
11. The following code appears to run, but on entering '100' doesn't produce the desired output. Why?
12. Why will the following code not run?
13. What is wrong with the following code (why will the if statement not execute)
14. Can you spot the error in the if statement?
15. From python's documentation: The keyword ‘elif’ is short for ‘else if’, and is useful to ………..