You are on page 1of 3

EXAMINATION PAPER:

ACADEMIC SESSION 2009/2010

Campus School Department Level TITLE OF PAPER COURSE CODE Date and Time BAHRAIN GREECE KENYA MALAYSIA MALAWI MYANMAR SAUDI ARABIA SRI LANKA SYRIA TRINIDAD ZAMBIA VIETNAM

Maritime Greenwich Computing and Mathematical Sciences Computer Science Three Web Engineering COMP1309 Monday 7th December 2009 (2 hours) 15:00 15:00 16:00 18:30 14:00 15:30 16:00 18:30 14:00 09:30 15:00 17:30 BOTSWANA HONG KONG LONDON MALTA MAURITIUS RWANDA SINGAPORE SOUTH AFRICA TANZANIA UAE BANGLADESH 15:00 18:30 13:00 14:00 18:00 14:00 17:30 15:00 16:00 17:00 18:30

You MUST answer question 1 which is worth 40 marks Answer TWO questions from the remaining THREE questions, questions 2 to 4 which are worth 30 marks each. If you answer all THREE questions from questions 2 to 4, marks will ONLY be awarded for your TWO best answers. CALCULATORS AND ELECTRONIC DEVICES ARE NOT PERMITTED

View Web Engineering Exam Questions and Answers Guide

FINAL SECTION A COMPULSORY 1. (a) Show with the help of a detailed diagram what you would expect to see in your browser when this page loads. Line numbers have been added so that you may refer to individual lines of code in your answer. [20 marks]

01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title> Some Javascript </title> <script language="JavaScript"> <!-- Begin function setit() { var a = "Hope you like this"; var b = "one bit of XHTML and Javascript"; var c = "a bit of creativity"; var t = new Date(); s = t.getSeconds(); if (s == 10) { document.title = a;} else if (s == 20) { document.title = b;} else if (s == 30) { document.title = c;} else if (s == 40) { document.title = a;} else if (s == 50) { document.title = b;} else if (s == 00) { document.title = c;} setTimeout("setit()", 500); } // End --> </script> </head> <body onLoad="setit()"> <p><center> <font face="arial, helvetica" size"-2">A Javascript example<br></font> </center><p> <p>This page is to help as a mini guide<br>-do not click away<br><br>it will be updated on a daily basis <p> </body> </html>

(b)

An example of a very simple XML DTD to describe a list of persons is given below. Give an example of an XML file which makes use of and conforms to this DTD. [10 marks]
<!ELEMENT people_list (person*)> <!ELEMENT person (name, birthdate?, gender?, socialsecuritynumber?)> <!ELEMENT name (#PCDATA)> <!ELEMENT birthdate (#PCDATA)> <!ELEMENT gender (#PCDATA)> <!ELEMENT socialsecuritynumber (#PCDATA)>

(c)

How can one formally describe the elements in an Extensible Markup Language (XML) document? [10 marks]

Web Engineering COMP1309 Page 2 of 3

FINAL SECTION B Answer any TWO Questions 2. (a) These days Open Source software is a valid alternative to proprietary software for creating Web applications. What is meant by the term Open Source? Explain what you understand by the Open Source Initiative? [20 marks] Explain what is CSS and what is cascading in CSS. [10 marks]

(b)

3. (a) A trainee web developer when asked about secure protocols, claimed that HTTPS is more secure than the HTTP protocol. Critically discuss what the differences are in terms of security between these two and if you agree or disagree with the above statement. [10 marks] Critically discuss the relationship between SSL and TLS. [20 marks]

(b)

4. (a) Critically discuss the differences between the HTTP GET and POST methods. [20 marks] Why would you use XML instead of HTML for your website? [10 marks]

(b)

View Web Engineering Exam Questions and Answers Guide

Web Engineering COMP1309 Page 3 of 3