Semester : SEMESTER 6
Subject : Web Technologies
Year : 2019
Term : DECEMBER
Branch : COMPUTER SCIENCE AND ENGINEERING
Scheme : 2015 Full Time
Course Code : CS 368
Page:3
F
13 a)
b)
14 ஐ
b)
15 a)
b)
16 a)
b)
९)
17 a)
17192135 Pages:2
message “Hello from JavaScript” in bold should replace the paragraph text.
Distinguish between descendant selectors and child selectors in CSS. If there is a
style rule given by body p { color : red; font-family : courier;
} and another style rule body > p { color : green; }, what styles will
apply to the content of a paragraph in the web page body?
Give a brief overview of the syntax used in JQuery with suitable examples. List
some of the selector types used in JQuery.
What are class selectors in CSS? Suppose that it is required to display the text
content of p tags in two different styles depending on the context.
Style 1 — text should be displayed in blue colour, right aligned, underlined, with
font style of italics and spacing between the words of text set to 2 cm.
Style 2 — text should be displayed with a background colour of yellow, having a
dashed, blue colour border, and with a padding of 1.5 cm
Write the equivalent CSS style rules.
What are the output statements provided by JavaScript? Write embedded
JavaScript code which displays a dialog box that prompts the user to enter a
string. The script should then concatenate the string after the string “Hello ” and
then print the result 5 times in in italics one below the other in the web page.
PART E
Answer any four full questions, each carries 10 marks.
What is the function of cookies? Explain why session tracking is sometimes a
better alternative to using cookies.
How is XML different from HTML? What is meant by the term namespace in
the context of XML?
During the process of fetching a web page from a web server to a client browser,
at what point does an embedded PHP script get executed? Can a client see the
PHP script in the retrieved page? How does this differ from JavaScript script
execution?
What are the two modes that the PHP processor operates in? Explain.
What is meant by a DTD? Create a DTD for a catalogue of cars, where each car
element has the child elements make, model, year, colour, engine, doors. The
engine element has the child elements no_of_cylinders and fuel_type.
How is the type of a variable determined in PHP? Distinguish between bound
Page 3 of 4
(4)
(5)
(5)
(4)
(5)
(5)
(3)
(2)
(5)
(3)