Browse papers
A

Section A: Long Answer Questions

Attempt any TWO questions.

3 questions·10 marks each
1long10 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
2long10 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
3long10 marks

Explain the structure of an HTML5 document. Discuss the different ways of applying CSS (inline, internal, external) with examples and explain the CSS box model.

htmlcss
B

Section B: Short Answer Questions

Attempt any EIGHT questions.

9 questions·5 marks each
4short5 marks

Explain different types of CSS selectors with examples.

css-selectors
5short5 marks

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

javascript-basics
6short5 marks

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

dom
7short5 marks

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

xslt
8short5 marks

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

php-arrays
9short5 marks

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

php-functions
10short5 marks

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

url-dns
11short5 marks

Differentiate between the GET and POST methods of submitting form data.

get-post
12short5 marks

What is AJAX? Explain how AJAX enables asynchronous communication between the client and the server.

ajax