Term1Sampleexamination 2015

Web Applications For Business — COIS21001

Instructions Sheet

  1. Write all answers in the Examination Answer Booklet provided.
  1. There are 8 questions worth 5 marks each for a total of 40 marks.

TOTAL40 MARKS

Question 1 5 Marks

Define the following terms:

  1. CSS (1 mark)
  2. Encapsulation (1 mark)
  3. JQuery (3 marks)

Question 25 Marks

How do you create consistently looking websites? (5 marks)

Question 3 5 Marks

Given the following Web.sitemap file

<?xmlversion="1.0"encoding="utf-8" ?>

siteMapxmlns="

<siteMapNodeurl="~/"title="Home"description="Home"

<siteMapNodeurl="~/Default.aspx"title="Home"

description="Home" />

<siteMapNodeurl="~/Books/Default.aspx"title="Books"

description="List of books"

<siteMapNodeurl="~/Books/Specials.aspx"title="Specials"

description="List of books on sale"/

siteMapNodeurl="~/Books/Clearance.aspx"title="Clearance"

description="List of books on clearance"/>

<siteMapNodeurl="~/Books/Contact.aspx"title="Contact Us"

description="Contact Details" />

</siteMapNode

</siteMapNode

</siteMap

(a) Illustrate the TreeView that will be displayed by this Web.sitemap.(3 marks)

(b) Assume the user has navigated to ~/Books/Default.aspx what would be the breadcrumb displayed with this SiteMapPath? (2 marks)

Question 4 5 Marks

(a)What is meant by validation controls? Provide examples. (3 marks)

(b)Describe the terms "authentication" and "authorization" and distinguish them?

(2 marks)

Question 5 5 Marks

The following HTML code fragment is taken from a file that uses “jquery.js” and “jquery.mobile.js” scripts.

<divid="form" data-role="page"

<div data-role="header" data-position="fixed"

<h1>Toys</h1>

</div>

<div data-role="content"

<div data-role="fieldcontain"

<labelfor="input"Please enter yoursurname:</label>

<inputtype="text"id="input" placeholder="input"/>

<labelfor="select"Select a Kitchen appliance :</label>

<selectid="select"

option>Microwave</option>

option>Kettle</option>

option>Toaster</option>

option>Cake mixer</option>

</select>

<labelfor="slid0"Specify your cooking skill level:</label>

<inputtype="range"name="slider"id="slid0"value="3"min="0" max="10" />

<ahref="selectKitchenAppliance.html" data-role="button"Submit</a>

</div>

</div>

</div>

Sketch the output you would expect to see on the HTML page for the content div.

(5 marks)

Question 6 5 Marks

Define e-commerce. Discuss the business case for developing an e-commerce website for a flight centre.

Question 7 5 Marks

You are required to restrict access to pages contained in the /Securityfolder of your website so that only users with the manager roles can access particular pages. Explain how you would achieve this if you were unable to use the ASP.NET Web administration tool.

Question 8 5 Marks

(a)What steps are involved in enabling a Profile in an ASP.NET website?

(2 marks)

(b)What script would you would write to create a Profile object that allows anonymous users to store a username string and associated password string? Discuss the advantages and disadvantages for adopting this approach. (3 marks)

- End of paper -

Page 1 of 4