VTU Computer Science (Semester 7)
Programming the Web
December 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) What is web browser and web server? Explain how communication takes place in between web browser and web server.
7 M
1 (b) What is the purpose of MIME type specification in a request / response transaction between a browser and server?
5 M
1 (c) Explain how the text content of an XHTML document can be formatted with XHTML tags with suitable example.
8 M

2 (a) Which widgets are created with the tag? Explain with examples.
8 M
2 (b) Briefly explain the different selector forms of the CSS. Illustrate the use of each with suitable example.
12 M

3 (a) Describe briefly the major differences between Java and JavaScript.
4 M
3 (b) Describe the two ways an Array object can be created. Explain the Array methods with suitable example for each.
12 M
3 (c) Write a JavaScript to generate first 4 Fibonacci numbers.
4 M

4 (a) Explain the basic concepts of event handling. List the events and their tag attributes.
12 M
4 (b) What is a dynamic XHTML document? How positioning and moving of elements are done in dynamic XHTML?
8 M

5 (a) Explain the four possible keywords used in a DTD declaration.
10 M
5 (b) Create a DTD for catalog of cars, where each car has the child elements make, model, year, color, engine, number-of-doors, transmission type, and accessories. The engine element has the child elements number of cylinder and fuel system. The accessories element has the attributes radio, air-conditioning, power-windows and power-brakes, each of which is required and has the possible value yes and no. Entities must be declared for the names of popular car makes.
10 M

6 (a) Briefly describe string functions of perl with suitable example.
5 M
6 (b) Write a perl program to read three numbers a, b and c, each on its own line, from the keyboard, and return the value of the expression load -[[c-1] / 17.44]
6 M
6 (c) What is a query string? What is the format of a query string that has multiple widget data values? How is a query string transmitted to the server with get method?
9 M

7 (a) Explain the actions of the implode and explode functions.
3 M
7 (b) Describe how file are created, read and write on the server system using PHP.
12 M
7 (c) What is cookie? How it can be created in a PHP script?
3 M

8 (a) Ruby
5 M
8 (b) Rails
5 M
8 (c) Data access with Perl and MYSQL.
5 M
8 (d) Document object model
5 M



More question papers from Programming the Web
SPONSORED ADVERTISEMENTS