Computing (9691) · May/June 2016 · Mark scheme 31

Cambridge Computing (9691) mark scheme for paper 31, May/June 2016 — 9691/31/M/J/16, file 9691_s16_ms_31.pdf.

Advertisement
Loading the paper…

More Computing (9691) papers

Paper 31 in other years

All Computing papers
Text of this paper

Cambridge International Examinations
Cambridge International Advanced Subsidiary Level

COMPUTING

9691/31
May/June 2016

Paper 3 Written Paper
MARK SCHEME
Maximum Mark: 90

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 will not enter into discussions about these mark schemes.
Cambridge is publishing the mark schemes for the May/June 2016 series for most Cambridge IGCSE®,
Cambridge International A and AS Level components and some Cambridge O Level components.

® IGCSE is the registered trademark of Cambridge International Examinations.

This document consists of 8 printed pages.
© UCLES 2016

[Turn over

Page 2
1

Mark Scheme
Cambridge International AS Level – May/June 2016

Syllabus
9691

Paper
31

(a) The rule is defined is terms of itself
Rule 6

[1]
[1]

(b) (i) dog
This is a <noun> using rule 3
A <noun> is a <nounPhrase> using rule 4

[1]
[1]

(ii) a puppy sat
<article><noun><verb>
puppy is not a valid <noun>

[1]
[1]

(iii) a cat slept the snake

Max [4]

<article><noun><verb><article><noun>
1
3
2
1
3
<nounPhrase><verb><nounPhrase>
4
4
<verbPhrase><nounPhrase>
5
<sentence><nounPhrase>
6
<sentence>
6
1 mark for each key-change row
(iv) <adverb> ::= quietly | quickly | slowly
<verbPhrase> ::=
<nounPhrase><verb> | <nounPhrase><adverb><verb>

2

[1]
[1]
[1]

(a) The table has a repeated group of attributes //
BandName + Genre + NumberInBand + SetFee are repeated for each manager

[1]

(b) (i) Many bands are managed by one manager // many-to-one

[1]

(ii) The primary key ManagerName in the MANAGER table
links to foreign key ManagerName in the BAND table.

[1]
[1]

(c) There are non-key attributes which are dependent on only part of the primary key
Genre + NumberInBand and SetFee will be known from only the BandName

© Cambridge International Examinations 2016

[1]
[1]

Page 3

Mark Scheme
Cambridge International AS Level – May/June 2016

Syllabus
9691

(d) (i) Issue 1
The Booking table now includes an AgreedFee attribute

Paper
31
[1]

(ii) Issue 2
The booking table now records a BookingTime

[1]

(iii) Issue 3
There is an additional table VENUE

[1]

(iv)
Table

Primary key

BAND

BandName

MANAGER

ManagerName
BandName-BookingDateBookingTime

BOOKING

ManagerName

BandName
VenueName

VenueName

VENUE

3

Foreign key(s)
(if any)

(a) (i) x a b + /

[1]

(ii) p 2 ^ 2 q + 3 / +
(1)

(1)

[2]

(b) 3 * (a + b + c + d – e)
(1)

(1)

[2]

© Cambridge International Examinations 2016

Page 4

Mark Scheme
Cambridge International AS Level – May/June 2016

Syllabus
9691

Paper
31

(c)

[8]
RPNString

x y +

ThisChar

StackContents

Temp

INFIXString

x
x

y

+

y
x

y
x

y
x

y
x

+ y
x

x

x + y

(x + y)

(x+y)

© Cambridge International Examinations 2016

Page 5
4

Mark Scheme
Cambridge International AS Level – May/June 2016

(a) Byte 1: 31
Byte 2: -63

Syllabus
9691

(1)
(1)

[2]

(b) 93 07
1 mark per byte

[2]

(c) 6A F5
1 mark per byte

[2]

(d) (i) The mantissa starts with a 1 digit

[1]

(ii) Mantissa: −1 + 5/16 // − 11/16 // − 0.6875
Exponent: 11

[2]

(iii) −11/16 * 2^11 // −11 * 2^7 // −1408

[1]

(e) The mantissa starts with 10 // the first two bits of the mantissa are different

[1]

(f)

[1]

Smallest
0

1

0

0

0

0

0

0

1

0

0

0

0

0

0

0

Largest
0

5

Paper
31

1

[1]
1

1

1

1

1

1

0

1

1

1

1

1

1

1

(a) (i) Dynamic data structure changes size at execution time
A static data structure has a fixed size
(ii) Dynamic data structure matches the size to data requirements //
Takes memory from heap as required //
returns memory as required (following node deletion) //
There is no wasted memory space / makes efficient use of memory
(b) ABBOT
1

(1)
(1)

© Cambridge International Examinations 2016

[1]
[1]
[1]

[2]

Page 6

Mark Scheme
Cambridge International AS Level – May/June 2016

Syllabus
9691

(c)

Paper
31
[3]

Mark as follows:
HeadSurname = 4
Names in correct order
Link pointers correct

(1)
(1)
(1)

(d) (i)

[3]
HeadBalance 31
134

332

28

156

227

Mark as follows:
New node inserted
332 for the correct node
28 for the correct node

(1)
(1)
(1)

(ii) Start at the head pointer
Follow the link pointers until
The value found is greater than the value to insert
Pointer of previous item points to new item
New item pointer points to next item in the list

(1)
(1)
(1)
(1)
(1)

© Cambridge International Examinations 2016

Max [4]

Page 7
6

Mark Scheme
Cambridge International AS Level – May/June 2016

Syllabus
9691

Paper
31

(a) A production line paint sprayer
“The robot is a mechanical device”:
The chassis and robotic arm are a mechanical device

[1]

“Movable”
The paint sprayer arm must be able to position correctly to spray all parts of the car

[1]

“Can sense its surroundings”
Sensors will sense when a car is in position // determine when an obstacle is
encountered / edge of the car is reached

[1]

“It is a controlled by a computer program”
e.g. The computer program sets the parameters/type of car/paint to be used

[1]

(b) Robotic arm
To position the spray nozzle to the correct position

Max [4]

Sensor
Capture data
Actuator // Motor
To drive various motors to perform the robot’s movement
Microprocessor
To process the various inputs and execute the control program
Memory
To temporarily store input data // store program
Speaker // bleeper
To provide audio output
Any 2 × 2

7

(a) (i) The program as written by the programmer // the program written with the text editor [1]
(ii) The output from the compiler // the program in machine code / byte code /
intermediate code

[1]

(b) (i) All the keywords which make up the syntax of the language
A token for each keyword

[1]
[1]

(ii) DECLARE, CONSTANT, CALL, WHILE (any three…)

[1]

(iii) A list of all the identifiers used by the programmer.
A pointer to where their value is stored in memory

[1]
[1]

(iv) Counter, Jobs, Position, ChangeRate, InitialiseGrid (any three …) [1]

© Cambridge International Examinations 2016

Page 8

Mark Scheme
Cambridge International AS Level – May/June 2016

Syllabus
9691

(c) Lexical analysis …

Paper
31
Max [5]

Remove any whitespace from the source code
(1)
Remove any comment statements
(1)
Check for obvious errors in the use of identifiers, e.g. they do not exceed 64
Characters
(1)
Replace all language keywords with a token
(1)
Add all identifiers to the symbol table
(1)
All identifier names are replaced in the code by a pointer value (1)
(d) (i) Altering the object code so that it runs faster // takes up less memory
(ii) The lines that have the expression x + y

© Cambridge International Examinations 2016

[1]
[1]

Advertisement