Tribhuwan University

Institute of Science and Technology

Model

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.
Write HTML script to generate following output. Create a table like below. Set link to www.facebook.com in the text "Null". The title of your HTML page should be "Test". The table should be in a div having id dv1. (explanation: The below table is about the use of rows and columns, use of rows , use of subscript and supescript)
question image
[10]
2.
What is the use of CSS? Describe various methods of inserting CSS in HTML. Give proper examples.
[10]
3.
Create a HTML form with fields like username, password, email, country. The username should be textbox, password and email should be the password and email fields. The country should be drop down. Now write JavaScript function for form validation. Your function should validate the username to be of length 5, password should start with digit and should be alphanumeric. The email should be valid. The country field should be selected.[10]
Section B

Short Answers Questions

Attempt any Eight questions.
[8*5=40]
4.
Describe the client server architecture and its types. [5]
5.
Write HTML script to show the use of Video and Canvas elements. [5]
6.
Describe the relative, float and absolute positioning with suitable examples. [5]
7.
Consider a HTML page contains two divisions and one paragraph tags. The divisions have id div1 and div2 respectively. The color of text in both of divisions should be red and background color of divisions should be green. The font style in paragraph should be Arial and the size of font should be 14. Write necessary CSS for the given scenario. [5]
8.
How array is defined in JavaScript? Illustrate with example. [5]
9.
What is cookie? Write a JavaScript code to create cookie object. [5]
10.
What is the use of XML? Discuss the XML elements. [5]
11.
What is DTD? How can you use CDATA and PCDATA in DTD? [5]
12.
Given following XML, write its equivalent XSD.
question image
[5]