wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Python 4

Total questions: 22

Worksheet time: 10mins

Name
Class
Date
1.

Python is an example of a:

a)

Text-based programming language

b)

Visual-based programming language

c)

Block-based programming language

d)

Language written in JavaScript

2.

What does term ‘debug’ mean:

a)

looking at the code

b)

a set of instructions

c)

Identify errors and fix them

d)

Making a calculation

3.

What is the word (command) used to display numbers and text on the screen?

a)

Input

b)

Output

c)

Print

d)

Command

4.
What will the output be from the following code?
print(3+4)
a)
3+4
b)
7
c)
SyntaxError
d)
print(3+4)
5.
What will the output be from the following code?
print("3+4")
a)
7
b)
3+4
c)
34
d)
SyntaxError
6.
What will the output be from the following code?
print("Hello world!")
a)
SyntaxError
b)
Hello world!
c)
"Hello world!"
d)
print(Hello world!)
7.
What will the output be from the following code?
print(Hello world!)
a)
Hello world!
b)
SyntaxError
c)
Hello world
d)
print(Hello world!)
8.
What will the output be from the following code?
print("Hello" + "world!")
a)
Hello world!
b)
Helloworld!
c)
SyntaxError
d)
"Hello" "world!"
9.
What would print (10 + 16) produce?
a)
20
b)
22
c)
24
d)
26
10.

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

incorrectly

a)

False

b)

True

11.

Which Studio Ghibli film is about a young girl named Chihiro who enters a spirit world after her parents are turned into pigs?

a)

Princess Mononoke

b)

My Neighbor Totoro

c)

Howl's Moving Castle

d)

Spirited Away

12.

Which Studio Ghibli film is about a young witch named Kiki who starts her own delivery service?

a)

Kiki's Delivery Service

b)

Spirited Away

c)

Princess Mononoke

d)

My Neighbor Totoro

13.

Which Studio Ghibli film is about a young princess named Mononoke who fights against the destruction of the natural world?

a)

Spirited Away

b)

My Neighbor Totoro

c)

Howl's Moving Castle

d)

Princess Mononoke

14.

What does the keyboard shortcut CTRL+Z do?

a)

Cut

b)

Copy

c)

Undo

d)

Save

15.

What does RAM stand for?

a)

A) Random Access Memory

b)

B) Read-Only Memory

c)

C) Read and Write Memory

d)

D) Real-time Access Memory

16.

What is selection?

a)

A set of steps to follow

b)

A path through a solution

c)

A decision

17.

How many buttons does a BBC Microbit have?

a)

1

b)

2

c)

3

d)

4

18.

Margaret Hamilton worked on the Apollo Space Program. What was the destination of the spaceship that she programmed?

a)

The Sun

b)

Jupiter

c)

Mercury

d)

The Moon

19.

Who is this soccer player?

a)

Luis Suarez

b)

Zlatan

c)

Coutinho

d)

Robben

20.

how we can make the game work

a)

Move forward

b)

click RUN

c)

I don't know

d)

Nothing

21.

Algorithm

a)

Putting commands in correct order so computers can read the commands.

b)

Finding and fixing problems in your algorithm or program.

c)

An action that causes something to happen.

d)

a step-by-step procedure for solving a problem

22.

Bug

a)

Part of a program that does not work correctly.

b)

An algorithm that has been coded into something that can be run by a machine.

c)

The art of creating a program.

d)

An action that causes something to happen.