Grade 8 Computing
EOS1 Test
AY 2023-2024
Student Name
Raw Score
Class
Cambridge Grade
Teacher
MOET Score
Grade 8 Computing
November 2023
End of Semester 1 Test
Time: 60 minutes
READ THESE INSTRUCTIONS FIRST
Write your name, class and teacher’s name in the spaces provided at the top of this page.
Answer all questions.
Use a black or blue pen. You may use an HB pencil for any diagrams or graphs.
Write your answer to each question in the space provided.
Any rough working should be done on this question paper.
Do not use an erasable pen or correction fluid.
Equipment for this test:
Blue or black pen
Sharp HB or 2B pencil
Ruler
The total number of marks for this paper is 43.
Good luck!
EOS1-CAPI&CAPB-G8-COMPUTING
Page 1 of 10
Section 1 – The CPU
Label the following diagram showing a computer.
1. Write the names below.[3]
a. ____________________
b. ____________________
c. ____________________
2. Which of the following is NOT a part of the CPU? [1]
A. Control unit
B. Arithmetic and logic unit (ALU)
C. Clock
D. Memory
3. What does the clock do? [1]
a. It manages the work done by the CPU
b. It does all the calculations in the CPU
c. It sends out regular electrical pulses.
d. It stores instructions and data
4. What is the purpose in of a bus on a motherboard? [2]
EOS1-CAPI&CAPB-G8-COMPUTING
Page 2 of 10
5. What is the difference between Storage and Memory? [2]
6. Increasing the amount of RAM in a system can increase the speed of a computer’s
memory can you name one other way of doing this? [1]
7. The fetch-execute cycle happens in different
parts of the computer. A,B and C are either
“in memory”, “in the control unit" or "in the
ALU”. [3]
a. ____________
b. ____________
c. ____________
8. What type of gate is this? [1]
a. __________________
9. Fill in the truth table for a OR gate [2].
EOS1-CAPI&CAPB-G8-COMPUTING
Page 3 of 10
10. Draw the truth table for the
following circuit. [4]
EOS1-CAPI&CAPB-G8-COMPUTING
Page 4 of 10
Section 2 – Python
I would use...
whenever I want to...
11. input
A. perform actions repeatedly.
12. print
B. assign a value to a variable.
13. while
C. check a condition, to select which actions to perform.
14. if
D. read from the keyboard.
15. =
E. display to the screen.
Answers
11
12
16.
13
14
15
[5]
Read the Python program below:
Note: There may be errors in the program and/or it may not behave as expected.
1 a = int(input())
2 b = int(input())
3 max = a
4 if b < max:
5
max = b
6
print(max)
When this program is executed, assuming the user types 9 and 3 on the keyboard, what
will be displayed on the screen? (Tick the correct one)[1]
A. Nothing will be displayed on the screen.
B. 3
C. 9
D. max
EOS1-CAPI&CAPB-G8-COMPUTING
Page 5 of 10
Look at the Python program below:
Note: There may be errors in the program and/or it may not behave as expected.
1 a = int(input())
2 b = int(input())
3 avg = a + b / 2
4 print(avg)
5 max = a
6 if b > max:
7
max = b
8
print(max)
17.List the variables in the
program: [1]
18.List the lines that contain
assignments: [1]
19.Identify an arithmetic
expression in the program
and copy it here: [1]
20.Identify a Boolean expression
(a condition) in the program
and copy it here: [1]
21.List the lines in the program
that may never be executed:
[1]
EOS1-CAPI&CAPB-G8-COMPUTING
Page 6 of 10
The program below creates a list of European cities.
1 cities = ["Amsterdam", "Athens", "Belgrade",
2
"Berlin", "Bern", "Bratislava",
3
"Brussels", "Bucharest", "Budapest",
4
"Copenhagen", "Dublin", "Helsinki",
5
"Lisbon", "Ljubljana", "London",
6
"Luxembourg"]
22.
What would the program output be if the lines below were added to it? [1]
3 var = 0
4 for city in cities:
5
if city[0] == "A":
6
var = var + 1
7 print(count)
Answer
23.
Fill in the gaps in the code below, so that the collection list eventually
contains the names of all the cities where "r" is not the second letter. [3]
collection =
.
for city in cities:
if
:
.
print(collection)
EOS1-CAPI&CAPB-G8-COMPUTING
Page 7 of 10
24.A teacher keeps all the scores of their students in an array. The passing score
for the class is 70. Write a program that counts all the students that pass and
all the students that fail and outputs it to the screen. The array is below. [6]
1 cities = [45,80,66,91,95,42,15,
2
67,58,69,70,72,12,85,98,46,85]
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
25.What is the output of your program? [2]
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
- End of Test EOS1-CAPI&CAPB-G8-COMPUTING
Page 8 of 10
Feedback Sheet
Student Name
Raw Score
Class
Cambridge Grade
Teacher
MOET Score
Topic(s)
1
Your Full
mark mark
3
2
How a
computer
works
CPU
3
CPU
1
4
Busses
2
5-6
3
7
Storage and
Memory
FE Cycle
8-9
Truth Table
3
10
Truth Table
4
1115
16
Basic Python
5
Conditionals
1
1721
23
Python Terms
5
Loops
1
24
Advanced
Loops
Programming
Challenge
Total =
3
25 26
Grade 8 Computer Science
Unit 1 Test
AY 2023-2024
Notes (Teacher or Student)
Student
1
3
8
39
Teacher feedback
Student reflection
EOS1-CAPI&CAPB-G8-COMPUTING
Page 9 of 10
- BLANK PAGE -
EOS1-CAPI&CAPB-G8-COMPUTING
Page 10 of 10