Computer Science (9608) · Oct/Nov 2018 · Question paper 11

Cambridge Computer Science (9608) question paper for paper 11, Oct/Nov 2018 — 9608/11/O/N/18, file 9608_w18_qp_11.pdf.

Advertisement
Loading the paper…
Text of this paper

www.dynamicpapers.com

Cambridge International Examinations
Cambridge International Advanced Subsidiary and Advanced Level

* 8 9 3 1 1 6 5 4 3 6 *

9608/11

COMPUTER SCIENCE
Paper 1 Theory Fundamentals

October/November 2018
1 hour 30 minutes

Candidates answer on the Question Paper.
No Additional Materials are required.
No calculators allowed.
READ THESE INSTRUCTIONS FIRST
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.
Answer all questions.
No marks will be awarded for using brand names of software packages or hardware.
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.
The maximum number of marks is 75.

This document consists of 15 printed pages and 1 blank page.
DC (ST) 144490/3
© UCLES 2018

[Turn over

2
1

www.dynamicpapers.com

A student is creating a short video and needs to record music to play in the background.
(a) The student uses a microphone to capture the music.
Explain how the microphone captures the music.

[3]
(b) An analogue-to-digital converter uses sampling to encode the sound.
Explain how different sampling resolutions affect the sound file and the sound it represents.

[3]
(c) The student needs to edit the sound file.
Describe two features of sound editing software that can be used to edit the sound file.
Feature 1

Feature 2

[4]

© UCLES 2018

9608/11/O/N/18

3

www.dynamicpapers.com

(d) The video is recorded with a frame rate of 60 frames per second (fps) and uses progressive
encoding.
(i)

Describe what is meant by a frame rate of 60 fps.

[1]

(ii)

Describe what is meant by progressive encoding in video recording.

[2]

(e) MP4 multimedia container format is used to save the video.
State what is meant by multimedia container format.

[1]

© UCLES 2018

9608/11/O/N/18

[Turn over

4
2

www.dynamicpapers.com

Computer A needs to access a web page.
(a) State how Computer A could access the web page without using a Domain Name Service
(DNS).

[1]
(b) (i)

The following table shows four IPv6 addresses.
State if each address is valid or invalid.
IP address

Valid or invalid

21E5:69AA:FFFF:1:E100:B691:1285:F56E
::255.255.255.255
59FB::1005:CC57:6571
56FE::2159:5BBC::6594
[4]
(ii)

The following table shows four statements about either public or private IP addresses.
Tick (3) one box in each row to indicate whether each statement refers to a public or a
private IP address.
Statement

Public

Private

192.168.2.1 is an example of this type of address
Assigned by the Internet Service Provider (ISP)
IP address cannot be duplicated in different
networks
Network Address Translation (NAT) is necessary
to access the Internet directly
[4]
(c) One type of transmission media is copper cable.
Give two additional types of transmission media.
1
2
[2]
© UCLES 2018

9608/11/O/N/18

5
3

www.dynamicpapers.com

Hugo has produced a program (app) for mobile phones. He needs to decide whether to use an
Open Source licence or to distribute the app as shareware.
(a) Describe what is meant by Open Source licence and shareware.
Open Source

Shareware

[4]
(b) Tick (3) one box to indicate the licence Hugo should use. Justify your choice.
Open Source
Shareware
Justification

[2]

© UCLES 2018

9608/11/O/N/18

[Turn over

6
4

www.dynamicpapers.com

The table shows assembly language instructions for a processor which has one general purpose
register, the Accumulator (ACC) and an index register (IX).
Instruction
Op code

Explanation

Operand

LDD

<address>

Direct addressing. Load the contents of the location at the given
address to ACC.

LDX

<address>

Indexed addressing. Form the address from <address> + the
contents of the Index Register. Copy the contents of this calculated
address to ACC.

LDR

#n

Immediate addressing. Load the number n to IX.

STO

<address>

Store contents of ACC at the given address.

ADD

<address>

Add the contents of the given address to ACC.

INC

<register>

Add 1 to the contents of the register (ACC or IX).

DEC

<register>

Subtract 1 from the contents of the register (ACC or IX).

CMP

<address>

Compare contents of ACC with contents of <address>.

JPE

<address>

Following a compare instruction, jump to <address> if the compare
was True.

JPN

<address>

Following a compare instruction, jump to <address> if the compare
was False.

JMP

<address>

Jump to the given address.

OUT

Output to the screen the character whose ASCII value is stored in ACC.

END

Return control to the operating system.

(a) (i)

State what is meant by direct addressing and indirect addressing.
Direct addressing

Indirect addressing

[2]

(ii)

Explain how the instruction ADD 20 can be interpreted as either direct or indirect
addressing.
Direct addressing

Indirect addressing

[2]

© UCLES 2018

9608/11/O/N/18

www.dynamicpapers.com

7

(b) The assembly language instructions in the following table use either symbolic addressing or
absolute addressing.
Tick (3) one box in each row to indicate whether the instruction uses symbolic or absolute
addressing.
Instruction

Symbolic

Absolute

ADD 90
CMP found
STO 20
[2]
(c) The current contents of a general purpose register (X) are:
X
(i)

1

0

1

1

1

0

1

0

The contents of X represent an unsigned binary integer.
Convert the value in X into denary.
[1]

(ii)

The contents of X represent an unsigned binary integer.
Convert the value in X into hexadecimal.
[1]

(iii)

The contents of X represent a two’s complement binary integer.
Convert the value in X into denary.
[1]

© UCLES 2018

9608/11/O/N/18

[Turn over

www.dynamicpapers.com

8

(d) The current contents of the main memory, Index Register (IX) and selected values from the
ASCII character set are provided with a copy of the instruction set.
Address

Instruction

70

LDX 200

71

ASCII code table (selected codes only)
ASCII code

Character

OUT

127

?

72

STO 203

128

!

73

LDD 204

129

“

74

INC ACC

130

*

75

STO 204

131

$

76

INC IX

132

&

77

LDX 200

133

%

78

CMP 203

134

/

79

JPN 81

80

OUT

81

LDD 204

82

CMP 205

83

JPN 74

84

END

…
200

130

201

133

202

130

203

0

204

0

205

2

IX

0

Instruction set
Instruction
Op
code

Operand

LDD

<address>

LDX

<address>

LDR

#n

STO

<address>

ADD

<address>

INC

<register>

DEC

<register>

CMP

<address>

JPE

<address>

JPN

<address>

JMP

<address>

Direct addressing. Load the contents of
the location at the given address to ACC.

Indexed addressing. Form the address
from <address> + the contents of the
Index Register. Copy the contents of this
calculated address to ACC.

Immediate addressing. Load the number
n to IX.

OUT

Store contents of ACC at the given
address.

Add the contents of the given address to
ACC.

Add 1 to the contents of the register (ACC
or IX).

Subtract 1 from the contents of the
register (ACC or IX).

Compare contents of ACC with contents of
<address>.
Following a compare instruction, jump to
<address> if the compare was True.
Following a compare instruction, jump to
<address> if the compare was False.
Jump to the given address.

Output to the screen the character whose
ASCII value is stored in ACC.
Return control to the operating system.

END
© UCLES 2018

Explanation

9608/11/O/N/18

www.dynamicpapers.com

9

Complete the trace table for the given assembly language program.
Instruction
address

ACC

70

130

Memory address
200

201

202

203

204

205

130

133

130

0

0

2

IX

OUTPUT

0

[8]

© UCLES 2018

9608/11/O/N/18

[Turn over

10
5

www.dynamicpapers.com

For each of the following scenarios, tick (3) one box for each scenario to indicate whether you
think the person’s behaviour is ethical or unethical. Justify your choice.
(a) Kevin is a software engineer who has recently started a job with a new company. He is using
program code from his previous employer in his new employer’s programs.
Ethical
Unethical
Justification

[2]
(b) Nadya is a software developer. She has accepted a new job. She has never worked with
the programming languages used by this new company. Nadya is planning to increase her
knowledge of these programming languages before she starts her new job.
Ethical
Unethical
Justification

[2]
(c) Maria finds that one of her team members has produced some inventive code. She presents
this to her manager, stating that it was produced by the team. She does not mention the
individual’s name.
Ethical
Unethical
Justification

[2]

© UCLES 2018

9608/11/O/N/18

11
6

www.dynamicpapers.com

A web page includes the following PHP and HTML code.
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20

<?php
if(isset($_GET['age'])) {
echo "Result: ", allowed($_GET['age']);
} else {
?>
<form action="#" method="get">
Enter Age: <input type="text" name="age" /><br/>
<input type="submit" value="Calculate" />
</form>
<?php

?>

}
function allowed($age) {
if($age <= 16) $message = "You need permission";
else if($age > 30) $message = "You are too old";
else $message = "Allowed";
return $message;
}

(a) Name two identifiers used in the PHP code.
1
2
[2]
(b) Write the value assigned to $message if the user types 30 in the text box.
[1]
(c) Explain the purpose of the code in line 18.

[2]

© UCLES 2018

9608/11/O/N/18

[Turn over

12

www.dynamicpapers.com

(d) The PHP code in a web page uses server-side scripting.
List the sequence of events that take place when a user requests a web page containing PHP
code.

[4]

© UCLES 2018

9608/11/O/N/18

13

www.dynamicpapers.com

Question 7 begins on the next page.

© UCLES 2018

9608/11/O/N/18

[Turn over

14
7

www.dynamicpapers.com

A movie theatre has a relational database that stores the movie schedule, and information about
the movies. The theatre has several screens that play movies at the same time.
The database has three tables to store information about the movies, the screens and the movie
schedule.
MOVIE(MovieID, Title, Length, Rating)
SCREEN(ScreenNumber, NumberSeats)
MOVIESCHEDULE(ScheduleID, MovieID, ScreenNumber, Time)
(a) Complete the entity-relationship (E-R) diagram to show the relationships between these
tables.

MOVIE

SCREEN

MOVIESCHEDULE

[2]
(b) Explain how primary and foreign keys are used to link the tables in the movie theatre
database.

[4]

© UCLES 2018

9608/11/O/N/18

15

www.dynamicpapers.com

(c) The database needs to store the name of the company that produced each movie, for
example, Rocking Movies.
Write an SQL script to add the attribute ProductionCompany to the MOVIE table.

[2]
(d) Write an SQL script to display the title and rating of all movies scheduled to play on screen
number 3.

[4]

© UCLES 2018

9608/11/O/N/18

16

www.dynamicpapers.com

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.

© UCLES 2018

9608/11/O/N/18

Advertisement