wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Python - Year 8

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Q1 - What is a variable?

a)

A loop.

b)

A storage location for values.

c)

A IF Statement.

d)

A function

2.

What is a function?

a)

An IF statement.

b)

A for loop.

c)

A piece of re-usable code.

d)

Changing a variables data type.

3.

Who coined the phrase debugging?

a)

Alan Turing

b)

Ada Lovelace

c)

Charles Babbage

d)

Admiral Grace Hopper

4.

What colour should string be?

"Hello Word"

a)

Green

b)

Blue

c)

Purple

d)

Orange

5.

Which is the correct way to name a variable?

a)

my name

b)

MYNAME

c)

my____Name

d)

myName

6.

Find the Error within this code snippet

a)

Missing Bracket

b)

Missing Speech Mark

c)

Capital Letters for Function Name

d)

Spelling Mistake

7.

Find the Error within this code snippet

a)

Missing Brackets

b)

Missing Speech Marks

c)

Capital Letters for Function Name

d)

Spelling Mistakes

8.

How many errors are in this code snippet?

a)

1

b)

2

c)

3

d)

4

9.

What does INT stand for in Python

a)

Float (Decimal Numbers)

b)

String (Text)

c)

Boolean (True/False)

d)

Integer (Whole Numbers)

10.

What will be the output of print ("Theo_is_awesome")

a)

Theo sucks.

b)

theo_is_awesome

c)

Theo is awesome

d)

Theo_is_awesome