Computer Science (9608) · May/June 2019 · Question paper 33
Cambridge Computer Science (9608) question paper for paper 33, May/June 2019 — 9608/33/M/J/19, file 9608_s19_qp_33.pdf.
Text of this paper
www.dynamicpapers.com
Cambridge Assessment International Education
Cambridge International Advanced Subsidiary and Advanced Level
* 2 2 6 4 6 8 4 0 1 8 *
9608/33
COMPUTER SCIENCE
May/June 2019
Paper 3 Advanced Theory
1 hour 30 minutes
Candidates answer on the Question Paper.
No Additional Materials are required.
No calculators allowed.
READ THESE INSTRUCTIONS FIRST
Write your centre number, candidate number and name in the spaces at the top of this page.
Write in dark blue or black pen.
You may use an HB pencil for any diagrams, graphs or rough working.
Do not use staples, paper clips, glue or correction fluid.
DO NOT WRITE IN ANY BARCODES.
Answer all questions.
No marks will be awarded for using brand names of software packages or hardware.
At the end of the examination, fasten all your work securely together.
The number of marks is given in brackets [ ] at the end of each question or part question.
The maximum number of marks is 75.
This document consists of 13 printed pages and 3 blank pages.
DC (ST/CT) 163543/2
© UCLES 2019
[Turn over
www.dynamicpapers.com
2
1
In a computer system, real numbers are stored using normalised floating-point representation
with:
•
•
twelve bits for the mantissa
four bits for the exponent.
The mantissa and exponent are both in two’s complement form.
(a) Calculate the denary value for the following binary floating-point number.
Show your working.
Mantissa
1
0
0
1
0
1
1
Exponent
1
0
0
1
1
0
1
1
1
Working
Answer
[3]
(b) Calculate the normalised floating-point representation of +1.5625 in this system.
Show your working.
Working
Mantissa
Exponent
[3]
© UCLES 2019
9608/33/M/J/19
3
(c) (i)
www.dynamicpapers.com
Write the largest positive number that can be stored as a normalised floating-point
number using this format.
Mantissa
Exponent
[2]
(ii)
Write the smallest non-zero positive number that can be stored as a normalised
floating-point number using this format.
Mantissa
Exponent
[2]
(d) The developer of a new programming language decides that all real numbers will now be
stored using 20-bit normalised floating-point representation. She must decide how many bits
to use for the mantissa and how many bits for the exponent.
Explain the trade-off between using either a large number of bits for the mantissa, or a large
number of bits for the exponent.
[3]
© UCLES 2019
9608/33/M/J/19
[Turn over
4
2
www.dynamicpapers.com
Cables connect the computers in a university admissions department in a star topology. The
server room contains the server and printer for the employees to use. The department has three
employees. Each employee has a computer connected to the star network.
(a) (i)
Draw a diagram to show this topology.
[3]
(ii)
Explain the benefits to the admissions department of using a star topology.
[4]
© UCLES 2019
9608/33/M/J/19
5
www.dynamicpapers.com
(b) Each department of the university has its own network. All the department networks connect
to the university’s main Local Area Network (LAN). The LAN has a bus topology and uses the
CSMA/CD protocol.
Describe the CSMA/CD protocol.
[3]
(c) Explain how the following devices are used to support the university LAN.
(i)
Router
[2]
(ii)
Network Interface Card (NIC)
[2]
(iii)
Wireless Access Point
[2]
© UCLES 2019
9608/33/M/J/19
[Turn over
6
3
www.dynamicpapers.com
(a) The following logic circuit can be simplified to use only one gate.
A
X
B
Give the name of this single gate.
[1]
(b) (i)
Complete the truth table for the logic circuit.
A
X
B
Y
A
B
0
0
0
1
1
0
1
1
Working space
X
Y
[2]
(ii)
Give the name of the logic circuit that has this truth table.
[1]
(iii)
Give the uses for outputs X and Y.
X
Y
[2]
© UCLES 2019
9608/33/M/J/19
7
www.dynamicpapers.com
(c) Consider the following Boolean algebraic expression:
A.B.C.D + A.B.C.D + A.B.C.D + A.B.C.D + A.B.C.D
Use Boolean algebra to simplify the expression. Show your working.
Working
Simplified expression
© UCLES 2019
[5]
9608/33/M/J/19
[Turn over
www.dynamicpapers.com
8
4
A compiler uses a keyword table and a symbol table. Part of the keyword table is shown.
•
•
Tokens for keywords are shown in hexadecimal.
All of the keyword tokens are in the range 00 – 5F.
Keyword
Token
01
+
02
=
03
<>
04
IF
4A
THEN
4B
ENDIF
4C
ELSE
4D
REPEAT
4E
UNTIL
4F
TO
50
INPUT
51
OUTPUT
52
ENDFOR
53
Entries in the symbol table are allocated tokens. These values start from 60 (hexadecimal).
Study the following piece of pseudocode.
0
Counter
INPUT Password
REPEAT
IF Password <> "Cambridge"
THEN
INPUT Password
ENDIF
Counter + 1
Counter
UNTIL Password = "Cambridge"
OUTPUT Counter
© UCLES 2019
9608/33/M/J/19
9
www.dynamicpapers.com
(a) Complete the symbol table to show its contents after the lexical analysis stage.
Symbol
Counter
Token
Value
Type
60
Variable
[3]
(b) The output from the lexical analysis stage is stored in the following table. Each cell stores one
byte of the output.
Complete the output from the lexical analysis using the keyword table and your answer to
part (a).
60 01
[2]
© UCLES 2019
9608/33/M/J/19
[Turn over
10
www.dynamicpapers.com
(c) The following table shows assembly language instructions for a processor which has one
general purpose register, the Accumulator (ACC).
Instruction
Explanation
Op code
Operand
LDD
<address>
Direct addressing. Load the contents of the location at the given
address to ACC
ADD
<address>
Add the contents of the given address to the ACC
STO
<address>
Store the contents of ACC at the given address
After the syntax analysis is completed successfully, the compiler generates object code.
The following lines of high level language code are compiled.
X = X + Y
Z = Z + X
The compilation produces the assembly language code as follows:
LDD
ADD
STO
LDD
ADD
STO
(i)
236
237
236
238
236
238
The final stage in the compilation process that follows this code generation stage is code
optimisation.
Rewrite the equivalent code after optimisation.
[3]
(ii)
Explain why code optimisation is necessary.
[2]
© UCLES 2019
9608/33/M/J/19
11
5
www.dynamicpapers.com
(a) Wiktor is an employee of a travel agent. He uses asymmetric encryption to send confidential
information to his manager.
Fill in the spaces with an appropriate term to complete the descriptions.
Asymmetric encryption uses different for encrypting and decrypting
data. When Wiktor sends a message to his manager, the message is encrypted into
using his manager’s key. When the
manager receives the message, it is decrypted using her key.
When the manager replies, the message is encrypted using Wiktor’s
key, and when Wiktor receives the message, it is decrypted into
using his key.
[5]
(b) When customers pay for their travel booking online, a secure connection is established using
Secure Socket Layer (SSL).
Explain how the customer’s browser and the server used to collect the payment will establish
a secure connection.
[6]
© UCLES 2019
9608/33/M/J/19
[Turn over
12
www.dynamicpapers.com
(c) The manager is concerned about the threat of malware to the company computer systems.
Name two types of malware. State what the company should do to help prevent the effect of
the malware.
The two methods of prevention must be different.
Malware type 1
Prevention
Malware type 2
Prevention
[4]
© UCLES 2019
9608/33/M/J/19
13
6
www.dynamicpapers.com
Monitoring and control systems have many different applications.
(a) Explain the importance of feedback in a control system.
[3]
(b) An indoor swimming pool is to be kept at a constant temperature of 28 degrees.
Describe the use of feedback in this control system.
[4]
(c) Give one example of a monitoring system. Explain why this is a monitoring system.
Monitoring system
Explanation
[3]
© UCLES 2019
9608/33/M/J/19
14
BLANK PAGE
© UCLES 2019
9608/33/M/J/19
www.dynamicpapers.com
15
BLANK PAGE
© UCLES 2019
9608/33/M/J/19
www.dynamicpapers.com
16
www.dynamicpapers.com
BLANK PAGE
Permission to reproduce items where third-party owned material protected by copyright is included has been sought and cleared where possible. Every
reasonable effort has been made by the publisher (UCLES) to trace copyright holders, but if any items requiring clearance have unwittingly been included, the
publisher will be pleased to make amends at the earliest possible opportunity.
To avoid the issue of disclosure of answer-related information to candidates, all copyright acknowledgements are reproduced online in the Cambridge
Assessment International Education Copyright Acknowledgements Booklet. This is produced for each series of examinations and is freely available to download
at www.cambridgeinternational.org after the live examination series.
Cambridge Assessment International Education is part of the Cambridge Assessment Group. Cambridge Assessment is the brand name of the University of
Cambridge Local Examinations Syndicate (UCLES), which itself is a department of the University of Cambridge.
© UCLES 2019
9608/33/M/J/19