Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Python Basics (Y9)

Total questions: 13

Worksheet time: 13mins

Name
Class
Date
1.
What is the name of the programming language we are learning?
a)
Scratch
b)
Python
c)
Pie thin
d)
Scribble
2.
Why is it called 'Python'?
a)
The guy who created it loves snakes
b)
The guy who created it loves Monty Python films
c)
You can create a game on python called snake
d)
It was created by someone called Mr Python
3.
Python is an example of a....
a)
Text-based programming language
b)
Object orientated programming language
c)
language written in java script
d)
Visual-based programming language
4.
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
5.
What is the word (command) used to display numbers and text on the screen?
a)
print
b)
input
c)
output
d)
command
6.
What is the answer to print (12/6)?
a)
1
b)
2
c)
6
d)
10
7.

What symbol is used in Python to assign values to a variable?

a)

equals =

b)

plus +

c)

forward slash /

d)

asterisk *

8.
To create a newline at the end of prompt, you can use which of the following expressions?
a)
\new
b)
\n
c)
\break
d)
\return
9.
What button do you press to compile (run) your program so that it runs in the shell?
a)
F3
b)
F5
c)
F7
d)
F9
10.
 ______ has one function, to output to the console (screen) whatever is inside the parentheses
a)
import
b)
input
c)
print
d)
int
11.
Comments help the programmer make ________ within the program without affecting the code.
a)
notes
b)
changes
c)
revisions
d)
a mess
12.
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
13.

What is the word used to describe "adding" text variables together?

a)

Observation

b)

Type-casting

c)

Concatenation

d)

Separation