For More Question Papers Visit - www.pediawikiblog.com 10cs73
USN
Seventh Semester B.E. Degree Examination, Dec.2015 I J an.201,6
Programming the Web Note: Answer FIVE faU questions, selecting at least TWO questions from each parl
tr
0 o o
E9
iv)
v,
Ec
2
!,, bn" d'€
a. b.
c.t -= dV
What are selector forms? Explain with
a.
With the help of an example,
-.E
b.
BS bU (dO
6d Ex }E 6+
.T 6tj
otO
c. 4
E.E Ha)
them.
>tH
eoo
.Hd
+o tr > .fl\\.d o-ff\-- * E',a;:" :- 5
w z tdo
o.
(06 Marks) (08 Marks)
JavaScript's screen output and keyboard input (08 Marks)
*fu"
i) Math object #r\= ii) Number object , liii) Date object_.", w" " iv) Anay o"bj%it;:
(08 Marks)
Write a JavaScdidhdo read an email ID from the user using prompt and validate it. It should
,;.S,#*'.' (dot)
(04 Marks)
a. Discuss.lml...f-two methods of Element Access in JavaScript. Give examples for both. (06 Marks) qff;1 b. Wffifle help of an example, explain any one event associated with the following elements. (06 Marks) _SFbdV ii) Button iii) Textbox standard values ,9.ffiExplain different techniques to position elements in XHTML. What are the "e',,'$, for visibility property? How are they used? (08 Marks)
w w
?E
o o
q
forms.
Explain the following objects_a@able in JavaScript. List atleast 3 methods available with
contain
9H to otE
\J<"'. i'f1
ex,p1{i.!3
types of selector
.p
Y= a9 trit 5.! od'
exaffidifferent
ia
o€ b0ts
methods.
'{}w.."*
ik
c.
__
w
t
J
(08 Marks)
ed
*.a
(08 Marks)
Why are lists used on web pages? With an example,,q5.plaifi different types of lists available (06 Marks) in XHTML. Explain with an example the concept of frameseffs4qd frames in building web pages
-.E()
o3
&"*(o+ Marks)
{,*i
h. ..
d^
bf,o 6)tr
co
CB
What is MIME? Explain its specifications. Write the General form of HTTP request and response. Explain. Illustrate with an example, each of the following XHTML tags i)
ii) iii)
g.
p.
a. b. c.
'\j*'" ^#;,..* {%:' ". "- t
lo
I
3 k
ib
.9 !
4,-e 't
{
-A
PART d
Max. Marks:10ft
m
Time:3 hrs.
PART
-B
What is DTD? What is the difference between Extemal and Internal DTD's? Write the (08 Marks) syntax and example for declaring elements, Attributes and Entities in a DTD. (06 Marks) b. Illustrate with the help of a diagram the XSLT processing. c. Declare an XML document containing data of 3 Employee's (Emp_ID, Emp_Name, Emp_Desig, Emp_Age, Emp_Phone, Emp_Address) and display this XML data using CSS, with following rules: Emp_ID in font-size 28 pts and cblor- Red Emp_Name and Emp_Desig in font size 18 pts and color - Blue Emp_Age, Emp_Phone and Emp_Address in font size 15pt and color- Black. (06 Marks) a.
For More Question Papers Visit -I www.pediawikiblog.com of2
t
For More Question Papers Visit - www.pediawikiblog.com
10cs73
t"u *'(06
Array's.
Write an XHTML and Perl program,
* the XHTML should define d&ttn
Marks)
containing Book_AccNO, Book_Name, Book_Author, BoofEdn, and Book_Pqb@Hs textboxes and a submit and reset button. On submission to a Perl CGI, the Perl prg$}a+h should extract the book information and store it into the database in 'Book',.-"tdE. Handle exceptions . *,. * (08 Marks) appropriately.
g.
c.
m
b.
#
Write a Perl progmm to read a number from standard input device and check if it isgqritfle number. Display appropriate massages. @ffiarkg How are Array's declared in Perl? Demonstrate the use of 'foreach' statedhilt"'%n perl
co
6 a.
b. c.
d.
ib
ik
8a.
(08 Marks) ,*ffi6* What is a Cookie? Why are they used? Wh@function is used in php to set a Cookie? Give ,' (04 Marks) an example and slmtax. fl *
,r*t\"
prtE
(04 Marks) Explain keyboard input and scregnlUffiut functions in Ruby. Write a Ruby program to de_c_lB#mn array, store in it 10 elements of type integer. Use (06 Marks) 'for- in' statement to sum fl6@ay elements and display the sum. help of how rails responds With a a diagram_e.ffi_r{hin to simple web requests. (04 Marks) (06 Marks) Write a note on the conoeptof classes and inheritance in Ruby.
w
c.
Explain different functions available in php for handlinefl**. Give examples for opening, (08 Marks) closing, reading and writing to files. #+, What is session tracking in web pages? With tfff.rhelp of an example php program demonstrate how session can be used to track 4dhQel of web pages visited in a session.
ia
b.
lo
t"*
la.
h' (","\a"''
:kr.*rkrk
ed
,r, i:'-.1."' 'L i'
.p
. r'i'.'b
w w
. d\k#' " .,t.
t-
w
& a,'
2 of2
For More Question Papers Visit - www.pediawikiblog.com