ADMISSION
NUMBER
DATE
MONTHLY TEST - OCTOBER 2022
GRADE 9 (EDEXCEL)
COMPUTER SCIENCE
Duration : 2 periods
INSTRUCTIONS TO CANDIDATES
Instructions
• Use black ink or ball-point pen.
• Fill in the boxes at the top of this page with your admission number and date.
• Answer all questions.
• Answer the questions in the spaces provided
– there may be more space than you need.
Information
• The total mark for this paper is 50.
• The marks for each question are shown in brackets
– use this as a guide as to how much time to spend on each question.
• Calculators are not allowed.
Advice
• Read each question carefully before you start to answer it.
• Try to answer every question.
• Check your answers if you have time at the end.
Grade 9 (Edexcel) Computer Science - Monthly Test - October 2022
Prepared for Lyceum International Schools by Lyceum Assessments
2
1. A car has many embedded systems.
An embedded system processes binary numbers.
(i) The speed limit for some roads is 60 miles per hour.
Convert the denary number 60 to 8-bit binary.
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
(2 marks)
(ii) The car displays speed limits in denary.
Convert the 8-bit binary number 0010 0011 to denary.
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
(2 marks)
(iii) The embedded system adds numbers in binary.
Complete the table to show the result of 0010 0011 + 0100 1010
(2 marks)
(iv) Complete the table to show the result of 0110 0111 + 0100 1111
0 0 1 0 0 0 1 1
0 1 0 0 1 0 1 0
(2 marks)
(v) Explain why computers use binary to represent data?
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
(2 marks)
[Total for question 1 = 10 marks]
Grade 9 (Edexcel) Computer Science - Monthly Test - October 2022
Prepared for Lyceum International Schools by Lyceum Assessments
3
2. Private Postal People (P-Cubed) is a national delivery service specialising in small letters, large
letters, small packages, and medium packages. The company has regional depots across the
country. The company runs a fleet of delivery vans. It uses technology to help run the business.
It does not deliver internationally.
P-Cubed has 2000 employees, some based in the head office, some working in the regional
sorting offices and some driving the delivery vans.
P-Cubed uses automatic sorting machines.
Letters are unloaded onto an automatic sorting machine. The machine weighs each letter. Letters
are sent along different paths based on their weight. After 1000 letters are sorted, a bell is
sounded to alert an operator to load more letters.
Here are some flowchart symbols.
Grade 9 (Edexcel) Computer Science - Monthly Test - October 2022
Prepared for Lyceum International Schools by Lyceum Assessments
4
(a) Complete the flowchart to implement the letter sorting algorithm by using the symbols
provided. Use all the symbols. Use each symbol only once. Use as many arrows and
Yes/No labels as required.
This flowchart symbol is used to show input or output.
(6 marks)
Grade 9 (Edexcel) Computer Science - Monthly Test - October 2022
Prepared for Lyceum International Schools by Lyceum Assessments
5
(b) P-Cubed stores information about its employees on a server.
Employees earn days of holiday based on how long they have worked at P-Cubed.
For the first two years, employees get 10 days of holiday each year.
In subsequent years, employees get an additional 0.5 days of holiday for each year worked.
The employee record has a variable called 'startYear'.
Construct a general expression (written description) to calculate the total number of days of
holiday earned by an employee, for this year, who has worked for P-Cubed for more than
two years.
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
(4 marks)
(c) First name, last name, and start year are items that are stored as variables in an employee
record.
State two other items that need to be stored as variables for each employee.
1 ---------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------
2 ---------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------
(2 marks)
[Total for question 2 = 12 marks]
Grade 9 (Edexcel) Computer Science - Monthly Test - October 2022
Prepared for Lyceum International Schools by Lyceum Assessments
6
3. Margaret runs an ice cream kiosk in a seaside town. She makes and sells ice cream. She also
sells sweets, hot and cold drinks, and cookies.
(a) Margaret is making some special offers to customers.
Customers can get a money off voucher for their favourite item.
Customers whose favourite item is ice cream get a money off voucher for ice cream.
Customers whose favourite item is cookies get a money off voucher for cookies.
Customers who do not choose either get a money off voucher for drinks.
This shape represents input or output.
Complete the flowchart to show this process.
(6 marks)
Grade 9 (Edexcel) Computer Science - Monthly Test - October 2022
Prepared for Lyceum International Schools by Lyceum Assessments
7
(b) Margaret has developed her own recipes for different flavors of ice cream. The recipes use
only natural ingredients.
Here is Margaret's recipe for strawberry ice cream.
She stores all her recipes on a computer. One variable is needed to hold the amount of fruit
and another is needed to hold the number of eggs.
The process for making a single batch of ice cream is shown in the table.
The ice cream maker must be sterilised at the end of each day. This takes 20 minutes.
Construct a general expression (written description) to show how many batches of ice cream
can be made in any number of hours.
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
(2 marks)
(c) State two additional variables that need to be created to store the recipes for ice cream.
1 ---------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------
2 ---------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------
(2 marks)
Grade 9 (Edexcel) Computer Science - Monthly Test - October 2022
Prepared for Lyceum International Schools by Lyceum Assessments
8
(d) Margaret uses a program to help her determine the selling price for each batch of ice cream
based on the production cost, profit and tax.
The pseudocode for an algorithm to calculate the selling price of ice cream is shown. The
items TAX and PROFIT are constants.
Explain why it is good programming practice to define values as constants, rather than as fixed
values in the code.
--------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------
(3 marks)
[Total for question 3 = 13 marks]
Grade 9 (Edexcel) Computer Science - Monthly Test - October 2022
Prepared for Lyceum International Schools by Lyceum Assessments
9
4. Algorithms are essential in computer system development.
(a) What is an algorithm? Define the term.
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
(2 marks)
(b) Write an algorithm using pseudocode to enter 3 numbers and find which number is larger
using conditional statements.
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
(5 marks)
[Total for question 4 = 7 marks]
Grade 9 (Edexcel) Computer Science - Monthly Test - October 2022
Prepared for Lyceum International Schools by Lyceum Assessments
10
5. (a) A driving school uses this rule to estimate how many lessons a learner will require.
Every leaner requires at least 40 lessons. Leaners over the age of 18 require more lessons (2
additional lessons for each year over 18).
Write a pseudocode or create a program in a high-level language that inputs a learner’s age
and calculates the number of driving lessons they will need.
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
(4 marks)
(b) Create a program in a high-level language to store following country names in a list. Print
items in the list one after the other.
Country names = Sri Lanka, Japan, South Korea, China, Australia
Selected programming language -----------------------------------------
Program code:
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
(4 marks)
[Total for question 5 = 8 marks]
[Total for the paper = 50 marks]
END
Ref : AP
Grade 9 (Edexcel) Computer Science - Monthly Test - October 2022
Prepared for Lyceum International Schools by Lyceum Assessments