Browse papers
A

Section A: Long Answer Questions

Attempt any TWO questions.

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

Explain the HTTP protocol. Describe the structure of an HTTP request and HTTP response message with the common HTTP methods and status codes.

http
B

Section B: Short Answer Questions

Attempt any EIGHT questions.

9 questions·5 marks each
4short5 marks

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

dom
5short5 marks

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

xslt
6short5 marks

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

php-arrays
7short5 marks

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

php-functions
8short5 marks

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

url-dns
9short5 marks

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

get-post
10short5 marks

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

ajax
11short5 marks

Explain the role of a web server. Differentiate between static and dynamic web pages.

web-servers
12short5 marks

What is JSON? Differentiate between JSON and XML for data exchange.

json