Computer Science (9608) · Oct/Nov 2017 · Mark scheme 31
Cambridge Computer Science (9608) mark scheme for paper 31, Oct/Nov 2017 — 9608/31/O/N/17, file 9608_w17_ms_31.pdf.
Text of this paper
www.dynamicpapers.com
Cambridge Assessment International Education
Cambridge International Advanced Subsidiary and Advanced Level
COMPUTER SCIENCE
9608/31
Paper 3 Written Paper
October/November 2017
MARK SCHEME
Maximum Mark: 75
Published
This mark scheme is published as an aid to teachers and candidates, to indicate the requirements of the
examination. It shows the basis on which Examiners were instructed to award marks. It does not indicate the
details of the discussions that took place at an Examiners’ meeting before marking began, which would have
considered the acceptability of alternative answers.
Mark schemes should be read in conjunction with the question paper and the Principal Examiner Report for
Teachers.
Cambridge International will not enter into discussions about these mark schemes.
Cambridge International is publishing the mark schemes for the October/November 2017 series for most
®
Cambridge IGCSE , Cambridge International A and AS Level components and some Cambridge O Level
components.
® IGCSE is a registered trademark.
This document consists of 8 printed pages.
© UCLES 2017
[Turn over
Cambridge International AS/A Levelwww.dynamicpapers.com
– Mark Scheme
October/November
2017
PUBLISHED
9608/31
Question
Answer
Marks
1(a)
1
Switch
Server
Computer
A
Computer
B
Computer
C
Three lines with arrows – one from each device to switch
1(b)
Statement
True
The server can send packets to Computer B and
Computer C at the same time.
1(c)(ii)
1(c)(iii)
1
9
1
Computer B can read the packet sent from the
server to Computer C.
9
1
9
1
Device: Server
1
The server can provide a (software) firewall // The server can check all internet
traffic // Server acts as proxy
1
Device: Switch
1
Internet traffic by passes the server // Server not overloaded with internet
traffic // connected to all computers
1
1 mark for device, 1 mark for suitable reason
•
•
•
•
•
•
•
•
•
•
•
•
•
© UCLES 2017
9
The network software on each computer needs to
include collision detection and avoidance.
Computer A can send a packet to Computer B and
at the same time the server can be sending a packet
to Computer C.
1(c)(i)
4
False
2
Router acts as gateway
Router acts as a firewall
The LAN and the Internet are two different networks
(may) operate on different protocols
Router forwards packets between networks
Router has a public IP address
Router holds a list of local addresses
Router translates local addresses to Internet (IP) addresses (and vice
versa)
1 mark for each point, max 2
2
Each packet has the IP address of the web server / destination
address
The routers use routing tables
Routers on the Internet forward packets towards destination
Packets can take different routes from source to destination
Packets are reassembled in order at the web server
1 mark for each point, max 3
3
Page 2 of 8
Cambridge International AS/A Levelwww.dynamicpapers.com
– Mark Scheme
October/November
2017
PUBLISHED
9608/31
Question
Answer
2(a)
Description
Marks
Computer
architecture
Most parallel computer
systems use this architecture.
SIMD
Widely used to process 3D
graphics in video games.
MIMD
A microprocessor is used to
control a washing machine.
MISD
There are a number of
processing units. Each
processing unit executes the
same instruction but on
different data
4
SISD
1 mark for each correct line
2(b)
•
•
2(c)
•
•
•
•
•
•
2(d)
© UCLES 2017
Only one (separate) processor / not many separate processors
(is not massively parallel)
1
Quad core computer system // processing units share the same bus 1
1 mark for each point, max 2
2
Split into blocks of code «.
« that can be processed simultaneously «
« instead of sequentially
Each block is processed by a different processor
which allows each of the many processors to simultaneously process
the different blocks of code independently
Requires both parallelism and co-ordination
1 mark for each point, max 2
2
1 mark for identification of hardware issue, for example:
• Communication between the different processors is the issue
1 mark for further explanation from:
• Each processor needs a link to every other processor
• Many processors require many of these links
• Challenging topology
Page 3 of 8
2
Cambridge International AS/A Levelwww.dynamicpapers.com
– Mark Scheme
October/November
2017
PUBLISHED
9608/31
Question
Answer
Marks
3(a)(i)
There should be a colon before the '=' sign
1
3(a)(ii)
The second operand should be an unsigned integer and not a variable
1
3(a)(iii)
A32 is not a variable, as a variable should be a letter followed by a single digit
1
3(b)
3(c)
<assignment_statement> ::= <variable> :=
1
<variable> <operator> <unsigned_integer>
1
<variable> ::= <letter> <digit>
1
<unsigned_integer> ::= <digit> |
1
<digit> <unsigned_integer>
1
<letter> ::= A | B | C
<operator> ::= + | - | * | ^
1
2
Variable
Letter
<
one mark
Letter
Digit
><
Digit
one mark
Syntax diagram shows one or two letters
Syntax diagram shows zero, one or two digits
3(d)
© UCLES 2017
6
>
1
1
2
<assignment_statement> ::=
<variable> := <variable> <operator> <real>
1
<real> ::= <unsigned_integer> . <unsigned_integer>
1
Page 4 of 8
Cambridge International AS/A Levelwww.dynamicpapers.com
– Mark Scheme
October/November
2017
PUBLISHED
9608/31
Question
4(a)(i)
4(a)(ii)
Answer
Marks
A (known) set of rules
Agreed/standard method for data transmission // governs how two devices
communicate
1
2
1
Max 2 marks for purpose:
• Purpose of TLS is to provide for secure communication (over a
network)
• maintain data integrity
• additional layer of security
Max 3
Max 2 marks for further explanation from:
• TLS provides improved security over SSL
• TLS is composed of two layers / record protocol and handshake
protocol
• TLS protects this information by using encryption
• Also allows for authentication of servers and clients
4(b)
•
•
•
•
•
•
•
•
4(c)
The client validates (the server’s) TLS Certificate
The client sends its digital certificate (to the server if requested)
Client sends an encrypted message to the server using the server’s
public key
The server can use its private key to decrypt the message «
« and get data needed for generating symmetric key
Both server and client compute symmetric key (to be used for
encrypting messages) // session key established
The client sends back a digitally signed acknowledgement to start an
encrypted session
The server sends back a digitally signed acknowledgement to start an
encrypted session
1 mark for each point, max 3 points
Applications, for example:
• online banking
• private email
• online shopping
• online messaging etc.
Question
5(a)(i)
© UCLES 2017
2
1 mark for each point, Max 2
Answer
A
B
X
0
0
1
0
1
1
1
0
1
1
1
0
3
Marks
1
Page 5 of 8
Cambridge International AS/A Levelwww.dynamicpapers.com
– Mark Scheme
October/November
2017
PUBLISHED
9608/31
Question
Answer
5(a)(ii)
A
B
C
X
0
0
0
1
0
0
1
1
0
1
0
1
0
1
1
1
1
0
0
1
1
0
1
1
1
1
0
1
1
1
1
0
5(b)(i)
1
R
Q
Q
Initially
1
0
0
1
R changed to 1
1
1
0
1
1
S changed to 0
0
1
1
0
1
S changed to 1
1
1
1
0
1
S and R changed to 0
0
0
1
1
•
•
Q and Q have same value
Q and Q should be complements of each other
Flip-flop becomes unstable
1 mark for each point, max 2
•
5(c)(i)
Working space
Initial
values
Final
values
Q
J
K
Clock
Q
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
1
1
1
1
1
1
1
1
1
0
1
0
1
0
1
0
•
•
© UCLES 2017
3
S
5(b)(ii)
5(c)(ii)
Marks
Q
4
Q
0
1
0
1
0
1
0
0
1
1
0
1
0
1
0
1
1
0
0
0
1
1
1
0
1 mark per shaded row
S-R flip-flop has an invalid combination of S and R // The S_R flip flop
allows both Q and Q to have the same value // S-R flip-flop inputs
may arrive at different times
1
The J-K flip-flop does not allow for Q and Q to have the same value //
All four combination of values for J and K are valid // J-K flip-flop
incorporates a clock pulse for synchronisation
1
Page 6 of 8
2
2
Cambridge International AS/A Levelwww.dynamicpapers.com
– Mark Scheme
October/November
2017
PUBLISHED
9608/31
Question
5(d)
Answer
•
•
•
•
Marks
A flip-flop can store either a 0 or a 1
Computers use bits to store data
Flip-flops can therefore be used to store bits (of data)
Memory can be created from flip-flops
1 mark for valid point, max 2
Question
Answer
2
Marks
6(a)(i)
Control system
1
6(a)(ii)
System is controlling devices // turns heaters on and off // use of actuators
maintain the environment // makes use of feedback
1
Computer/microprocessor
« to process the sensor readings
Analogue to digital convertor
« Sensor produces analogue signal but processor requires digital data
Digital to analogue convertor
« Processor produces digital signal but actuator may require analogue sign
Actuator
« May be required to turn heater on or off
1 mark for device, 1 mark for justification, max 2 devices
4
One mark per column excluding LOWTEMP
4
6(b)
6(c)(i)
LOWTEMP
15
LOWREG
COUNTER
B00000000
1
ACC
IX
0
17
1
2
2
1
14
B00000000
B00000010
2
4
B00000010
4
2
6(c)(ii)
© UCLES 2017
•
•
•
•
•
•
COUNTER has an initial value of 1
Test for final value is before COUNTER updated
COUNTER is doubled in value each time around loop
six sensors values/bits to check
COUNTER is doubled in value 6 times // 25
Values of COUNTER at test will therefore be 1 – 2 – 4 – 8 – 16 – 32
1 mark for valid point, max 2
Page 7 of 8
2
Cambridge International AS/A Levelwww.dynamicpapers.com
– Mark Scheme
October/November
2017
PUBLISHED
9608/31
Question
6(c)(iii)
© UCLES 2017
Answer
•
•
•
•
•
•
•
Load the contents of LOWREG into ACC
Check bit position in LOWREG
For each of the least significant 6 bits
Use AND operation / mask to isolate a bit
Jump to code corresponding to bit being looked at
if value of bit is 1
Send signal to appropriate actuator to turn on the heater
1 mark for valid point, max 3
Page 8 of 8
Marks
3