Tribhuwan University

Institute of Science and Technology

2081

Bachelor Level / Second Year / Fourth Semester / Science

Bachelors in Information Technology (BIT251)

(Web Technology I)

Full Marks: 60

Pass Marks: 24

Time: 3 Hours

Candidates are required to give their answers in their own words as for as practicable.

The figures in the margin indicate full marks.

Section A

Long Answers Questions

Attempt any TWO questions.
[2*10=20]
1.
Describe HTML events. Write HTML script to demonstrate Onkeypress and Onclick events. [6+4]
2.
Explain the XML syntax rules. Create a XML file that contains a root element named and “Office”. Inside this root element create four "Employee" elements. Each "Employee" element must contain a "Skills" element and it can contain up to Three "Skills" elements. Now create an XML file for this scenario and write XSD showing the use of minOccurrence and maxOccurrence indicators. [5+5]
3.
Describe the uses of Popup Boxes in JavaScript with suitable examples. Write a JavaScript program that will take two strings as input and display concatenation of them as output. [6+4]
Section B

Short Answers Questions

Attempt any Eight questions.
[8*5=40]
4.
Describe about the client server architecture. [5]
5.
Write HTML script to generate following output.
question image
[5]
6.
Write HTML and equivalent CSS for some HTML elements to demonstrate relative and float positioning. [5]
7.
Consider an HTML file that contains three <div> elements and two <p> elements. The first <div> should have border color red with border size 1px. The next two <div> elements should have font-family Arial and text color blue. Both of the <p> elements should have background color yellow and their display property set to block type. Now write the equivalent external CSS for this case. [5]
8.
What is AJAX? Write a program to demonstrate the AJAX effect of your choice. [2+3]
9.
What are the usages of Main and Aside tags? Write HTML script using these tags. [3+2]
10.
Create a web form and write JavaScript to show form validation. The validation should be done for required, length and some pattern in the HTML form elements. [5]
11.
Create a XML document with some elements and write equivalent XSLT to render XML content in HTML. [5]
12.
What is a web page? How static web sites are different from dynamic web sites. [1+4]