TRIBHUVAN UNIVERSITY
INSTITUTE OF SCIENCE AND TECHNOLOGY
2081 B.S.
Candidates are required to give their answers in their own words as far as practicable.
Group A
Long Answer QuestionsAttempt any Two questions.
- 1Describe the rules for creating XML document. Create a XML file with simple type and elements with attribute and nested elements. Write its equivalent XSD. [3+3+4]
- 2Create an HTML file containing form with textbox, select, and radio button. Write javascript function for validation (required, value selected, radio checked). [10]
- 3Write a PHP program to create a form. Create an insertdb() method to insert values into database and displaydb() to display them. [10]
Group B
Short Answer QuestionsAttempt any Eight questions.
- 4Describe client server architecture with its types. [5]
- 5Write a HTML script to create a table with $3\times3$. Second row third column has text "TU" linked to www.tu.edu.np. Height of second row is 200px. [5]
- 6What is onload event in HTML? Write a script that displays "Hello Nepal" alert in onload. [2+3]
- 7How internal and external CSS differ? Illustrate with examples. [5]
- 8How can you define array in javascript? Create array Fruit with elements and print it. [5]
- 9How can you transform XML document into HTML using XSLT? Support with an example. [5]
- 10Write a PHP function add that takes two arguments and returns their sum. [5]
- 11Define cookie. Write PHP program to create and retrieve a cookie. [1+4]
- 12What is text-overflow property in CSS? How can you use clip and ellipsis? [1.5+3.5]