Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Python

Total questions: 14

Worksheet time: 7mins

Name
Class
Date
1.

To allow users to enter data we use the _________ function

a)

Print

b)

Input

c)

print

d)

Variable

2.

To display information to the user we use the _________ function.

a)

print

b)

Input

c)

PRINT

d)

imput

3.

Which data type stores whole numbers?

a)

Float

b)

String

c)

Integer

d)

Char

4.

Which data type stores decimal numbers?

a)

Float

b)

String

c)

Char

d)

Integer

5.

True or False - You can store multiple values in a variable at any one time.

a)

True

b)

False

6.

To start a flowchart you use the __________ symbol.

a)

Decision

b)

Process

c)

Start

d)

Terminator

7.

What is Selection?

a)

A decision or question

b)

A button

c)

An answer

d)

A question

8.

What is a sequence?

a)

A decision or question

b)

An ordered list

c)

A set of step by step instructions that are carried out in the correct order.

d)

A set of step by step instructions that are carried out in the incorrect order.

9.

What is Iteration?

a)

A decision or question

b)

Repeating steps over and over again.

c)

A set of step by step instructions

d)

Instructions that follow in the incorrect order

10.

What are the two types of Iteration?

a)

Count Controlled, Condition Controlled

b)

Chloe Controlled, Charlotte Controlled

c)

Counted Controlled, Condition Controlled

d)

Controlled Count, Controlled Condition

11.

What is a Syntax Error?

a)

Correct Spelling and Grammar

b)

A spelling or grammatical mistake

c)

A spelling mistake

d)

A variable

12.

Choose the correct code

a)

print("Hello World")

b)

PRINT(Hello World)

c)

Print("Hello World")

d)

Print"Hello world"

13.

Choose the correct code

a)

favourite colour = imput("What is your fave colour?")

b)

Favourite_Colour = imput("What is your fave colour?")

c)

Favourite_Colour=input("What is your fave colour?")

d)

fave colour=inpu("What is your fave colour?")

14.

Choose the correct variable

a)

Fave_Colour + ("Purple")

b)

Favourite_Colour = Purple

c)

Favourite_Colour = ("Purple")

d)

fave colour = purple