Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Python 1

Total questions: 27

Worksheet time: 14mins

Name
Class
Date
1.

Identify this Operation ==

a)

Equal to

b)

Not equal to

c)

Double equal to

2.

Identify this Operation !=

a)

not equal to

b)

equal to

c)

surprise! equal

3.

Identify this Operation >

a)

Greater than

b)

Less than

c)

look to the right

4.

Identify this Operation <

a)

Less than

b)

Greater than

c)

Look to the left

5.

Identify this Operation <=

a)

Less than or equal to

b)

Greater than or equal to

c)

Moving left really fast

6.

Identify this Operation >=

a)

Greater than or equal to

b)

Less than or equal to

c)

Unhappy emoji

7.

Which of the following is an integer?

a)

8

b)

4.5

c)

print

8.

A Boolean data type can have what two values?

a)

True and False

b)

Yes and No

c)

Yeah and Nah

9.

How a computer can testing something, it will do one thing otherwise it’ll do something else

a)

If Then Else

b)

One Two Three

c)

Eenie Meenie Miney Mo

10.

How would you display the message "Hello world" on the screen?

a)

print("Hello world")

b)

print "Hello world"

c)

print (Hello world)

11.

What will the program print?

number = 10

print(number+10)

a)

20

b)

10

c)

number+10

12.

Is this true or false?


22 == 11 * 2

a)

True

b)

False

13.

Is this true or false?


"winter" == "Winter"

a)

False

b)

True

14.

How would this run:

print ("Hello, World!")

a)

Hello, World!

b)

("Hello, World!")

c)

"Hello, World!"

15.

Does the # affect the program?

a)

No

b)

Yes

16.
In 2013 the "Hour of Code" was developed by
a)
Jack Dorsey
b)
Bill Gates
c)
Hadi Partov
d)
Steve Jobs
17.
What is the name of the programming language we are learning?
a)
Scratch
b)
Python
c)
Pie thin
d)
Scribble
18.
When you have an error in your code what is the term to summarise finding and fixing that error?
a)
Error checking
b)
Debugging
c)
Syntax finder
d)
Error finder
19.
What is python?
a)
A programming language 
b)
DTP software 
c)
Spreadsheet software
d)
Computer 
20.
A step-by-step process, or a defined list of steps required to accomplish a goal
a)
algorithm
b)
variable
c)
string
d)
module
21.
Makes it easy to repeat steps over and over
a)
for loops
b)
variables
c)
strings
d)
modules
22.
True or False: 
There are only 3 different programming languages
a)
True
b)
False
23.
Coding is all about...
a)
Communicating with other students
b)
Playing games
c)
Giving instructions to a digital device
d)
Making a website
24.
Look at this code, what shape will it make?
a)
Square
b)
Triangle
c)
Rectangle
d)
Hexagon 
25.
What is wrong with this code?
a)
Missing Brackets
b)
Missing Comma
c)
Missing Colon
d)
Incorrect spelling 
26.
What does this code do?
a)
Draws a red rectangle
b)
Draws a red triangle
c)
Draws a red square
d)
Draws a black square
27.
What does forward(300) do?
a)
Moves in the direction it is facing 300
b)
Moves down the screen 300
c)
Moves up the screen 300
d)
Moves in a circle 400 times