Worksheets#01d - Highlands.Enfield Y8 WINK Plenary Quiz - Programming in Python #1
Total questions: 7
Worksheet time: 5mins
What is the name of the program we use to run Python
Python
IDLE
IDOL
Pylon
What does the print statement do
Send a file to a printer
Speak out what we've just typed
Nothing
Display a message on the screen
How do we run a program that has been saved in "Script mode"
Type run
Select "Go" from the Run Menu
Select "Run" from the Run Menu
Hit F6
Why don't we write all programs in interactive modes (select all correct answers)
Because it doesn't save our work
Because we can't easily change or edit our work
Because all commands are run immediately, one at a time
Because sometimes we want to run more than one command at a time.
Why is it important to use # Comments (select all correct answers)
Because it makes it look like we've done more work
Because it helps us understand the code when we come back to it
Because it helps others to understand our code
Because it makes it easier to fix errors
What does the F5 key do
Closes IDLE down
Runs a program
Makes the computer explode
Stops a program running
8. What happens if you try to run a saved python file (.py) without opening IDLE (IF YOU'RE NOT SURE, TRY IT NOW!!)
The program runs
We are asked if we want to save, if we say "OK" the program runs
We are asked if we want to save, if we say "OK" or "Cancel" the program runs
The program is saved automatically
The program crashes
