Worksheetspython_1
Total questions: 22
Worksheet time: 11mins
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 word (command) used to input text?
a)
print
b)
input
c)
output
d)
command
3.
What is the name of the programming language we are learning?
a)
Scratch
b)
Python
c)
Pie thin
d)
Scribble
4.
What is Python?
a)
text based programming language
b)
word processor
c)
spreadsheet
d)
block based programming language
5.
What extension must you add to the end of a file when saving?
a)
.xlsx
b)
.pptx
c)
.docx
d)
.py
6.
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
7.
What is the output
print("HI")
a)
HI
b)
Hi
c)
hi
d)
hI
8.
What is the output
print("Hi")
a)
HI
b)
Hi
c)
hi
d)
hI
9.
What is the output
print("hi")
a)
HI
b)
Hi
c)
hi
d)
hI
10.
What is the output
print("hi Ali")
a)
HI Ali
b)
Hi ali
c)
hi Ali
d)
hI Ali
11.
What is the output
print("HI Ali")
a)
HI Ali
b)
Hi ali
c)
hi Ali
d)
hI Ali
12.
What will the output be from the following code?
print("Hello world!")
print("Hello world!")
a)
SyntaxError
b)
Hello world!
c)
"Hello world!"
d)
print(Hello world!)
13.
What will the output be from the following code?
Print("Hello world!")
Print("Hello world!")
a)
NameError
b)
Hello world!
c)
"Hello world"
d)
Print(Hello world!)
14.
What will the output be from the following code?
print(3+4)
print(3+4)
a)
3+4
b)
7
c)
SyntaxError
d)
print(3+4)
15.
What will the output be from the following code?
print("3+4")
print("3+4")
a)
7
b)
3+4
c)
34
d)
SyntaxError
16.
What will the output be from the following code?
print(3*4)
print(3*4)
a)
34
b)
7
c)
12
d)
3*4
17.
What will the output be from the following code?
print(3*4+5)
print(3*4+5)
a)
27
b)
17
c)
12
d)
SyntaxError
18.
What will the output be from the following code?
print("3*4+5")
print("3*4+5")
a)
SyntaxErrror
b)
17
c)
3*4+5
d)
12
19.
What will the output be from the following code?
print(9/3)
print(9/3)
a)
3
b)
3.0
c)
9/3
d)
SyntaxError
20.
What will the output be from this code?
a)
Hello world!
b)
Hello + world!
c)
SyntaxError
d)
"Hello" "world!"
21.
What will the output be from this code?
a)
Hello world today
b)
"Hello" "world" "today"
c)
Hello + world + today
d)
SyntaxError
22.
What will the output be from the following code?
print("Hello" + 2 + "world")
print("Hello" + 2 + "world")
a)
Hello 2 world
b)
Hello2world
c)
TypeError
d)
HelloHelloworld
100 %
