Professional Documents
Culture Documents
UNIVERSITY OF MANCHESTER
January 2003
[PTO]
2 CS1011
Give short, one or two sentence answers to EACH of the following questions. Each is
worth one mark. (20 marks)
2. Answer four of the following parts in as much detail as you can in the time available.
Each part is worth 5 marks.
a) Describe in detail what happens when the following MU0 program is run. Clearly state
the movement of information between the components of the MU0 computer that are
visible to the user, and how the values in the components change, at each step.
Assume that the program starts at memory location 0. (5 marks)
b) Explain what is meant by a peripheral interrupt, and how a computer normally deals
with one.
Explain how Direct Memory Access (DMA) differs from simple interrupts, and why it
would be used for a hard disk. (5marks)
c) Explain what Remote Method Invocation (RMI) or Remote Procedure Call (RPC) is and
how it is implemented. (5 marks)
Briefly outline the relative merits of textual and graphical user interfaces for different
kinds of programs and for different kinds of users.
Briefly explain the difference between the client and the server in X Windows, and how
they can be used to display on one computer the results of running a program on a
different computer. (5 marks)
e) Explain the differences between an assembler for a low-level language, such as MU0
assembly language, and a compiler for a high-level language, such as Java or C. Your
answer should explain how they differ in each of their component phases: lexical
analysis, syntactic analysis, semantic analysis, code generation, and code optimisation.
(5 marks)
[PTO]
4 CS1011
Example 1
Line XHTML
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5 <head>
6 <title>What is this doing?</title>
7 <link rel="stylesheet" type="text/css" href="simple.css" />
8 </head>
9 <body>
10 <h1>Current Nationwide Leaders </h1>
11 <p> The teams currently leading in Division 1 are: </p>
12 <ul>
13 <li>Portsmouth</li>
14 <li>Leicester</li>
15 <li>Norwich</li>
16 </ul>
17 <h2> Comments from the managers </h2>
18 <p> Leicester have come back well after their Worthington Cup defeat
by Manchester United</p>
19 <p> Portsmouth had little difficulty handling a weakened Stoke attack
</p>
20 <h2 class="question"> Will Portsmouth maintain their 7 point
lead?</h2>
21 <p> Harry Redknapp is confident that Pompey’s push for promotion is
on track </p>
22 </body>
23 </html>
Consider the XHTML information in Example 1 and then answer the following questions:
b) Consider the CSS information in Example 2 in conjunction with the XHTML in Example
1, and then answer all the questions below.
Example 2
Line CSS specification in a file called simple.css
a body {color:teal; background: white}
b h1,h2,h3,h4,h5,p,ul { font-family: sans-serif; }
c h1{text-align:center ; font-family: fantasy;
d font-size:32pt;color:green}
e h2 {text-align:center;color:red;font-size:28pt}
f h2.question{text-align:left; color:blue; font-size: 22pt}
c) Explain briefly why XHTML is regarded as more appropriate than HTML for the
development of web pages. (2 marks)
Explain briefly why the use of style sheets is regarded as preferable to the use of in-line
styles. (2 marks)