Past paper – A Level Computer Science (old syllabus, to 2021) (9608)
Cambridge International AS & A Level · 9608
Computer Science (old syllabus, to 2021) · Paper 12
Oct/Nov 2020 · 9608/12/O/N/20
Answer on paper, open each mark scheme and give yourself marks, then open the Summary.
Question text
1
Different types of data can be represented in a computer system.
(a) Numeric is one type of data.
(i)
Convert the following denary number into Binary Coded Decimal (BCD).
105
… [1]
(ii)
Convert the following two’s complement binary integer into denary.
10111111
… [1]
(iii)
Convert the following hexadecimal number into denary.
AB
… [1]
(b) Character is another type of data.
The following tables show part of the ASCII code character set.
Character
Denary value
Character
Denary value
A
65
a
97
B
66
b
98
C
67
c
99
D
68
d
100
E
69
e
101
(i)
Describe how the computer uses ASCII codes to represent characters.
…
…
…
… [2]
(ii)
Convert the following string into ASCII codes.
Bed
…
… [1]
(iii)
Give the denary ASCII code for the following character.
H
… [1]
Question text
2
One method of compressing a file is run-length encoding (RLE).
(a) Describe, using an example, how a text file is compressed using RLE.
…
…
…
…
…
… [3]
(b) Explain why run-length encoding will sometimes increase the size of a text file.
…
…
…
… [2]
Question text
3
(a) Complete the following statements about CPU architecture by filling in the missing terms.
The Von Neumann model for a computer system uses the … program
concept.
A program is a series of instructions that are saved in … .
The processor … each instruction, … it and then
… it.
The processor uses several … to store the data and instructions from
the program because they can be accessed faster than main memory.
[6]
(b) The following table shows assembly language instructions for a processor that has one
general purpose register, the Accumulator (ACC).
Instruction
Explanation
Op code
Operand
Direct addressing. Load the contents of the location at the given address to
LDD
<address>
ACC.
LDM
#n
Immediate addressing. Load the denary number n to ACC.
Indirect addressing. The address to be used is at the given address. Load the
LDI
<address>
contents of this second address to ACC.
STO
<address>
Store contents of ACC at the given address.
ADD
<address>
Add the contents of the given address to ACC.
CMP
<address>
Compare the contents of ACC with the contents of <address>.
OUT
Output to screen the character whose ASCII value is stored in ACC.
INC
<register>
Add 1 to the contents of the register (ACC or IX).
JPE
<address>
Following a compare instruction, jump to <address> if the compare was True.
Following a compare instruction, jump to <address> if the compare was
JPN
<address>
False.
END
Return control to the operating system.
(i)
The current contents of the
main memory are:
ASCII code table (Selected codes only)
Address
Instruction
LDD 80
ASCII Code
Character
50
ADD 80
51
38
&
STO 80
52
39
‘
LDD 82
53
40
(
INC ACC
54
41
)
STO 82
55
42
*
CMP 81
56
JPN 50
57
LDD 80
58
OUT
59
END
60
…
10
80
2
81
0
82
Trace the program currently in memory using the following trace table.
The first instruction has been completed for you.
Memory address
Instruction
ACC
Output
address
80
81
82
10
2
0
50
10
[5]
(ii)
Assembly language instructions can be put into groups.
Tick (✓) one box in each column to identify the appropriate instruction group for each of
the three assembly language instructions.
Assembly language instruction
Instruction group
STO 80
JPN 50
INC ACC
Input and output of data
Data movement
Arithmetic operations
Unconditional and conditional jump instructions
Compare instructions
[3]
Question text
4
(a) Complete the truth table for the logic expression:
X = ((A NOR B) AND (C XOR A)) OR B
Working space
A
B
C
X
0
0
0
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
[4]
(b) Describe the difference between the operation of an AND gate and a NAND gate.
…
…
…
… [2]
Question text
5
A teacher uses a relational database, RESULTS, to store data about her students and their test
results.
(a) Describe the benefits to the teacher of using a relational database instead of a file-based
approach.
…
…
…
…
…
…
…
… [4]
(b) The teacher sets up the RESULTS database using a Database Management System (DBMS).
(i)
Explain the ways in which the developer interface of a DBMS will help the teacher set up
the database.
…
…
…
… [2]
(ii)
The DBMS creates a data dictionary for the RESULTS database.
Identify three items that will be included in the data dictionary.
1 …
2 …
3 …
[3]
(c) The RESULTS database has the following structure:
STUDENT(StudentID, FirstName, LastName, Class, TargetGrade)
TEST(TestID, Topic, MaxMarks)
STUDENT_TEST(StudentID, TestID, Mark)
(i)
Complete the following table by giving one example of each database term from the
database RESULTS. Give both the field name and the corresponding table name.
Database term
Field name
Table name
Primary key
Foreign key
Attribute
[3]
(ii)
Tick (✓) one box to identify whether the database RESULTS is in 1NF, 2NF or 3NF.
Justify your choice.
1NF
2NF
3NF
Justification: …
…
…
… [3]
(iii)
Complete the Data Manipulation Language (DML) script to display the Student ID, mark
and maximum marks for all tests with the topic of ‘Programming’.
SELECT StudentID, Mark, ...
Question text
6
Malika has started a new job as a trainee software engineer.
(a) Malika’s manager has asked her to work with a senior software engineer for the first week.
Explain the ways in which Malika’s manager has acted ethically.
…
…
…
… [2]
(b) Malika researched the company and the programming languages used by the company
before she started the job.
Explain the ways in which Malika has acted ethically.
…
…
…
… [2]
(c) Malika thinks that her colleagues do not like her, so she asks her manager for help.
Describe the actions the manager could take to support Malika in an ethical way.
…
…
…
… [2]
Question text
7
A web server has a public IPv4 address.
(a) Draw lines to link each characteristic to its appropriate IP address.
Characteristic
IP address
Can use hexadecimal notation
Each group of digits is a number
between 0 and 65535
IPv4
Consists of four groups of digits
IPv6
Uses double colons ( :: )
The total length of the address is 32 bits
[2]
(b) IP addresses can be static or dynamic.
Explain the reasons for the web server using a static instead of a dynamic IP address.
…
…
…
…
…
… [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