Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

`UNIVERSITY OF ULSTER

UNIVERSITY EXAMINATIONS 2012/13


Supplementary Examination

Module Code: COM322

CRN: 53085

Title: Visual Web Development


Time Allowed: 2 hours

Use of Dictionaries:

Dictionaries are not permitted

Examination Aids:

Examination aids are not permitted

Instructions to Candidates:

Candidates should read this section carefully before


commencement of the examination.
You MUST answer all four questions (25% each)

Students are advised to write their ID number and desk number only on any
attachment, eg graph paper, or any other documentation being submitted with
their examination script book(s).

[insert name(s) of Module Co-ordinator(s)]

Module Co-ordinator - Mr Simon Fraser

Page 1 of 4

Question 1
(a) What is the main benefit of using ASP.NET AJAX?
(3 marks)
(b) Using ASP.NET AJAX, how might you amend your own ASP.NET web form to
indicate to a user that the web application is processing a request sent to the
server?
(6 marks)
(c)
(i) Which version of the jQuery library should you use for the production version of
your web application and why?
(4 marks)
(ii) At which stage of the ASP.NET lifecycle would jQuery code be outputted onto
the browser?
(2 marks)
(d)
(i) What is the main risk in referencing an online version of a jQuery library?
(2 marks)
(ii) How might you avert this risk? Provide sample code in your answer (assume
that the jQuery library is called jquery.js and that the online version is hosted
at http://ajaxlibary.com).
(8 marks)

Question 2
Consider the following simplified database schema for a second hand clothes store:
SUPPLIER (SupplierID, Name, Address, PostCode, PhoneNo, EmailAddress)
ORDER (OrderID, SupplierID*, ClothesID*, Quantity, Total)
CLOTHES (ClothesID, Name, Price)
An * indicates the field is a foreign key
(a)
(i) Write a SQL query that will add shoes that cost 15.95 to the CLOTHES table
(assume that ClothesID is an auto-incrementing primary key).
(6 marks)
(ii) Write a SQL query that will show the total number of suppliers.
(6 marks)
(b) How would you ensure that these SQL queries will not crash your web application
in a run-time environment? Provide sample code in your answer.
(4 marks)
Page 2 of 4

(c)
(i) If the user was entering in details of a new supplier via a web form, what
controls should be used to ensure that the mandatory field PostCode was
filled in correctly?
(4 marks)
(ii) How would you ensure that the value entered in the PostCode field can be
transferred to another webpage? Provide sample code in your answer.
(5 marks)

Question 3
(a) What do the terms authentication and authorization mean?
(4 marks)
(b) How would you ensure that your web application allows for authentication whilst
maintaining a high degree of security when a user logs on?
(5 marks)
(c)
(i) What are two things that your web application must know when determining
authorization?
(4 marks)
(ii) What are the two options that you would use in Visual Studio to ensure that a
folder can only be accessed by the correct user in a web application?
(6 marks)
(iii) Which option should you use if your web application had multiple folders and
why?
(6 marks)
Question 4
Read the following requirements for a web page

The web page will prompt the user to enter in a number between 1 and 100
(assume that the user will always enter in a number).
After the users number has been checked, total all the even numbers between
1 and the number entered.
After this has been carried out, the web page should tell the user what the total
is.
All validation must take place in the code-behind file; assume that error
messages will be outputted via label controls.

Page 3 of 4

(a) Sketch the design view for the page, indicating where the relevant controls are
and the names you have given them.
(5 marks)
(b) Write the code that would be in between the <form id=form1 runat=server> and
</form> tags in the source view of the web page.
(5 marks)
(c) Write the VB.NET code that would be in the code-behind file for this web page.
(15 marks)

Page 4 of 4

You might also like