wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Space Quest - Python - Mission 1

Total questions: 7

Worksheet time: 2mins

Name
Class
Date
1.

Which difficulties did you complete today?

a)

Normal

b)

Hard

c)

Legendary

d)

Extension

2.

What Python function do we use to write to screen?

a)

print

b)

write

c)

output

d)

don't know

3.

What would the code below do?


print ('Is everyone ok?')

a)

Outputs 'Is everyone ok?' on the screen

b)

Print 'Is everyone ok?' to the local printer

c)

Outputs 'on the screen' on the screen

d)

It won't do anything

4.

What code would write 'hyperdrive' to the screen?

a)

print ('hyperdrive')

b)

print ('HYPERDRIVE')

c)

print (hyperdrive)

d)

none of the above

5.

What is wrong with the following code?


print (We're going to crash)

a)

Speech marks are missing

b)

Print isn't the correct function to use

c)

The code is using the wrong brackets

d)

none of the above

6.

What is a variable used for?

a)

To store information in a programme

b)

To write something to the screen

c)

To add selection to a programme

d)

none of the above

7.

What is the variable called in the code below?


print ('what is your name? ')

myName = input()

print (myName)

a)

myName

b)

input()

c)

MYNAME

d)

none of the above