Professional Documents
Culture Documents
Duration: 3 Hours
Instructions to Candidates:
Page 1 of 5
Web-Based Information Systems (WAT3115C) SITE/VK 2013-2014 S2
ANSWER ALL QUESTIONS
(a) Outline five main basic rules for a legal XML document. (5 marks)
(d) Suppose that there is a special kind of paper that must have a
title, an author and a body. We assign the author a unique ID
and may include his or her address as an optional attribute.
The body consists of one or more chapters, followed by a
series of references. Because this paper belongs to the
company “XYZ international,” a copyright claim may appear in
the paper.
(i) Write a DTD to define the above structure for
documents of type docpaper. (6 marks)
(ii) Give a sample XML document using the DTD you
wrote in part (i). (4 marks)
Page 2 of 5
Web-Based Information Systems (WAT3115C) SITE/VK 2013-2014 S2
QUESTION 2: (25 MARKS)
(b) Explain the following built-in functions and illustrate each using
simple examples. Specify all possible parameters where
required.
Page 3 of 5
Web-Based Information Systems (WAT3115C) SITE/VK 2013-2014 S2
QUESTION 3: (25 MARKS)
(c) Explain fully the main steps to create and use a Business
Component. (5 marks)
(d) List three ways to prevent SQL database injection attacks. (3 marks)
(e) Write extract codes to demonstrate how you can achieve the
following:
(a) List any four settings that can be configured in the web.config
file. (4 marks)
Page 4 of 5
Web-Based Information Systems (WAT3115C) SITE/VK 2013-2014 S2
(b) Distinguish between the following methods as used in
ADO.NET:
(1 mark)
(ii) The program must trigger once the TextBox control loses
focus.
(3 marks)
(iii) Show how the DataList is used to display data.