Past paper – A Level Computer Science (old syllabus, to 2021) (9608)
Cambridge International AS & A Level · 9608
Computer Science (old syllabus, to 2021) · Paper 43
Oct/Nov 2019 · 9608/43/O/N/19
Answer on paper, open each mark scheme and give yourself marks, then open the Summary.
Question text
1
Each student at CIE University needs a printing account to print documents from university
computers.
The university is developing software to manage each student’s printing account and the printing
process.
(a) Developing the software will include the following activities.
Time in
Activity
Description
Predecessor
weeks
A
Identify requirements
1
-
B
Produce design
3
A
C
Write code
10
B
D
Test modules
7
B
E
Final system black-box testing
3
C, D
F
Install software
1
E
G
Acceptance testing
2
F
H
Create user documentation
2
F
(i)
Add the correct activities and times to the following Program Evaluation Review
Technique (PERT) chart for the software development.
Two activities and times have been done for you.
4
A
1
2
3
5
6
1
1
F
7
8
9
[6]
(ii)
State what is meant by the critical path in a PERT chart.
…
… [1]
(iii)
Identify and describe a project planning technique, other than a PERT chart.
…
…
…
… [2]
(b) When a student prints a document, a print job is created. The print job is sent to a print server.
The print server uses a queue to hold each print job waiting to be printed.
(i)
The queue is circular and has six spaces to hold jobs.
The queue currently holds four jobs waiting to be printed. The jobs have arrived in the
order A, B, D, C.
Complete the diagram to show the current contents of the queue.
Start Pointer
End Pointer
[1]
(ii)
Print jobs A and B are now complete. Four more print jobs have arrived in the
order E, F, G, H.
Complete the diagram to show the current contents and pointers for the queue.
[3]
(iii)
State what would happen if another print job is added to the queue in the status
in part (b)(ii).
…
… [1]
(iv)
The queue is stored as an array, Queue, with six elements. The following algorithm
removes a print job from the queue and returns it.
Complete the following pseudocode for the function Remove.
FUNCTION Remove RETURNS STRING
DECLARE PrintJob : STRING
IF … = EndPointer
THEN
RETURN "Empty"
ELSE
PrintJob
Queue[ … ]
IF StartPointer = …
THEN
…
StartPointer
ELSE
StartPointer
StartPointer + 1
ENDIF
RETURN PrintJob
ENDIF
ENDFUNCTION
[4]
(v)
Explain why the circular queue could not be implemented as a stack.
…
…
…
Question text
2
The following table shows part of the instruction set for a processor, which has one general
purpose register, the Accumulator (ACC), and an Index Register (IX).
Instruction
Explanation
Op code
Operand
Immediate addressing. Load the number n to ACC.
LDM
#n
Direct addressing. Load the contents of the location at the given address to
LDD
<address>
ACC.
Indirect addressing. The address to be used is at the given address. Load the
LDI
<address>
contents of this second address to ACC.
Indexed addressing. Form the address from <address> + the contents of the
LDX
<address>
Index Register. Copy the contents of this calculated address to ACC.
Immediate addressing. Load the number n to IX.
LDR
#n
Store the contents of ACC at the given address.
STO
<address>
Indexed addressing. Form the address from <address> + the contents of the
STX
<address>
Index Register. Copy the contents from ACC to this calculated address.
Add the contents of the given address to the ACC.
ADD
<address>
Add 1 to the contents of the register (ACC or IX).
INC
<register>
Subtract 1 from the contents of the register (ACC or IX).
DEC
<register>
Jump to the given address.
JMP
<address>
Compare the contents of ACC with the contents of <address>.
CMP
<address>
Compare the contents of ACC with number n.
CMP
#n
Following a compare instruction, jump to <address> if the compare was True.
JPE
<address>
Following a compare instruction, jump to <address> if the compare was False.
JPN
<address>
Bitwise AND operation of the contents of ACC with the operand.
AND
#n
Bitwise AND operation of the contents of ACC with the contents of <address>.
AND
<address>
Bitwise XOR operation of the contents of ACC with the operand.
XOR
#n
Bitwise XOR operation of the contents of ACC with the contents of <address>.
XOR
<address>
Bitwise OR operation of the contents of ACC with the operand.
OR
#n
Bitwise OR operation of the contents of ACC with the contents of <address>.
OR
<address>
<address> can be an absolute address or a symbolic address.
Bits in ACC are shifted n places to the left. Zeros are introduced on the right
LSL
#n
hand end.
Bits in ACC are shifted n places to the right. Zeros are introduced on the left
LSR
#n
hand end.
Key in a character and store its ASCII value in ACC.
IN
Output to the screen the character whose ASCII value is stored in ACC.
OUT
Return control to the operating system.
END
A programmer writes a program that multiplies two numbers together and outputs the result. The
numbers are stored as NUMONE and NUMTWO.
The programmer has started to write the program in the following table. The comment column
contains explanations for some of the missing program instructions and data.
Complete the program using the given instruction set.
Label
Op code
Operand
Comment
LOOP:
// load the value from ANSWER
// add the value from NUMONE
// load the value from COUNT
// increment the Accumulator
// is NUMTWO = COUNT ?
// if false, jump to LOOP
// load the value from ANSWER
// output ANSWER to the screen
// end of program
NUMONE:
2
NUMTWO:
4
COUNT:
0
ANSWER:
0
[9]
Question text
3
Software may not perform as expected. One reason for this is that a syntax error exists in the
code.
Identify three other reasons why software may not perform as expected.
1 …
…
2 …
…
3 …
…
[3]
Question text
4
The following table contains definitions related to testing terminology.
Complete the table with the correct testing term to match the definition.
Definition
Term
Software is tested by an in-house team of
dedicated testers.
…
Software is tested by the customer before it
is signed off.
…
Software is tested by a small selection of
users before general release.
…
[3]
Permission to reproduce items where third-party owned material protected by copyright is included has been sought and cleared where possible. Every
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