Font size
WorksheetsCOMPUTER 10 -QUIZ REVIEW (FIRST TERM)2025-2026
Total questions: 45
Worksheet time: 41mins
Write the correct output of the program below.
x= 20
y= -20
z=x*y
if z>=0:
print("positive")
else:
print("negative")
(a)
Which of the following is a data type in Python? Select multiple answers.
int
words
string
decimals
What is the output of the code shown in the image?
#
#
#
#
####
#
##
###
####
#
##
###
####
#####
What would be printed by the command
print('12-5')
12-5
'12-5'
7
'7'
It is a function that able to input decimal values.
float
input
double
integer
What is the Python built-in function used to display numbers and text on the screen?
input
output
command
If you want to create an empty list called colours in Python, which of the following is correct?
colours = [ ]
colours = ( )
colours = { }
colours = <>
Each item in a list has an index. What is the first index in a Python list?
0
1
a
A
What will the output be from the following code?
print(3+4)
3+4
7
SyntaxError
print(3+4)
What would this print?
What will the output be from the following Python code?
print(9/3)
(a)
What is the Python built-in function to converts a number to a string?
(a)
Which of these is correct Python conditional statement?
IF answer == "Yes":
if answer == "Yes"
if answer == "Yes":
if answer = "yes":
What is the word (command) used to display numbers and text on the screen?
(a)
What is the word (command) used to input text?
(a)
What is the output
print("HI")
HI
Hi
'HI'
hI
What is the output
print("HI Ali")
HI Ali
Hi ali
hi Ali
hI Ali
print("Hello world!")
print(3*4+5)
print("3*4+5")
It is a variable that will contain the name entered from the keyboard.
keyboard
name
input
What is the output?
3
3
7
3
5
7
7
What is the output?
next
stop
next
stop
syntax error - program doesn't work
What is the output?
250.0
200.0
300.0
350.0
What is the output?
more than 7
more than 23
spam
7
What is the output?
True
False
condition1
condition2
What is the output?
condition
True
Program has a syntax error.
3 > 2
The result of this program:
Friday = False
if Friday:
print "Jeans day!"
else:
print "Uniform day"
Jeans day
Today is Friday
Uniform day
Not Friday
What is the output?
3
3
7
3
5
7
7
What is the output?
True
NIL
True
NIL
True
NIL
NIL
What is the output?
level 3
level 3
level 1
level 3
level 1
NIL
level 3
level 2
level 1
NIL
What would be the output of the following code:
for i in range(3):
print(i)
1 2 3
i i i i
i i i
0 1 2
What would be the output of the following code:
for i in range(3):
print(5)
0 1 2
3 3 3 3 3
5 5 5
0 1 2 3 4
What will this code do?
Print Numbers 1-11
Print Numbers 1-10
Print Numbers 2-10
Print Error
