Cambridge International Advanced Subsidiary and Advanced Level
Cambridge International Advanced Subsidiary and Advanced Level
Cambridge International Advanced Subsidiary and Advanced Level
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.
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.
DC (SC/CGW) 144488/3
© UCLES 2018 [Turn over
2
(a) The OS performs a number of different tasks such as file management and peripheral
management.
1 ........................................................................................................................................
...........................................................................................................................................
2 ........................................................................................................................................
...........................................................................................................................................
3 ........................................................................................................................................
...........................................................................................................................................
[3]
1 ........................................................................................................................................
...........................................................................................................................................
2 ........................................................................................................................................
...........................................................................................................................................
3 ........................................................................................................................................
...........................................................................................................................................
[3]
(i) The following table lists four programs. Put one tick (3) in each row to indicate whether
or not the program is utility software.
Database
Virus checker
Web browser
Backup software
[4]
Program 1 .........................................................................................................................
Program 2 .........................................................................................................................
[2]
© UCLES 2018 9608/12/M/J/18
3
2 (a) A greenhouse control system has four input parameters (H, D, T, W) and two outputs (X, Y).
Description of
Parameter Binary value Condition
parameter
0 Too low
H Humidity
1 Acceptable
0 Night
D Day
1 Day
0 Too high
T Temperature
1 Acceptable
0 Closed
W Windows
1 Open
The fan turns on (Y = 1) if the temperature is too high and the windows are closed.
T
Y
[6]
(b) Complete the truth table for the logic expression: X = NOT A AND (B NAND C)
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]
Parity
bit
0 1 0 0 0 0 0
[1]
(b) In the following data transmitted, the first column contains the parity bits, and the last row
contains the parity byte. A device transmits the data using even parity.
Parity
Data
bit
1 0 1 0 1 1 1 1
0 1 1 0 0 1 1 0
1 1 0 0 0 0 0 0
0 1 0 0 0 0 0 0
Parity
0 0 0 0 1 0 0 1
byte
[1]
Put one tick (3) in each row to indicate whether the measure is validation or verification.
Checksum
Format check
Range check
Double entry
Check digit
[5]
4 (a) The Accumulator is a register. The current contents of the Accumulator are:
1 1 0 1 1 0 1 1
.......................................................................................................................................[1]
.......................................................................................................................................[1]
(iii) The current contents of the Accumulator represent a two’s complement binary integer.
.......................................................................................................................................[1]
(b) The binary integer represents a character from the computer’s character set.
...........................................................................................................................................
.......................................................................................................................................[1]
(ii) Explain the differences between the ASCII and Unicode character sets.
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
.......................................................................................................................................[2]
Calculate the ASCII code in hexadecimal for ‘Z’. Show your working.
Working .............................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
(a) Explain how an analogue sound wave is sampled to convert it into digital format.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...............................................................................................................................................[3]
(b) Explain the effects of increasing the sampling resolution on the sound file.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...............................................................................................................................................[2]
(c) The original sound was sampled at 44.1 kHz. The sample rate is changed to 22.05 kHz.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...............................................................................................................................................[3]
(d) The student uses sound editing software to edit the sound file.
Name two features of sound editing software the student can use to edit the sound file.
Feature 1 ...................................................................................................................................
Purpose .....................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
Feature 2 ...................................................................................................................................
Purpose .....................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[4]
01 <html>
02 <body>
03
04 <p>Enter your mark</p>
05 <input id="Mark" value="0">
06 <button onclick="calcGrade()">Enter</button>
07
08 <script>
09 function calcGrade() {
10 var mark, grade;
11 mark = document.getElementById("Mark").value;
12 if (mark >= 90) {
13 grade = "A"
14 } else if (mark >= 80) {
15 grade = "B"
16 } else if (mark >= 70) {
17 grade = "C"
18 } else if (mark >= 60) {
19 grade = "D"
20 } else if (mark >= 50) {
21 grade = "E"
22 } else {
23 grade = "U"
24 }
25 alert("Your grade is " + grade)
26 }
27 </script>
28
29 </body>
30 </html>
(a) Give the identifier of two variables used in the JavaScript code.
1 ................................................................................................................................................
2 ................................................................................................................................................
[2]
(b) Give the line number where the JavaScript code produces an output.
...............................................................................................................................................[1]
...................................................................................................................................................
...............................................................................................................................................[2]
(d) (i) State whether this JavaScript code will be run client-side or server-side.
.......................................................................................................................................[1]
(ii) Explain the difference between client-side scripting and server-side scripting.
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
.......................................................................................................................................[3]
7 A social media website has a relational database, WEBDATA, that stores the site’s information.
The database has three tables to store users’ details, and details of the images and text that they
post.
(a) (i) Explain how the relationship between the tables USER and PHOTO has been implemented.
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
.......................................................................................................................................[2]
(ii) Draw the entity-relationship (E-R) diagram to show the relationships between the three
tables.
[2]
Use an example from the database WEBDATA to explain what is meant by referential
integrity.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...............................................................................................................................................[3]
(c) The database has been normalised to Third Normal Form (3NF).
1NF ............................................................................................................................................
...................................................................................................................................................
2NF ............................................................................................................................................
...................................................................................................................................................
3NF ............................................................................................................................................
...................................................................................................................................................
[3]
(d) The following shows sample data from the USER table.
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
.......................................................................................................................................[5]
(ii) The database administrator needs to alter the USER table. A new field, Country, needs
to be added.
Write an SQL script to add the field Country to the USER table.
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
.......................................................................................................................................[2]
BLANK PAGE
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 International
Examinations Copyright Acknowledgements Booklet. This is produced for each series of examinations and is freely available to download at www.cie.org.uk after
the live examination series.
Cambridge International Examinations is part of the Cambridge Assessment Group. Cambridge Assessment is the brand name of University of Cambridge Local
Examinations Syndicate (UCLES), which is itself a department of the University of Cambridge.