wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Python Statements

Total questions: 10

Worksheet time: 6mins

Name
Class
Date
1.

Print statement

a)

Outputs a message on the screen

b)

Gets data from the user

c)

A decision

d)

A loop controlled by a decision

2.

Input statement

a)

Outputs a message on the screen

b)

Gets data from the user

c)

A decision

d)

A loop controlled by a decision

3.

If else statement

a)

Outputs a message on the screen

b)

Gets data from the user

c)

A decision

d)

A loop controlled by a decision

4.

While statement

a)

Outputs a message on the screen

b)

Gets data from the user

c)

A decision

d)

A loop controlled by a decision

5.

For statement

a)

Outputs a message on the screen

b)

Gets data from the user

c)

A decision

d)

A loop controlled by a counter

6.

Def statement

a)

Outputs a message on the screen

b)

Gets data from the user

c)

A decision

d)

Create a procedure or function

7.
What is the name of the programming language we are learning?
a)
Scratch
b)
Python
c)
Pie thin
d)
Scribble
8.
What is python?
a)
a programming language 
b)
DTP software 
c)
Spreadsheet software
d)
Computer 
9.

How is Python similar to Scratch?

a)

They are both text-based languages.

b)

They are not similar.

c)

They are both number based languages.

10.
What will the output be from the following code?
print("Hello world!")
a)
SyntaxError
b)
Hello world!
c)
"Hello world!"
d)
print(Hello world!)