wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Year 9 Semester 1 Final Quiz

Total questions: 52

Worksheet time: 46mins

Name
Class
Date
1.

A list is a variable that has many variables in it

a)

Yes

b)

No

c)

I don't know

2.

the variable height will accept values like 1.67 or 1.75

height=_____ input("What is your height in meters?")

a)

int

b)

string

c)

float

d)

list

3.

L = [23,56,21,1,0,67,8]

What is the value of L[3]

a)

23

b)

1

c)

0

d)

56

4.

X = 3

Y = 2 * X

X = X - Y

How much is X at the end?

a)

3

b)

-3

c)

0

d)

1

5.

You should use a WHILE loop if we don't know how many times the loop will repeat

a)

True

b)

False

c)

It doesn't matter

6.

For x in range (110,34,-1)

print(x)

what is the sequence that will print?

a)

31,32,33,..110

b)

34,33,32,31,...

c)

110,109,108,...

d)

110,108,106,...,34

7.

L =[27, 39, 6, 26, 10, 37]

How to add 25 to the list?

a)

L.pop(25)

b)

L.append(25)

c)

append(L,25)

d)

max(L)=25

8.

What is the output/the Total?

a)

3

b)

10

c)

8

9.

a)

1

b)

y

c)

x

d)

-1

10.
a)

x

b)

y

c)

count

d)

1

11.

What will the be list ?

a)

21,12,18,9,12,3,24,16

b)

21,12,18,9,12,3,24,16,3

c)

3,21,12,18,9,12,3,24,16

12.

Which one is correct?

a)
b)
13.



(a)  

14.

L = [12,34,5,5,8]

Which instruction gives us the position of a specific item of the list?

a)

sum

b)

len

c)

index

d)

max

15.
a)

age

b)

x

c)

age[names]

d)

age[x]

16.

L = ['John', 'Mary','Matt','Andy','Susan','Emily','Frank','Qiqi']

How to print the list ?



(a)  

17.
Which is the most appropriate data type for: "13th December"
a)
Float
b)
Boolean
c)
Integer
d)
String
18.
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
19.
Used to make comments
a)
#
b)
%
c)
**
d)
()
20.

If the user enters 60, what is the output?

a)

You are old!

b)

You are middle-aged!

c)

You are young!

d)

Error message

21.

What is the correct order of the following?

a)

if

elif

else

b)

if

elif

else

elif

c)

if

else

elif

d)

else

if

22.

Select the correct answer:


x = 15

y = 4


print(x // y)

a)

3

b)

3.75

c)

4

d)

5

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

What is the Python code needed to ask a user for input?

a)

input("what is your name?")

b)

input="what is your name?"

c)

(input)=what is your name?

d)

input=what is your name?

26.
Which loop of the following repeat the code 5 times?
a)
for x in range (1,5,1)
b)
for x in range (1,4,1)
c)
for x in range (1,6,1)
d)
for x in range (6)
27.

Guess the output.

a)

11

2

b)

0

11

c)

11

0

d)

11

3

28.

Guess the output.

a)

The answer is 5

b)

error

c)

The answer is five

29.

Most computers use a system of colors that combine

a)

Red Green and Yellow

b)

Black and White

c)

Red Green and Blue

d)

The primary colors

30.

Which of these are image files?

a)

jpg

b)

gif

c)

mp3

d)

mp4

e)

png

31.

Which of the following are are sound file types?

a)

jpg

b)

mp3

c)

wav

d)

png

32.

Audacity is a free software for

a)

editing images

b)

creating graphs

c)

editing sounds

d)

3d graphics

33.

What is the colour depth of this image?

a)

7 colours

b)

8 colours

c)

3 bits

d)

24 bits

34.
Which logic gate is this? (a)  
Choose from the below words
AND
NOR
NOT
OR
35.
Which logic gate is this? (a)  
Choose from the below words
AND
OR
XOR
NOT
36.
Which truth table is this? (a)  
Choose from the below words
NOT
AND
OR
NAND
37.

If I only like sandwiches with egg AND bacon. Do I like bacon sandwiches?

a)

yes

b)

no

c)

it depends

38.

I will go to the party if Billy or Bob are there - will I go if only Billy is there?

a)

yes

b)

no

c)

it depends

39.

What will this gate's output be?

a)

0

b)

1

40.
How many megabytes are in 1 gigabyte?
a)
1024
b)
1
c)
1024 x 10 = 10240
41.
In computing, a bit is
a)
8 bytes
b)
a single    0 or 1     on or off
42.

The hexadecimal B is (a)   in denary

43.

Convert the value below to decimal

10110

(a)  

44.

Reorder the following from largest to smallest

a)

gigabyte

b)

megabyte

c)

kilobyte,

d)

byte

e)

bit

1)
2)
3)
4)
5)
45.

What is the colour depth of the image?

a)

colour depth of 1

b)

colour depth of 2

c)

colour depth of 4

d)

colour depth of 16

46.
The following is a correct order of units of storage from lowest to highest:
a)
a bit, a nibble, a byte, a kilobyte, a megabyte, a gigabyte, a terabyte
b)
a bit, a byte, a nibble, a kilobyte, a megabyte, a gigabyte, a terabyte
c)
a bit, a nibble, a byte, a megabyte, a kilobyte, a gigabyte, a terabyte
d)
a byte, a bit, a nibble, a megabyte, a kilobyte, a gigabyte, a terabyte
47.

Convert 129 to binary

a)

10000001

b)

01111110

c)

01000000

d)

11001100

48.

Which block of code allows you to play a sound file?

a)
b)
c)
d)
49.

Which one is the Thunkable icon?

a)
b)
c)
d)
50.

What fun activity do you have planned for the CNY holiday? Write one word one

2 lines
51.

What is your Chinese new year Resolution? What do you want to do better next year?
1 or 2 words only

2 lines
52.

Draw here the Chinese new Year zodiac animal for 2024. Add the SOIS word in it.
You get 5, 3 or 1 point to add to your score.