Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Yr9 Python KO quiz 2

Total questions: 6

Worksheet time: 4mins

Name
Class
Date
1.
What is the correct definition for a VARIABLE?
a)
a changeable value, such as a score in a computer game.
b)
a value that cannot be changed
2.
What best defines an IF statement in python?
a)
Is an embedded string with a variable
b)
An IF statement checks to see if a statement is true or false and then does one of two things depending on the result.
3.

What is a variable?

a)

A number such as 25.

b)

Plus, minus, multiply, divide or equals.

c)

An array of text.

d)

A storage location in the program which stores a value.

4.

There can be an else statement without an if statement

a)

FALSE

b)

TRUE

5.

What will this code output?

a)

Fizz

b)

Buzz

c)

True

d)

False

6.

A syntax error means your code has a 'grammar' mistake or you used symbols/operations incorrectly.

a)

True

b)

False