NEW
Font size
S
M
L
XL
WorksheetsPython
Total questions: 20
Worksheet time: 10mins
Name
Class
Date
1.
What is the word (command) used to display numbers and text on the screen?
a)
print
b)
input
c)
output
d)
command
2.
What is the name of the programming language we are learning?
a)
Scratch
b)
Python
c)
Pie thin
d)
Scribble
3.
What will be the output?
name = "Dave"
print (name)
a)
Dave
b)
'Dave'
c)
name
d)
(name)
4.
What is Python?
a)
text based programming language
b)
word processor
c)
spreadsheet
d)
block based programming language
5.
What is python?
a)
a programming language
b)
DTP software
c)
Spreadsheet software
d)
Computer
6.
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
7.
What extension must you add to the end of a file when saving?
a)
.xlsx
b)
.pptx
c)
.docx
d)
.py
8.
What symbol do you use to make a comment in Python?
a)
@
b)
¬
c)
;
d)
#
9.
What does the print function do in python?
a)
It's a variable.
b)
It can input data.
c)
It displays something like a string or integer
d)
It loops the code.
10.
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
11.
The number or word we give to a variable
a)
Value
b)
Bug
c)
Information
d)
Text
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.
Python language was developed in what year?
a)
1985
b)
2001
c)
1991
d)
1820
15.
Is python an interpreter or compiler programming language?
a)
Compiler
b)
Interpreter
16.
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
17.
If you want to create an empty list called colours in Python, which of the following is correct?
a)
colours = [ ]
b)
colours = ( )
c)
colours = { }
d)
colours = <>
18.
What will the output be from the following code?
print(3+4)
a)
3+4
b)
7
c)
SyntaxError
d)
print(3+4)
19.
print("12"*3)
What would this print?
What would this print?
a)
36
b)
121212
c)
24
d)
12*3
20.
What will the output be from the following Python code?
Print("Hello world!")
a)
NameError
b)
Hello world!
c)
"Hello world"
d)
Print(Hello world!)
Reset
