Professional Documents
Culture Documents
EXAMINATION PAPER:
Campus School Department Level TITLE OF PAPER COURSE CODE Date and Time LONDON 13.30 HONG KONG 18.00 TRINIDAD 09.30 MALTA 15.00 MALAYSIA 18.00
Maritime Greenwich Computing and Mathematical Sciences Computer Science Three Web Engineering COMP 1309 Saturday 9th December 2006 BAHRAIN 15.00 UAE 16.00 SINGAPORE 18.00 ZAMBIA 14.30 GREECE 15.00
Answer any FOUR of the following SIX questions. Each question is worth 25 marks. If you answer more than four questions, marks will ONLY be awarded for your FOUR best answers.
COMP1309
APPROVED__________________________________________________________ 1. (a) What are the advantages of using XHTML 1.1 to create new web sites as opposed to using HTML 4.01? [12 marks]
(b)
Discuss the intention, content and implementation of the WCAG. [13 marks]
2.
(a)
In the context of the World Wide Web, describe using clearly labelled diagrams what is meant by 3-tier and n-tier systems. Your answer should include a detailed example of an n-tier web service based application. [11 marks]
(b)
PHP and Microsoft ASP (Active Server Pages) operate in a markedly similar fashion, mixing executable script with HTML markup. Microsoft has now frozen the development of ASP technology and encourages web developers to migrate to their new ASP.NET technology. Even though ASP.NET takes its name from Microsoft's old web development technology, the two technologies differ widely. Discuss the difference between ASP and ASP.NET. Include in your discussion the advantages claimed for ASP.NET and any possible disadvantages. [14 marks]
COMP1309
APPROVED__________________________________________________________ 3. Study the code of the DHTML web page given below. Line numbers have been added that you may refer to in your answer. (a) A web page contains an anchor tag with the following markup;
<a href="http://wat.bzort.net/search.html">Search Form at bzort.net</a>
Assuming that the web user agent is compatible with JavaScript 1.5 and CSS level 2 and the URL successfully loads, describe in detail the sequence of events in the browser following a user click event on this anchor. You should include in your answer all interactions between the web client and the web server. Your answer should not include any further user interactions. [8 marks]
(b)
Using a clearly labelled figure, describe what you expect to see in the browser when the page has loaded. [8 marks]
(c)
This page demonstrates several interesting behaviours as the user interacts with the page. Describe how these behaviours are implemented. [9 marks]
COMP1309
14
15 16 17 18
search.css
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 body { font-family:verdana,sans-serif; } #search { border: solid 4px #0000AA; padding:1em; text-align:center; width:28em; margin:20px auto 20px auto; } .button { background:#EEDDFF; border: solid 2px blue; padding:0.5ex; margin-top:1em; } .button:hover { background:#FFFFAA; } #txtTerm { background:#EEEEFF; border: solid 2px blue; padding:0.5ex; }
COMP1309
COMP1309
APPROVED__________________________________________________________ 4. (a) The principal protocol of the World Wide Web, HTTP is often described as being a stateless protocol. (i) (ii) (iii) (iv) What is HTTP? What is meant by the expression stateless protocol? What are the advantages of a stateless protocol for the WWW? What is meant by the expression stateful web application? [12 marks]
(b)
Compare and contrast the GET and POST methods of HTTP. [13 marks]
5.
What is the DOM and how is it used with HTML and XML? You should provide some small examples and code snippets in your answer. [25 marks]
COMP1309
APPROVED__________________________________________________________ 6. An XML language ExaML has been developed to create exam papers. An example ExaML file, q6.xml, is given below. (a) The first line of a document type definition (DTD) for ExaML is given below.
<!ELEMENT exam (question+)>
What is a DTD? What is a DTD used for? How does a DTD compare with alternatives? [6 marks]
(b)
Complete the DTD given in part (a) based on q6.xml found on the next page. [9 marks]
(c)
Describe in detail, with the aid of a figure, what you would expect to see when q6.xml is viewed in a browser that can process XSLT. (Character references 60, 62 and160 are less than, greater than and non-breaking space respectively) [10 marks]
COMP1309
exam.xsl
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <html> <head> <title>Exam</title> <style type="text/css"> body { padding:20px; } ol.Q { list-style-type:decimal; } ol.S { list-style-type:lower-alpha; } ol.SS { list-style-type:lower-roman; } .tty { font-family:monospace } .mark { text-align:right; } </style>
COMP1309
COMP1309