Professional Documents
Culture Documents
YEAR 8
JUNE 2022
MATERIALS REQUIRED FOR EXAM: Blue or black pen, pencil, eraser and ruler.
If you have been given an Answer Booklet, follow the instructions on the front cover of the
booklet.
Write in dark blue or black pen.
You may use a soft pencil for any drawings, diagrams and graphs.
Do not use staples, paper clips, highlighters, glue or correction fluid.
[Turn over]
[6]
[4]
………………………………………………………………………………………………………………………………………..
b. Write the command to append the value “Computer Science” to the list.
………………………………………………………………………………………………………………………………………..
………………………………………………………………………………………………………………………………………..
………………………………………………………………………………………………………………………………………..
c. Write the command to get user input and add it to the list.
………………………………………………………………………………………………………………………………………..
………………………………………………………………………………………………………………………………………..
[3]
YEAR END EXAMINATION_COMPUTER_SCIENCE_YEAR8_ JUNE_2022 _USHA Page 3
4 This command creates a list :
………………………………………………………………………………………………………………………………………..
………………………………………………………………………………………………………………………………………..
………………………………………………………………………………………………………………………………………..
………………………………………………………………………………………………………………………………………..
c. Write the command to get user input and add it to the list.
………………………………………………………………………………………………………………………………………..
………………………………………………………………………………………………………………………………………..
[3]
5 Explain this Python program.
stop = len(atoms)
for i in range(stop):
print[atoms[i])
[3]
x = int(1)
y = int(2.8)
z = int("3")
print(x)
print(y)
print(z)
[4]
[5]
i. ………………………………………………………………
ii. ………………………………………………………………
iii. ………………………………………………………………
[3]
[Total: 4]
i. ………………………………………………………………
ii. ………………………………………………………………
iii. ………………………………………………………………
[3]
[8]
a. You are asked to calculate the total number of Doctors in each clinic. Which column would
hold this data?
……………………………………………………………………………………………………………………………………………
……………………………………………………………………………………………………………………………………………
b. What formula would you use?
……………………………………………………………………………………………………………………………………………
……………………………………………………………………………………………………………………………………………
c. You are asked to calculate the total number of Nurses in each clinic. Which column would
hold this data?
……………………………………………………………………………………………………………………………………………
……………………………………………………………………………………………………………………………………………
d. What formula would you use?
……………………………………………………………………………………………………………………………………………
……………………………………………………………………………………………………………………………………………
[4]