VTU Previous Year Question Papers BE CS Seventh Semester Programming the Web December 2010

VTU Previous Year Question Papers BE CS Seventh

Semester Programming the Web December 2010

 

Note: Answer any FIVE full questions, selecting at least TWO questions from each part.

PART-A

1 a. How does domain name conversion happens on the web? Describe the concept, with a

figure, by taking a suitable example.

b. Give and explain the request and response phases of hyper text transfer protocol.

c.   What is the purpose of a MIME type specification in request/response transactions between a browser and a server?

d.   Give and explain the syntax of the following tags:

i) < blockquote >    ii) < meta >

 

2 a. Create, test and validate a XHTML document that has a form with

(I) Three text boxes to collect user name and address.

(II) Table with the headings product name, price and quantity and the values are

i)   100-watts light bulb, $2.39, 4

ii)   200 – wratts light bulb, $ 4,29, 8

iii)  100 – watts long life light bulbs, $ 3.95, 4

iv)   200 – watts long life light bulbs, $ 7.49, 8

(III)    A collection of 4 radio buttons that are labeled as

i)Visa ii) Master card iii) Discover iv) Check

(IV) A submit and a reset button.

b.   Explain the syntactic differences between HTML and XHTML.

c.    Create XHTML document that has two frames. The left frame displays contents.html and the right frame displays cars.html where the second frame is a target of link from the first frame. [Note : contents.html is a list of links to the cars description.]

 

3 a. What are the selector forms? Explain with example, different types of selector forms, with syntax.

b. How many levels of style sheet are there? Explain their usage, with syntax and example.

c.    Write document level style sheet to illustrate the text-decoration.

d.   Write the conflict resolution in cascading style sheets.

 

4 a. Explain with examples, the screen output and keyboard input methods.

b.   Write a java script to accept three numbers, using the prompt method. Find and display the largest of three using alert method. Use predefined function Math.max.

c.    Write a java script that contains a function named tst_phonejnum, 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.

d.   Write a note on character and character classes.

PART-B

5 a. What are the different approaches to addressing XHTML elements? Describe with examples.

b. Explain the three phases of event processing in the DOM2 event model.

c.Write a javascript to compare two passwords.

 

6 a. Explain the different types of positioning, with examples.

b. Write a java script that illustrates the dynamic stacking of images.

c.   Write a java script which displays the message ‘Hello, how are you?’ when the mouse button is pressed no matter where it is on the screen.

d. What exactly is stored in the screen X and screen Y properties after a mouse click?

 

7 a. What is the document type definition (DTD)? Describe the approach to declare elements, entities and attributes.

b. Create an XML document that lists advertisement for selling used cars.

c. With a neat diagram, explain the transformation process by an XSLT processor.

 

8 a. Describe with examples, the various types of variables, in PERL.

b. Write a PERL program to read a file on command line that contains person’s name, in each line, converts them to uppercase and displays them in ascending order.

c. Write a CGI-PERL program to use a cookie to remember the day of the last login, from a user and display it when executed.

d. Write a note on CGI-Pm module.

Leave a Comment