wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

COMPUTER 10 -QUIZ REVIEW (FIRST TERM)2025-2026

Total questions: 45

Worksheet time: 41mins

Name
Class
Date
1.

Write the correct output of the program below. 

x=  20
y= -20
z=x*y
if z>=0:
    print("positive")
else:
    print("negative")

(a)  

2.

Which of the following is a data type in Python? Select multiple answers.

a)

int

b)

words

c)

string

d)

decimals

3.
What is the name of the programming language we are learning?
a)
Scratch
b)
Python
c)
Pie thin
d)
Scribble
4.

What is the output of the code shown in the image?

a)

#

#

#

#

b)

####

c)

#

##

###

####

d)

#

##

###

####

#####

5.

What would be printed by the command

print('12-5')

a)

12-5

b)

'12-5'

c)

7

d)

'7'

6.

It is a function that able to input decimal values.

a)

float

b)

input

c)

double

d)

integer

7.
The number or word we give to a variable
a)
Value
b)
Bug
c)
Information
d)
Text
8.

What is the Python built-in function used to display numbers and text on the screen?

a)

print

b)

input

c)

output

d)

command

9.
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
10.
What extension must you add to the end of a file when saving?
a)
.xlsx
b)
.pptx
c)
.docx
d)
.py
11.

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 = <>

12.
What letter will be printed on the screen after running this code:
a)
e
b)
x
c)
t
d)
Nothing prints
13.
What is the position of the name "Robert" in the following list:
a)
0
b)
1
c)
2
d)
3
14.
In the following code, "city" is an example of a what?
a)
List
b)
Loop
c)
Variable
d)
Array
15.

Each item in a list has an index. What is the first index in a Python list?

a)

0

b)

1

c)

a

d)

A

16.

What will the output be from the following code?

print(3+4)

a)

3+4

b)

7

c)

SyntaxError

d)

print(3+4)

17.
print("12"*3)
What would this print?
a)
36
b)
121212
c)
24
d)
12*3
18.

What will the output be from the following Python code?

print(9/3)

(a)  

19.

What is the Python built-in function to converts a number to a string?

(a)  

20.
The correct way to write a variable in Python?
a)
my_variable = 10
b)
my variable = 10
c)
my_variable is 10
d)
my_variable: 10
21.

Which of these is correct Python conditional statement?

a)

IF answer == "Yes":

b)

if answer == "Yes"

c)

if answer == "Yes":

d)

if answer = "yes":

22.

What is the word (command) used to display numbers and text on the screen?

(a)  

23.

What is the word (command) used to input text?

(a)  

24.
What is Python?
a)
text based programming language
b)
word processor 
c)
spreadsheet
d)
block based programming language
25.

What is the output

print("HI")

a)

HI

b)

Hi

c)

'HI'

d)

hI

26.

What is the output

print("HI Ali")

a)

HI Ali

b)

Hi ali

c)

hi Ali

d)

hI Ali

27.
What will the output be from the following code?
print("Hello world!")
a)
SyntaxError
b)
Hello world!
c)
"Hello world!"
d)
print(Hello world!)
28.
What will the output be from the following code?
print(3*4+5)
a)
27
b)
17
c)
12
d)
SyntaxError
29.
What will the output be from the following code?
print("3*4+5")
a)
SyntaxErrror
b)
17
c)
3*4+5
d)
12
30.
Look at this code, how many times will it loop?
a)
50
b)
90
c)
0
d)
4
31.

It is a variable that will contain the name entered from the keyboard.

a)

keyboard

b)

name

c)

print

d)

input

32.

What is the output?

a)

3

b)

3

7

c)

3

5

7

d)

7

33.

What is the output?

a)

next

stop

b)

next

c)

stop

d)

syntax error - program doesn't work

34.

What is the output?

a)

250.0

b)

200.0

c)

300.0

d)

350.0

35.

What is the output?

a)

more than 7

b)

more than 23

c)

spam

d)

7

36.

What is the output?

a)

True

b)

False

c)

condition1

d)

condition2

37.

What is the output?

a)

condition

b)

True

c)

Program has a syntax error.

d)

3 > 2

38.

The result of this program:

Friday = False

if Friday:

print "Jeans day!"

else:

print "Uniform day"

a)

Jeans day

b)

Today is Friday

c)

Uniform day

d)

Not Friday

39.
This operator means that one value is not equal to another value
a)
==
b)
<=
c)
>=
d)
!=
40.

What is the output?

a)

3

b)

3

7

c)

3

5

7

d)

7

41.

What is the output?

a)

True

b)

NIL

c)

True

NIL

d)

True

NIL

NIL

42.

What is the output?

a)

level 3

b)

level 3

level 1

c)

level 3

level 1

NIL

d)

level 3

level 2

level 1

NIL

43.

What would be the output of the following code:

for i in range(3):

print(i)

a)

1 2 3

b)

i i i i

c)

i i i

d)

0 1 2

44.

What would be the output of the following code:

for i in range(3):

print(5)

a)

0 1 2

b)

3 3 3 3 3

c)

5 5 5

d)

0 1 2 3 4

45.

What will this code do?

a)

Print Numbers 1-11

b)

Print Numbers 1-10

c)

Print Numbers 2-10

d)

Print Error