wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

#01d - Highlands.Enfield Y8 WINK Plenary Quiz - Programming in Python #1

Total questions: 7

Worksheet time: 5mins

Name
Class
Date
1.

What is the name of the program we use to run Python

a)

Python

b)

IDLE

c)

IDOL

d)

Pylon

2.

What does the print statement do

a)

Send a file to a printer

b)

Speak out what we've just typed

c)

Nothing

d)

Display a message on the screen

3.

How do we run a program that has been saved in "Script mode"

a)

Type run

b)

Select "Go" from the Run Menu

c)

Select "Run" from the Run Menu

d)

Hit F6

4.

Why don't we write all programs in interactive modes (select all correct answers)

a)

Because it doesn't save our work

b)

Because we can't easily change or edit our work

c)

Because all commands are run immediately, one at a time

d)

Because sometimes we want to run more than one command at a time.

5.

Why is it important to use # Comments (select all correct answers)

a)

Because it makes it look like we've done more work

b)

Because it helps us understand the code when we come back to it

c)

Because it helps others to understand our code

d)

Because it makes it easier to fix errors

6.

What does the F5 key do

a)

Closes IDLE down

b)

Runs a program

c)

Makes the computer explode

d)

Stops a program running

7.

8. What happens if you try to run a saved python file (.py) without opening IDLE (IF YOU'RE NOT SURE, TRY IT NOW!!)

a)

The program runs

b)

We are asked if we want to save, if we say "OK" the program runs

c)

We are asked if we want to save, if we say "OK" or "Cancel" the program runs

d)

The program is saved automatically

e)

The program crashes