wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Python Programming

Total questions: 17

Worksheet time: 9mins

Name
Class
Date
1.
What will the output be from the following code?
print("Hello world!\nHello world!")
a)
Hello world! Hello world!
b)
Hello world!
Hello world!
c)
SyntaxError
d)
Hello world!
2.
What is syntax?
a)
Syntax is the word used to describe an error
b)
Syntax is the rules of the programming language
c)
It is used to read information
d)
It is used to output information 
3.

Will it tell you after you run the program what line you you made a mistake on?

a)

Yes

b)

No

c)

Maybe

d)

Food🌭🍔🍟🍕🍗🥩🥪🌮🧆🥘🥙🥗🍜🥟🍱🧁🍰🍧🍡🥧🍢🍦🥮🍭🍬🍫🍩🍪🥜🍿☕️🎂

4.

What is a folder?

a)

the name given to a set of recorded information

b)

the name given to the place where files that can be bought

c)

the name given to the place where files that can be stolen

d)

the name given to the place where files that can be stored

5.

What other app can you use to type a python code that is powered by JetBrains

a)

Python

b)

Pycharm

c)

Python files

d)

print(“sup”)

6.
What is python named after
a)
The snake
b)
Television show called Monty Python
7.
What is the name of the environment in Python that write your programs and then test them out?
a)
Shell
b)
Window
c)
IDLE
d)
CLI
8.
What does the term 'debug' mean?
a)
Identify errors and fix them.
b)
Making a calculation
c)
A set of instructions
d)
Looking at code
9.

Why do you want to use ‘debug’ function

a)

Because it will automatically tell you if they like your program

b)

Because it will show you what you got wrong

c)

Because it scares bugs away from your very own grandma bought computer

d)

🤯🤯🤯🤯🤯🤯

10.

What does the print command do?

a)

Outputs a hard copy of a program to a printer

b)

Outputs a message on screen

c)

Print a hard copy of a flow chart to a printer

d)

Prints out the the commands line by line on the screen

11.
What is the word (command) used to display numbers and text on the screen?
a)
print
b)
input
c)
output
d)
command
12.
What is a variable?
a)
A box(memory location) where you store values
b)
a type of graphics
c)
Data type
d)
a type of memory
13.
What symbol is used in python to assign values to a variable?
a)
equals =
b)
plus + 
c)
forward slash /
d)
asterisk *
14.

What is the name of the programming language we are learning?

a)

Scratch

b)

Python

c)

Java

d)

C++

15.
To repeat a fixed number of times use a
a)
while loop
b)
for loop
c)
if loop
d)
indentation
16.
Converts a number to a string
a)
str()
b)
int()
c)
parseInt()
d)
convert
17.

What grade are you in

a)

3rd

b)

4th

c)

5th

d)

6th

e)

7th or higher