Tribhuvan University
Institute of Science and Technology
Wt Model Qn
Bachelor Level / fifth-semester / Science
Computer Science and Information Technology( CSC318 )
Web Technology
Full Marks: 60+20+20
Pass Marks: 24+8+8
Time: 3 Hours
Candidates are required to give their answers in their own words as far as practicable.
The figures in the margin indicate full marks.
SECTION A
Attempt any TWO question.
Write the structure of XML file with example. Write XML and DTD to describe “weather report” as an element and ” date, location, city, state and temperature range” as its attribute.
Write HTML script to create HTML form and perform validation using javascript. Validate for username to be empty, password should be of length at least 5, and the check box should be checked.
Write a PHP program to insert and select value to and from database.
SECTION B
Attempt any EIGHT question.
Difference between Static and Dynamic website.
Create a registration form with the elements Name, Country, Gender and a submit button which display a message “Registered” on keypress event.
Explain CSS box model.
Write a client side script to display the array [ “Cherry”, “Mango”, “Watermelon”, “Strawberry”] in the body of HTML.
How can you define class and objects in PHP? Write a PHP script to create class and its object.
Compare XML Schema with DTD.
What is JQuery animate? Explain with an example.
Create a PHP array of string type and concatnate them to form a sentence and display it.
Create a HTML page with a link containing mail to [email protected] in the footer tag. Set the keywords “iost”, “csit” using Meta tag in the page.