Computer Science Test
Computer Science Test
Candidate Number
Surname
Other Names
Examiners Initials
Candidate Signature
Question
Computing
COMP2
1
2
3
4
1.30 pm to 2.30 pm
Mark
TOTAL
Time allowed
1 hour
Instructions
Use black ink or black ball-point pen.
Fill in the boxes at the top of this page.
Answer all questions.
You must answer the questions in the spaces provided. Do not write
outside the box around each page or on blank pages.
Do all rough work in this book. Cross through any work you do not want
to be marked.
Information
The marks for questions are shown in brackets.
The maximum mark for this paper is 60.
The use of brand names will not gain credit.
Question 5(c) should be answered in continuous prose. In this question
you will be marked on your ability to:
- use good English
- organise information clearly
- use specialist vocabulary where appropriate.
(JAN12COMP201)
M/Jan12/COMP2
COMP2
Do not write
outside the
box
//Calculate
FirstVar := 47;
SecondVar := FirstVar + 2;
FourthVar := ThirdVar;
Program 2 (with comments)
AB2F
BC5D
E402
BCFF
AC61
BC4A
1 (a)
;
;
;
;
;
;
1 (b)
1 (b) (i)
(02)
M/Jan12/COMP2
Do not write
outside the
box
3
1 (c)
.............................................................................................................................................
.............................................................................................................................................
(1 mark)
1 (d)
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
(4 marks)
____
9
Turn over
(03)
M/Jan12/COMP2
4
2
Do not write
outside the
box
2 (a)
2 (b)
2 (c)
2 (c) (i)
Complete the truth table below for the logic circuit in Figure 3.
Inputs
X
0
0
1
1
Outputs
Y
0
1
0
1
(2 marks)
2 (c) (ii) What arithmetic function does the logic circuit in Figure 3 perform?
............................................................................................................................................
(1 mark)
(04)
M/Jan12/COMP2
Do not write
outside the
box
5
2 (d)
____
9
Turn over
(05)
M/Jan12/COMP2
6
3
Do not write
outside the
box
Address Bus
MBR
Control Unit
Control Circuits
R0
Status Register
R1
R2
ALU
3 (a)
General Purpose
Registers
Provide the full names for the components numbered 1 to 3 in Figure 4 by completing
Table 1 below.
Table 1
Component Component Name
Number
1
2
3
(3 marks)
3 (b)
.............................................................................................................................................
.............................................................................................................................................
(1 mark)
(06)
M/Jan12/COMP2
Do not write
outside the
box
7
3 (c)
State the full name of the processor component that would perform subtraction and
comparison operations.
............................................................................................................................................
............................................................................................................................................
(1 mark)
3 (d)
3 (e)
State one example of when the status register might have a bit set.
............................................................................................................................................
............................................................................................................................................
(1 mark)
____
7
Turn over
(07)
M/Jan12/COMP2
Do not write
outside the
box
4 (a)
Choose the most appropriate medium from the list below that would be best suited to
the purpose given. Write your answer in the Medium column in Table 2. You must not
use the same medium more than once.
CD-ROM, CD-R, CD-RW, DVD-R, DVD-RW, Blu-Ray
Table 2
Purpose
Medium
4 (c)
____
9
(08)
M/Jan12/COMP2
Do not write
outside the
box
9
5
Router
E-mail Client
Router
E-mail Server
Router
Router
Router
5 (a)
Router
5 (b)
.............................................................................................................................................
(1 mark)
Turn over
(09)
M/Jan12/COMP2
10
5 (c)
Do not write
outside the
box
Figure 6 below shows the TCP/IP stack for two computers (hosts) connected via a
network.
Figure 6
Host with IP address
195.110.53.27
Application
Layer
E-mail
Client
E-mail
Server
Web
Server
Web
Browser
Transport
Layer
TCP
layer
Port
Number
1055
(10)
TCP
layer
TCP
layer
Port
Number
1065
Port
Number
110
TCP
layer
Port
Number
80
Network or IP layer
Network or IP layer
Link layer
Link layer
Physical cable
Physical cable
M/Jan12/COMP2
Do not write
outside the
box
11
Explain how the TCP/IP stack in each host supports an e-mail client to e-mail server
request at the same time as a web browser to web server request. You should cover in
your explanation:
In your answer you will be assessed on your ability to use good English and to
organise your answer clearly in complete sentences, using specialist vocabulary where
appropriate.
............................................................................................................................................
............................................................................................................................................
............................................................................................................................................
............................................................................................................................................
............................................................................................................................................
............................................................................................................................................
............................................................................................................................................
............................................................................................................................................
............................................................................................................................................
............................................................................................................................................
............................................................................................................................................
............................................................................................................................................
............................................................................................................................................
............................................................................................................................................
............................................................................................................................................
............................................................................................................................................
............................................................................................................................................
............................................................................................................................................
(6 marks)
____
9
Turn over
(11)
M/Jan12/COMP2
12
6
Do not write
outside the
box
Figure 7 shows the Hypertext Markup Language (HTML) and Cascading Style Sheet
(CSS) for a web page, HelpLink.html.
Figure 7
<html>
<head>
<title>Help Centre</title>
<style type="text/css">
#header {color:yellow; font-family:Arial; text-align:center}
#footer {color:red; font-family:Arial; text-align:center}
.links {font-family:Tahoma; text-align:center}
</style>
</head>
<body>
<div id="header">
<h1>AQA Help Centre</h1>
<img src="/image/AQALogo.gif" width=248 height=90 />
</div>
<div class="links">
<p><a href="/igcse/english.html">IGCSE English Help</a></p>
<p><a href="/igcse/maths.html">IGCSE Maths Help</a></p>
<p><a href="/igcse/science.html">IGCSE Science Help</a></p>
</div>
<div>
<p id="footer">Copyright (C) 2012 AQA and its licensors.</p>
</div>
</body>
</html>
6 (a)
What is the colour of the heading "AQA Help Centre" when the web page,
HelpLink.html, is viewed in a browser?
............................................................................................................................................
(1 mark)
6 (b)
What font will the browser use to display the hyperlinks for this page?
............................................................................................................................................
(1 mark)
(12)
M/Jan12/COMP2
Do not write
outside the
box
13
6 (c)
purposes.
Using the browser window template below, sketch the appearance of the web page
when viewed in a web browser.
You must use labels to clarify your alignment, line spacing and font size.
For the image AQALogo.gif draw a box to represent where the image would appear.
File:///c:/HTML/Testing/HelpLink.html
(5 marks)
____
8
Turn over
(13)
M/Jan12/COMP2
14
Do not write
outside the
box
An Internet Service Provider (ISP) has instructed a firm of solicitors to investigate the
download activities of the ISPs clients.
7 (a)
7 (b)
The clients under investigation are alleged to have downloaded music files from a
file-sharing site.
The ISP wishes the firm of solicitors to investigate whether any laws have been broken.
State the full name of the law which might have been broken by the clients
downloading music files.
............................................................................................................................................
(1 mark)
7 (c)
7 (d)
The firm of solicitors discovers during their investigation that the same clients
have been downloading personal data relating to other clients of the ISP without
authorisation.
7 (d) (i)
State the full name of the law that may have been broken by the ISP.
............................................................................................................................................
(1 mark)
7 (d) (ii) State the full name of the law that may have been broken by the clients.
............................................................................................................................................
(1 mark)
____
5
(14)
M/Jan12/COMP2
Do not write
outside the
box
15
8
A well established use for robots in industry is the spraying of car bodies on a car
production line.
A robotics researcher is investigating the feasibility of developing and installing in a
car a computer-based control system to take over completely the driving of the car on
public highways.
She has identified some of the inputs into the control system already:
detailed map
current weather report.
Discuss why automated car control is a harder programming problem to solve than
developing programmed control of a robot for spraying car bodies on a car production
line.
For full marks your discussion must cover both programming problems.
............................................................................................................................................
............................................................................................................................................
............................................................................................................................................
............................................................................................................................................
............................................................................................................................................
............................................................................................................................................
............................................................................................................................................
............................................................................................................................................
............................................................................................................................................
............................................................................................................................................
............................................................................................................................................
(4 marks)
____
4
END OF QUESTIONS
(15)
M/Jan12/COMP2
16
Do not write
outside the
box
(16)
M/Jan12/COMP2