Semester : SEMESTER 6
Subject : Web Technologies
Year : 2019
Term : DECEMBER
Branch : COMPUTER SCIENCE AND ENGINEERING
Scheme : 2015 Full Time
Course Code : CS 368
Page:4
18
19
20
b)
௦)
a)
b)
a)
b)
௦)
8)
b)
F192135 Pages:2
and unbound variables. How can a variable be tested to check whether it is
bound?
What is the purpose of the explode() and implode() functions in PHP? Illustrate
with suitable examples.
What are the benefits of XML schema over DTDs? Discuss, with examples, the
various user defined data types permissible for XML schemas.
Write an embedded PHP script which displays the factorial of all numbers from 1
to 10 in a table in the web page. The factorial should be calculated and returned
from a function. The table headings should be “Number” and “Factorial”.
Write notes on entities in XML. State the format for declaring external entities
(text and binary) in a DTD.
What are associative arrays? How are associative arrays declared in PHP?
Illustrate with an example.
Briefly describe, with suitable examples, the various methods for iterating over
the contents of a PHP array.
What is the purpose of XSLT style sheets? Suppose that an XML document
contains a root element named students which has a child element student.
Each student element has the child elements name, ௨௦11 ௩௦ and branch.
Suppose that there are 5 instances of the student element. Write an XSLT style
sheet to display the student data as an HTML document.
What is the purpose of the implicit arrays $_POST and $_GET in PHP? Consider
that a web page displays a form containing two text boxes (named 1101711 and
num2), where the user enters numeric data. Write a PHP script which collects
this form data, finds the sum, difference and the product of the two numbers and
then displays the same with suitable messages. Assume that the script is to be
embedded in the web page specified by the action attribute of the form and that
the method used when the form is submitted is GET.
Can CSS be used to display an XML document? Illustrate with an example.
ಸಸ್ಯ KK
Page 4 of 4
(2)
(5)
(5)
(5)
(2)
(3)
(5)
(5)
(5)