VTU Previous Year Question Papers BE CS Seventh Semester Programming the Web January 2010
VTU Previous Year Question Papers BE CS Seventh Semester
Programming the Web January 2010
Note: Answer any FIVE full questions, selecting at least TWO questions from each part.
1 a. Explain the task of a DNS name server.
b. Explain the response phase of HTTP.
c. Give syntax and an example to each of the following tags:
i) <pre> ii) <a> iii) <img> iv) <sub>
2 a. Write an XHTML document to describe an ordered list of your five favorite movies. Each element of the list must have a nested list of at least two actors in your favorite movies.
b. With examples, explain a style class selector.
c. Write an XHTML document that has six short paragraphs of text. Define three different paragraph styles pi, p2 and p3. The pi style must use left and right margins of 20 pixels, a background color of yellow, and a foreground color of blue. The P2 style must use font size of 18 points, font name ‘AriaF and font style in italic form. The p3 style must use a text indent of 1 centimeter, a background color of green, and a foreground color of white. The 1sl and 4,h paragraph must use pi, the second and 5th must use p2 ,and the 3rd and 6,h must use P3.
3 a. With examples, describe all input and output operations in java script.
b. Give examples for the different ways an array object can be created in java script, and also write XHTML document and java script code to sort ‘N’ given values using a sorting technique.
4 a. Describe functions in java script. Write an XHTML document and java script function to
compute and print factorial of a number.
b. Write XHTML document and java script code to implement the following :
i) To count the number of names in the given array that end in either “ie” or “y”.
ii) To print the position in the string of the leftmost vowel.)
5 a. With an example, explain on focus event in java script.
b. Describe the approach to addressing XHTML elements using forms and elements.
c. Write an XHTML document which displays a form containing text elements to input register number, sub-code, marks in three tests and a button element. Also write java script code to compute average of two better tests on click of button and print average marks using alert.
6 a. With examples, explain absolute and relative positioning of elements injava script.
b. Write an XHTML document that contains three short paragraphs of text, stacked on top of each other, with only enough of each showing, so that mouse cursor can always be placed over some part of them. Write java script code so that when cursor is placed over the exposed part of any paragraph, it should rise to the top to become completely visible.
7 a. What are the two primary tasks of a validating XML parser?
b. How does an XSLT processor use an XSLT style sheet with an XML document?
c. With examples, explain string functions in PERL.
8 a. Write a Perl program which creates a hash table containing country names keys and their capitals as values and perform the following :
i) Print all pair of values (country name and capital)
ii) Accept country name and print the capital of it.
b. With an example, explain how files are handled in PERL.