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

VTU Previous Year Question Papers BE CS Seventh Semester

Programming the Web June 2010


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


1 a. Explain atleast two uses of the following :

i) MIME type specifications ii) PERL iii) PHP

iv) Java script       v)XML

b. Explain with an example the following tags :

i) Select     . ii) Frames  iii) Colspan

iv) Radio button v) Style class selector.


2 a. Explain the following, with respect to table creation in XHTML documents :

i) Align and valign attributes

ii) tr, th and t£ attributes

iii) Rowspan and colspan attributes

i)  Cell padding and cell spacing attributes.

b. Create XHTML document to describe a table with the following contents :

c. The columns of the table must have the headings pine, maple, Oak and fir. The rows must have the labels average height, average width, typical lifespan and leaf type. Fill the data cells with some values.


3 a. Explain the following CSS tags, with an example for each :

i) Class selectors ii) Pseudo classes iii) Background images

iv) Text decoration v) Alignment of text.

b. Create an XHTML document that includes atleast two images and enough text to precede the images, flow around them (one on the left and one on the right) and continue after the last image (NOTE : use CSS tags for the problem).


4 a. Describe briefly three major uses of Java script on the client side.

b.   Describe briefly the basic process of event-driven computation.

c.    Write a function in java script to check whether the given string has the form string 1, string2 letters where both strings must be all lowercase letters except the first letter and “letter” must be upper case. If the string is of the given format the function should return true or false otherwise.


5 a. What are the two ways in which an event handler can be associated with an event generated by a specific XHTML element in the DOMQ event model?  (06 Marks)

b. Describe the approach to addressing XHTML elements using forms and elements.

c. Write XHTML file and java script, scripts to sort a set of number in either ascending order or descending order. The sorting order is input from the user which is either “ascending” or “descending”. The sorted numbers should be displayed with proper headings.


6 a. Explain the following, with an example each :

i) Absolute positioning

ii) Dynamic content

iii) Element visibility

iv) Stacking elements.

b.   Write an XHTML document to display an image and three buttons. The buttons should be labeled simply 1, 2 and 3. When pressed, each button should change the content of the image to that of a different image.


7 a. Explain the three types that can be used to describe data in an element declaration, with an example for each.

b. What are the four possible parts of an attribute declaration in a DTD?

c.  Describe briefly an XML name space.

d. Briefly explain the purposes of XML processor.


8 a. In what three fundamental ways do Perl arrays differ from the arrays of other common high- level programming languages? Give examples for each.

b.   Write a pearl program to read three numbers a, b and c each on its own line, from the key board and display the result of the expression 10 ab — ((c-l)/17. 44).

c.    What are the three categories of operations that are essential in web documents but that cannot be done with XHTML?

d.  Briefly explain why should a file to be read or written by a CGI program be locked against multiple simultaneous operations.


Leave a Comment