Heq Nov20 PGD We
Heq Nov20 PGD We
Heq Nov20 PGD We
WEB ENGINEERING
Answer any THREE questions out of FIVE. All questions carry equal marks.
The marks given in brackets are indicative of the weight given to each part of the question.
A1.
a) Explain how http and https differ in the ways in which they work and assess the
security offered by EACH.
(5 marks)
b) Evaluate THREE security advantages and TWO risks associated with the https
protocol.
(5 Marks)
A2.
a) Compare and contrast FTP, BitTorrent and peer-to-peer network technologies. In
your answer you SHOULD include an assessment of:
b) Explain the use of the .htaccess and .htpasswd files to control access to web
pages.
(3 marks)
c) What is the REST architectural model? Explain the MAIN principles by which it is
applied to web services.
(7 marks)
(page 2)
Section B
Answer Section B questions in Answer Book B
B3.
a) Assess FOUR main advantages OR disadvantages of file-based and database-
based data storage for XML web applications. Explain when it is advantageous to
use each.
(8 marks)
c) Describe the principles of a SQL Injection attack. What data could be accessed by
means of such an attack and how might this be prevented? Provide an example of
how such an attack can be prevented, with example code.
(10 marks)
[Turn Over]
(page 3)
B4.
a) Describe what is meant by a Document Type Definition (DTD) and how it is used.
(4 marks)
b) Explain why an application would use a DTD when the XML document follows the
same structure.
(3 marks)
c) Consider the XML file in figure 5.1 below.
<EmployerList>
<Employer CODE="1001">
<Employer_name>ACME Engineering</Employer_name>
<Employer_url page="http://www.acme.co.uk"/>
<Job_vacancy>
<Job_title>Office Manager</Job_title>
<Job_description>Managing an office of 25
staff</Job_description>
<Job_location>
<city>
Sheffield
</city>
</Job_location>
<Contact>
<Contact_name>
<title> Mr </title>
<first_name> Fred </first_name>
<last_name> Bassett </last_name>
</Contact_name>
<Contact_phone>+441234667788</Contact_phone>
<Contact_email>f.bassett@acme.co.uk</Contact_email>
</Contact>
<Job_salary>£40000</Job_salary>
<Start_date>1 August 2020</Start_date>
</Job_vacancy>
<Job_vacancy>
<Job_title>Driver</Job_title>
<Job_description>
Day journeys over much of the north of England
</Job_description>
<Job_location>
<district>
Peak District
</district>
</Job_location>
<Contact>
<Contact_name>
<title> Ms </title>
<last_name> Evans </last_name>
</Contact_name>
<Contact_phone>+441298777555</Contact_phone>
</Contact>
<Job_salary>£20000</Job_salary>
</Job_vacancy>
</Employer>
Figure 5.1
Construct a DTD which includes the same rules as shown in this example. It should
also be noted that the employer code must be present only once, for EACH
employer. (12 marks)
(page 4)
d) It has been decided to add an identifier to each job vacancy of the form that
identifies whether the job is full or part time (identified by either Full or Part – these
are the only possible values). This field MUST appear at least once, and if not
specified shall have the value Full. Show how your answer would need to be
modified to incorporate this, with a full explanation of how it functions.
(6 marks)
B5.
a) What is meant by the following acronyms?
i) DOM;
ii) CGI;
iii) XSLT.
b) What are blogs, WIKIS and RSS? Evaluate how they differ in the way in which they
are used and assess the differences that make each appropriate for particular uses,
with examples.
End of Examination
(page 5)