Computer Science paper 3
Computer Science paper 3
* 4 9 7 1 7 0 3 6 1 7 *
1 hour 30 minutes
INSTRUCTIONS
● Answer all questions.
● Use a black or dark blue pen.
● Write your name, centre number and candidate number in the boxes at the top of the page.
● Write your answer to each question in the space provided.
● Do not use an erasable pen or correction fluid.
● Do not write on any bar codes.
● You may use an HB pencil for any diagrams, graphs or rough working.
● Calculators must not be used in this paper.
INFORMATION
● The total mark for this paper is 75.
● The number of marks for each question or part question is shown in brackets [ ].
● No marks will be awarded for using brand names of software packages or hardware.
12 pages.
This document has 16
DC (DE) 352034/4
© UCLES 2024 [Turn over
2
1 Real numbers are stored in a computer system using floating-point representation with:
(a) Calculate the normalised floating-point representation of –7.25 in this system. Show your
working.
Working .....................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
................................................................................................................................................... [3]
3
(b) Calculate the denary value of the given binary floating-point number. Show your working.
Working .....................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
System 1 uses:
System 2 uses:
(a) Calculate the normalised floating-point representation of 113.75 and show how it would be
represented in each of these two systems.
4
Working .....................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
................................................................................................................................................... [4]
(b) Explain the problem that occurred in part (a) when representing the number in system 2.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
5
3 (a) Outline why protocols are essential for communication between computers.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
(b) State the names of two different protocols associated with the sending and receiving of
emails between computers.
Sending ....................................................................................................................................
(c) Explain the meaning of the phrase: BitTorrent protocol provides peer-to-peer file sharing.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
................................................................................................................................................... [3]
6
4 (a) State two examples of where it would be appropriate to use packet switching.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
................................................................................................................................................... [2]
(b) Give four differences between circuit switching and packet switching.
1 ................................................................................................................................................
.....................................................................................................................................................
2 ................................................................................................................................................
....................................................................................................................................................
3 ................................................................................................................................................
....................................................................................................................................................
4 ................................................................................................................................................
....................................................................................................................................................[4]
7
.........................................................................................................................................................
.........................................................................................................................................................
.........................................................................................................................................................
.........................................................................................................................................................
.........................................................................................................................................................
....................................................................................................................................................[3]
6 Reduced Instruction Set Computers (RISC) and Complex Instruction Set Computers (CISC)
are two types of processor.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
.................................................................................................................................................. [2]
(b) Outline the process of interrupt handling as it could be applied to RISC or CISC processors.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
................................................................................................................................................... [3]
8
(c) Explain how pipelining affects interrupt handling for RISC processors.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
................................................................................................................................................... [3]
9
67 Mahmoud is developing a new application, MyApp, that needs to work with three different
operating systems (OS1, OS2 and OS3).
He has decided to use virtual machine software to test MyApp with these three different operating
systems.
OS4
Hardware
(a) Describe the roles of the four operating systems (OS1, OS2, OS3 and OS4) shown in the
diagram.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
(b) Describe the role of the virtual machine software in the testing of MyApp.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
© UCLES 2020 9608/32/O/N/20
10
(c) Explain one benefit and one drawback of this approach to testing MyApp.
Benefit ......................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
Drawback ..................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[4]
8 A declarative programming language is used to represent some facts about people and their
hobbies.
01 hobby(music).
02 hobby(caving).
03 hobby(climbing).
04 hobby(camping).
05 hobby(baking).
06 hobby(travelling).
07 person(toby).
08 person(natasha).
09 person(fatima).
10 person(joseph).
11 person(elijah).
12 person(nina).
13 enjoys(natasha, travelling).
14 enjoys(toby, climbing).
15 enjoys(nina, climbing).
16 enjoys(elijah, camping).
17 enjoys(fatima, baking).
18 enjoys(joseph, camping).
19 dislikes(toby, caving).
(a) Carlos is a person who enjoys the hobby of cycling but does not like music. Write additional
clauses to represent this information.
20 ............................................................................................................................................
21 ............................................................................................................................................
22 ............................................................................................................................................
23 ............................................................................................................................................ [4]
enjoys(P, camping)
returns
P = elijah, joseph
.................................................................................................................................... [1]
(c) N is a person who might enjoy H if H is a hobby and N does not dislike H.
might_enjoy(N, H) IF
..................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [4]
13
1 ................................................................................................................................................
...................................................................................................................................................
2 ................................................................................................................................................
...................................................................................................................................................
3 ................................................................................................................................................
................................................................................................................................................... [3]
Instance ....................................................................................................................................
...................................................................................................................................................
Inheritance ................................................................................................................................
...................................................................................................................................................
Polymorphism ...........................................................................................................................
................................................................................................................................................... [3]
14
Complete the pseudocode for the class Car to enable objects to be created. The class needs to
include:
• string attributes to store the make, model, body type and fuel type
• an integer attribute to store the number of cars of that type built.
The attributes must be available only through the methods of the class.
CLASS .....................................
PRIVATE ................................................................
................................................................................
................................................................................
................................................................................
.....................................................)
Make ← ......................................
Model ← ......................................
BodyType ← CarBodyType
Fuel ← ""
NumberBuilt ← 0
ENDPROCEDURE
GetFuel()
GetNumberBuilt()
..................................... [5]
15
11 A program is to be written using Object-Oriented Programming (OOP) for a shop that sells
knitting yarn. There are three types of yarn: acrylic, wool or mix.
• Name
• Colour
• Batch code
• Weight
• Number of balls of yarn in stock (can be edited)
• Type of yarn
Each type of yarn has a method that will display all the information about the yarn.
(a) Complete this class inheritance diagram to show the properties, methods and inheritance.
16
12