Browse papers
A

Section A: Long Answer Questions

Attempt any TWO questions.

3 questions·10 marks each
1long10 marks

What is XML? Create an XML document to describe a "weather report" with appropriate elements and attributes, and write an equivalent DTD for it.

xmldtd
2long10 marks

Explain how PHP handles forms and connects to a MySQL database. Write a PHP script to insert and retrieve student records from a MySQL database.

phpmysql
3long10 marks

Explain client-side form validation using JavaScript. Write an HTML form with JavaScript to validate a username, password and a checkbox before submission.

javascriptform-validation
B

Section B: Short Answer Questions

Attempt any EIGHT questions.

9 questions·5 marks each
4short5 marks

Differentiate between the Internet and the World Wide Web. Explain the client-server architecture of the web.

wwwinternet
5short5 marks

Explain HTML tables and forms with examples of the common form elements.

html-tables-forms
6short5 marks

Explain different types of CSS selectors with examples.

css-selectors
7short5 marks

Explain JavaScript data types, operators and control structures with examples.

javascript-basics
8short5 marks

What is the Document Object Model (DOM)? Explain how JavaScript is used to manipulate the DOM.

dom
9short5 marks

What is XSLT? Explain how XSLT is used to transform an XML document with an example.

xslt
10short5 marks

Explain arrays in PHP. Differentiate between indexed, associative and multidimensional arrays with examples.

php-arrays
11short5 marks

Explain user-defined functions in PHP with examples of passing arguments by value and by reference.

php-functions
12short5 marks

Explain the structure of a URL and the role of DNS in resolving domain names.

url-dns