VTU Computer Science (Semester 7)
Programming the Web
June 2014
Total marks: --
Total time: --
INSTRUCTIONS
(1) Assume appropriate data and state your reasons
(2) Marks are given to the right of every question
(3) Draw neat diagrams wherever necessary


1 (a) Explain HTTP and also explain web servers operation and general server characteristics.
8 M
1 (b) Explain MIME type specification in request / response transaction. Give the syntactic difference between HTML and XHTML.
8 M
1 (c) Discuss the following tags with syntax and example: i)
 ii) 

4 M

2 (a) What are selector forms? Explain the different types of selector forms with example.
8 M
2 (b) Write document level style sheet to illustrate pseudo clauses. Discuss the conflict resolution in CSS.
8 M
2 (c) Create an XHTML document that includes at least two images and enough text to precede the images, flow around them (one on left and one on right) and continue after the last image (Note: Use CSS tag).
4 M

3 (a) Explain JavaScript arrays with examples.
8 M
3 (b) Write a JavaScript that contains a functions named validate-phoneno, which tests the phone number of the format ddd-dddd-ddddddd < 091 ? 8256 - 1234567 > and display whether the given number is valid or not using alert.
4 M
3 (c) Write a note on character and character classes. Describe briefly three major uses of JavaScript on the client side.
8 M

4 (a) Explain with example, the different approaches of addressing XHTML, elements in JavaScript.
5 M
4 (b) Explain the three phases of event processing in the DOM2 event model.
5 M
4 (c) Write a JavaScript which displays the message when the mouse button is pressed no matter where it is on the screen.
5 M
4 (d) Explain the different types of positioning, with example.
5 M

5 (a) What is the document type definition (DTD)? Describe the approach to declare elements, entities and attributer.
8 M
5 (b) Explain the purpose of XML parser.
6 M
5 (c) Describe briefly and XML name space. What are the two categories of user defined XML schema data type?
6 M

6 (a) Describe with example, the various types of variable in PERL.
8 M
6 (b) What is query string? How is it transmitted to the server with the GET and POST methods?
6 M
6 (c) Write a CGI program that collects the data from the form and writes it to a file (assume the form data).
6 M

7 (a) Discuss arrays in PHP.
8 M
7 (b) Explain file operation in PHP.
6 M
7 (c) What is cookie and session tracking, how are they handled in PHP.
6 M

8 (a) With example, explain simple input and output functions in ruby. Explain code blocks and iterators.
10 M
8 (b) Discuss access control in ruby.
5 M
8 (c) Write a ruby program to display the second smallest number in the list, along with it position in the list.
5 M



More question papers from Programming the Web
SPONSORED ADVERTISEMENTS