Web Programming
Web Programming
m
BACHELOR OF COMPUTER
APPLICATIONS(BCA)
.co
(Revised)
Term-End Examination
December, 2013
uru
BCS-053 : WEB PROGRAMMING
Time : 2 hours Maximum Marks : 50
(Weightage 75%)
tG
Note : Question No. 1 is compulsory and carries 20 marks.
Attempt any three questions from the rest.
en
1. (a) Why is web 2.0 more popular ? How does a 5
static website differ from a dynamic
nm
BCS-053 1 P.T.O.
(b) What is JDBC ? Write a program to insert a 5
m
record in the employee table of database.
Make and state suitable assumptions, if any.
.co
3. (a) Explain the Box Model of HTML. Write the 5
HTML and Style sheet for a text "welcome
to IGNOU" Which is to be displayed with
20px margin on all sides padding of 10 on
uru
all sides, with white font and black
background colour.
(b) What is WAP ? Design a WML program to 5
display the profile of an Item having
tG
attributes: Item Id, Item Name, Item Price
and Item Quantity.
en
4. A Student data is to be represented using XML.
The information that is to be included is student
ID, student name, student address (Home and
nm
BCS-053 2
No. of Printed Pages : 2 BCS-053
BACHELOR OF COMPUTER
m
APPLICATIONS(BCA)
co (Revised)
.co
Term-End Examination
O
June, 2014
uru
BCS-053 : WEB PROGRAMMING
5
the division by zero error. Make suitable
assumptions, if any.
2.
NO
BCS-053 1 P.T.O.
(b) Assume that a database as a backend to a 5
website exists with a table having fields :
Roll Number, Name, Programme code etc.
m
Write JSP code sequence of steps to display
the list of students with programme code
"BCA".
.co
3. (a) Explain the use of class selector and id 5
selector in CSS and HTML with the help of
an example.
uru
(b) What is WML ? Design WML program to 5
display the profile of an Employee having
attributes : Employee ID, Employee Name,
Employee Age and Employee Designation.
4. ntG
An address book consists of addresses of contacts.
A contact will have a contact name, contact
address, contact type (official, personal, family)
and a number of phone numbers including home
me
phone and mobile phones.
(a) Write an XML document with atleast two 4
records for the requirements as above. Make
suitable assumptions, if any.
ign
(b) Cookie
(c) DIV and span tags
(d) Rich Internet Applications
NO
IG
BCS-053 2
No. of Printed Pages : 3 BC S-053
BACHELOR OF COMPUTER APPLICATIONS
m
(BCA) (Revised)
Term-End Examination
co
December, 2014
00344
.
uru
BCS-053 : WEB PROGRAMMING
tG
Note : Question number 1 is compulsory and carries 20
marks. Attempt any three questions from the rest.
en
1. (a) What are the advantages of using CSS for
nm
m
can be set with the help of an example.
co
(e) List the steps that would be required to
verify the username and password entered
by a user on a login page to the information
.
uru
stored in a database, using JSP.
(i)
pages tG
Static web pages and Dynamic web
en
(ii) 2-Tier architecture and 3-Tier
architecture
nm
example.
2.0 technologies :
(i) Blogging
OU
BCS-053 2
4. (a) What is the need of WML ? Explain any
two elements of WML that can be used for
5
m
input of data.
(b) What is the use of JSP directives ? Explain
the page and include directives of JSP with
co
the help of an example. 5
.
uru
diagram or an example, if required : 10
(a) Methods of ResultSet object
(b) Hidden fields in the context of session
management
(c)
(d)
GET method
tG
Events in the context of web programming
en
(e) Uses of < div > tag
nm
sig
As
OU
IGN
BCS-053 3 7,000
No. of Printed Pages : 2 I BCS-053 I
m
.co
BACHELOR OF COMPUTER APPLICATIONS
(BCA) (Revised)
Term-End Examination
uru
0.4773.4 December, 2015
web page.
BCS-053 1 P.T.O.
2. (a) What are cookies ? Write a program to
m
create cookies to store User ID and
password of the client on his/her machine. 5
.co
(b) What are JDBC Driver(s) ? Name them
and differentiate between Two and Three
uru
tier database access models. 5
ntG
and grade. Write a program using JSP and JDBC
to insert records into the database. 10
elements. 6
(b) Write a JavaScript program to accept the
first, middle, last names of the students
and print them. 4
sig
BCS-053 2 9,000
No. of Printed Pages : 2 [ BCS-053 I
m
BACHELOR OF COMPUTER APPLICATIONS
.co
(BCA) (Revised)
Term-End Examination
Uric:PEI
uru
June, 2016
BCS-053 1 P.T.O.
2. (a) Differentiate between the following :
m
(i) Social Media and Social Networking
(ii) JSP and Servlet 5
.co
(b) Explain GET and POST methods of HTTP
protocol. Why do you use these methods ?
uru
Explain with examples. 5
tG
help of an example, design an HTML
program using an embedded style sheet. 5
en
4. (a) Write a JSP program which will
demonstrate the use of <jsp : include> and
<jsp : param> action. 5
nm
programming.
BCS-053 2 5,000
No. of Printed Pages : 3 BCS-0531
m
BACHELOR OF COMPUTER APPLICATIONS
(BCA) (Revised)
.co
Term-End Examination
December, 2016
uru
G4606
BCS-053 : WEB PROGRAMMING
Time : 2 hours
tG Maximum Marks : 50
(Weightage 75%)
en
Note : Question no. 1 is compulsory. It carries 20 marks.
Attempt any three questions from the rest.
nm
BCS-053 1 P.T.O.
(d) What is WML ? Explain any two WML
elements that can be used for data input. 4
m
(e) Explain how errors are handled at page
level in jsp programming, with the help of
.co
a program fragment. 4
uru
JavaScript containing a paragraph about
computers. The text colour of this
paragraph should change on click of the
mouse on that paragraph.
tG
(b) Create an XML document that stores the
title, author_name, year_of publication
en
and price of a book. Create this information
for three books. Create the DTD that
validates the XML document created for
nm
the books.
student id
course_code
marks_out_of 100
IGN
m
password. In case the username and
password match "IGNOU" and "TEST"
.co
respectively, the user is redirected to a
page named result.jsp. 5
uru
(b) What is AJAX ? How is it different from
JavaScript ? Name any two web browsers
that support AJAX. 5
5.
tG
Explain any four of the following in context of
en
web programming, with the help of an example/
diagram. 10
nm
BCS-053 3 8,000
No. of Printed Pages : 3 BCS-053
m
BACHELOR OF COMPUTER APPLICATIONS
(BCA) (Revised)
.co
Term-End Examination
uru
BCS-053 : WEB PROGRAMMING
Time : 2 hours Maximum Marks : 50
tG (Weightage 75%)
en
Note : Question no. 1 is compulsory and carries
20 marks. Attempt any three questions from the
nm
rest.
BCS-053 P.T.O.
(c) Create an HTML form asking for the
following information :
m
(i) Name
.co
(ii) Program (which should be selected
from a dropdown list consisting of two
options — BCA and MCA)
uru
(iii) Date of Birth
Also write a JSP program that accepts the
input from the form and displays the
information on the screen.
tG
You entered the following
en
information :
Name
Program
nm
Date of Birth
BCS-053 2
3. (a) What is CSS ? Explain embedded style
sheets with the help of an HTML program. 5
m
(b) Explain the use of the following in XML : 5
(i) XML namespaces
.co
(ii) XML XSLT
uru
of cookies for session tracking with the help
of an example. 5
(b) What are the uses of GET and POST
ntG
methods of HTTP ? Also explain the
differences between GET and POST. 5
BCS-053 3 3,500
No. of Printed Pages : 3 I BCS 053 I
-
m
(BCA) (Revised)
.co
Term-End Examination
uru
BCS-053 : WEB PROGRAMMING
Time : 2 hours
tGMaximum Marks : 50
(Weightage 75%)
en
Note : Question no. 1 is compulsory. Attempt any three
questions from the rest.
nm
for each. 5
(b) Explain with the help of an example how
As
m
(i) Static web pages and Dynamic web
2
.co
pages
(ii) 2-Tier architecture and 3-Tier
architecture
uru
3. (a) Explain the Box model of HTML. Write the
HTML and CSS for the text 'The Open
tG
University", which is to be displayed with
25 px margin on all sides and padding of
15 px on all sides, with white font and blue
en
background colour. 5
(b) Explain the image and navigational
nm
BCS-053 2
5. Explain any four of the following terms with the
help of a diagram or an example : 4x2 - =10
2
m
(a) JDBC-ODBC Bridge
.co
(b) Scriplets in JSP
uru
(d) Page Directive of JSP
tG
en
nm
sig
As
OU
IGN
BCS-053 3 5,500
No. of Printed Pages : 3 , I BCS-053 I
m
BACHELOR OF COMPUTER APPLICATIONS
(BCA) (Revised)
.co
Term-End Examination
June, 2018
uru
BCS-053 :: WEB PROGRAMMING
BCS-053 1 P.T.O.
2. (a) What are the scripting elements of JSP ?
4
m
Explain with the help of an example.
.co
following fields :
Item Number, Item Name, Item Code.
Write JSP code/program to display the list
uru
of items. 6
suitable assumptions). 4
(b) Write the DTD that validates the XML
IGN
m
an exaMple/diagram : 10
.co
(b) Session Object
uru
(d) GET Method of HTTP
BCS=053 3 5,000
No. of Printed Pages : 4 BCS 053
m
-
.co
(BCA) (Revised)
CDT E:$41- Term-End Examination
uru
December, 2018
-
e ntG
BCS 053 : WEB PROGRAMMING
(Weightage : 75%)
1. (a)
Sheets (CSS) in the context of Web
Programming 9 How can a style sheet be
OU
BCS-053 1 P.T.O.
m
(b) Represent the following information of
books using XML document. You may
.co
design your own tags. Also write the DTD
that validates this XML document.
Programming Web
Book Title Fundamentals Programming
uru
Publisher ABC XYZ
First Author
ntG
Ravi Sethi A. Tanenbaum
<html>
<head> Test </head>
<body>
<p id = "Welcome"> Welcome to
sig
Examination </p>
As
</body>
</html>
OU
m
the command to create a new cookie having
a name testcookie. Also write the command
.co
to set the life of this cookie to
10 minutes. 4
uru
(e) What is a "Safe Method" in the context of
HTTP ? Is GET a safe method ? Justify
your answer. Explain the GET method
with the help of an example.
ntG
2. (a) Explain the use of the following in HTML
with the help of an example :
e
(i) SELECT element in the context of
nm
forms.
(ii) Tags used to create a table in an
HTML page.
sig
<em>
<img src>
(iv) <set var>
BCS-053 3 P.T.O.
(c) What is a web service ? Explain with the
m
help of an example. 3
.co
4. (a) Explain the role of each tier in three-tier
architecture of web application.
(b) Differentiate between the following : 4
uru
(i) Static web page versus Dynamic web
page
(ii) Model versus View in the context of
ntG
MVC architecture
(c) Write a scriptlet using JSP that adds
numbers from 1 to 10 and prints this
e
result. 3
nm
BCS-053 4 6,000
51862
m
No. of Printed Pages : 4 BCS-053
.co
BACHELOR OF COMPUTER
APPLICATIONS (BCA) (Revised)
uru
Term-End Evnrnination
June, 2019
BCS-053 : WEB PROGRAMMING
Time : 2 Hours
ntG Maximum Marks : 50
(Welgistage 75%)
Note : Question No. 1 is compulsory and carries 20
me
marks. Answer any three questions , from the
'rest.
(A-4) P. T. 0.
[2] BCS-053
m
(b) What are the uses of JavaScript in Web
.co
Programming ? Write and explain Java-
Scriptcode that changes the background
colour of a web page to "Red" if a button is
uru
clicked. 4
(c) How is WML different than HTML ? Write
WML script that displays your enrolment
screen. ntG
number and name in the centre of the
4
(d) A student fee table contains information
me
about student enrolment number and
amount of fee paid by a student. A student
can pay fee only once. Assuming that a
ign
(A-4)
I3/ BCS-053
m
2. (a) List any four technologies that can be
.co
categorised as Web 2.0 technologies.
Explain the features of Rich Internet
Applications. 3
uru
(b) What is an external style sheet ? How is it
linked to a HTML document ? Explain the
concept of box model in text style
specification.
ntG 4
(c) Explain the uses of XML CSS and XML
XSLT. 3
me
3. (a) What is the purpose of class selector in
CSS ? Explain with the help of an example.
3
ign
XML Schemas
WAP Protocol Stack
NO
(A-4) P. T. O.
[ 41 BCS-053
m
(b) Explain with the help of an example code
how hidden fields can be used in session
.co
management. 3
(c) Explain the JSP compilation time error
and JSP request time errors. 3
uru
5, Explain any four of the following with the help
of an example/diagram, if needed : 10
ntG
(a) Web container
(b) Request and Response in the context of
HTTP
me
(c) Scriptlets
(d) DriverManager Class
(e) Controller in the context of MVC
ign
architecture
(±) < jsp : param > tag
ss
UA
NO
BCS-053 5,000
IG
(A-4)
508214
m
BCS-053
co
No. of Printed Pages : 4
BACHELOR OF COMPUTER
.
uru
APPLICATIONS (BCA)
Term-End Examination
December, 2019
ntG
BC8-053 : WEB PROGRAMMING
Time : 2 Hours . Maximum Marks : 50
Weightage : 75%
me
Note : Question Ica i is compulsory and carries 20
marks. Attempt any three questions from the
rest.
ign
• Name of Person
• Gender of Person
UA
• Country
The form is to diaplaged as shown below :
NO
Name :
Gender : Female I. V
Country : I India IV
IG
SUBMIT
90 (B-9) P. T. 0.
m
[2] BCS-053
co
Please note that Default Gender is "Female"
and Default Country is "India". The form
.
also has a SUBMIT button :
uru
(i) Write the HTML code for creation of
the above form. 4
(ii) Write a JSP program that runs on
ntG
pressing of SUBMIT button and
displays the registration form
information in the format as shown
me
below : 4
The following information wase entered
Name
ign
Gender
Country •
(b) What are the advantages of XML over
ss
Programme
Ajay BCA
Mohit MCA
IG
co
2. (a) Consider the following HTML code : 4
<html>
.
<body>
uru
<p id= "test"> welcome to exam</p>
ntG
</body>
</html>
•
co
application ? Why DriverManager class is
needed ? List different signatures of get-
Connection method of DriverManager
.
uru
class. 4
(b) Compare and contrast the following : 6
(i) JSP compilation time errors and JSP
ntG
request time errors.
(ii) GET and POST methods
Blogging and. Social Networking
me
5. Explain any four of the following with the help
, of example program/diagram, if needed : 10
(a) Cookies
(b) URL rewriting
ign
BCS-058 7,000
(13-9)
m
BCS-053
.co
No. of Printed Pages : 4
BACHELOR OF COMPUTER
uru
APPLICATION (REVISED)
(BCA)
Term-End Examination
tG
June, 2020
BCS-053 : WEB PROGRAMMING
en
Time : 2 Hours Maximum Marks : 50
(Weightage 75%)
nm
Web - A 2001
IGN
Programming Tanenbaum
P. T. 0.
m
[2] BCS-053
.co
(i) Create an XML document for the data
uru
4
tG
document created in part (i) above. 2
Class
RecordSet object. 6
m
EICS-053
.co
create the following table : 4
PROGRAMME Fee
uru
MCA 9000 per semester
BCA 6000 per semester
tG
2. (a) Define the term Event in the context of
JavaScript. Write a JavaScript function
en
which changes the display of content of a
paragraph on a browser from "Demo of
nm
P. T. 0.
m
141 BCS-053
.co
10
(a) Web Services and Slogging
uru
(b) Static web pages and Dynamic web pages
elements tG
(d) JSP action elements and JSP
scripting
en
a. Explain any four
of the following with the help
nm
(0 Web 2.0
IGN
BCS-053 -3.940
No. of Printed Pages : 4 BCS-053
om
BACHELOR OF COMPUTER
APPLICATION (REVISED)
u.c
(BCA)
Term-End Examination
December, 2020
ur
BCS-053 : WEB PROGRAMMING
tG
Time : 2 Hours en Maximum Marks : 50
(Weightage : 75%)
m
Note : Question No. 1 is compulsory. Attempt any
three questions from the rest.
ign
3
(b) Draw the HTML DOM Node tree for the
UA
<body>
Lot-II P. T. O.
[2] BCS-053
om
</body>
</html>
u.c
(c) Explain the WML elements that will be
required to display the following selection
ur
list : 3
O BCS-053
tG
O BCS-054
en
O BCS-057
example/diagram. 4
om
Every author should have a first name,
last name and age field. Create records of
two such authors. Also write the DTD that
u.c
verifies the XML document of author. 5
ur
JavaScript can be used for modifying
tG
content of a paragraph. 5
JSP. 3
UA
P. T. O.
[4] BCS-053
om
student table having id, name and
programme as its attributes. Assume that
student table has 20 records and
u.c
connection with database has been duly
established, what will be the result of
ur
execution of the following statements of
JSP ? 3
tG
Statement stmt = con. createStatement ( );
en
ResultSet rs = stmt. executeQuery (Select
* from student);
m
BCS-053 4,340
No. of Printed Pages : 4 BCS-053
om
BACHELOR OF COMPUTER APPLICATIONS
(BCA) (Revised)
Term-End Examination
.c
June, 2021
ru
BCS-053 : WEB PROGRAMMING
u
Time : 2 hours Maximum Marks : 50
tG
(Weightage 75%)
10th
10th
UA
10 + 2
Graduation
NO
om
modifying style of HTML element with the
help of an example. 3
.c
with the help of a diagram. 5
ru
(e) Why does HTTP protocol need session
management ? What is ‘Session’ and ‘State’
u
in this context ? Explain with the help of an
tG
example. 3
om
element :
.c
Web Programming Tanenbaum
ru
You need not display any title. 3
u
an XML document. Write the DTD that
tG
validates the XML document created for : 4
loop. 5
om
Explain one of the important methods of this
class. 3
.c
Course (Course_ID, Name, Fee) and a
connection to this database has been
ru
established. Write and explain JSP
statements that will bring the details of
u
courses in a ResultSet object. 4
tG
en
m
ign
ss
UA
NO
IG
BCS-053 4
No. of Printed Pages : 3 BCS-053
om
BACHELOR OF COMPUTER APPLICATIONS
(BCA) (Revised)
Term-End Examination
.c
June, 2022
ru
BCS-053 : WEB PROGRAMMING
u
Time : 2 hours Maximum Marks : 50
tG
(Weightage : 75%)
Name :
Age (in years) :
IG
om
(e) Write a JSP scriptlet that displays
numbers 11 to 15 on the browser. You must
use loop for this purpose. 3
.c
(f) Assuming that connection has been duly
established with a database named student
ru
having table masterdata (enrolment,
studentname, marks) and the information
u
of a student has been put in the related
tG
form; write the code segment using JSP
that will insert the student record (entered
in the form) into the database. (You need
en
not write statements for driver loading and
connection establishment or closing the
connection) 4
m
BCS-053 2
3. (a) Write a JavaScript code that can modify a
paragraph displaying ‘‘Web Programing is
om
Good’’ to ‘‘Learn Web Programming’’. 3
(b) Explain the HTML DOM node tree, with
the help of an example. 3
.c
(c) What is the purpose of using DTD in
ru
XML ? What are the limitations of DTD ?
Give one difference between DTD and XML
u
schema. 4
tG
4. (a) Explain the MVC architecture of Web
development, with the help of a diagram.
en 5
(b) What are JSP implicit objects ? Explain the
purpose of the following implicit objects of
m
JSP, with the help of an example : 5
(i) request
ign
(ii) response
BCS-053 3 P.T.O.
No. of Printed Pages : 4 BCS-053
om
BACHELOR OF COMPUTER
u.c
APPLICATIONS (BCA) (REVISED)
Term-End Examination
ur
December, 2022
tG
BCS-53 : WEB PROGRAMMING
distance education”. 4
help of a diagram. 3
P. T. O.
[2] BCS-053
om
records with the structure : 3
u.c
• Programme which is name of the
programme of the student.
ur
(d) What is a cookie ? Why are the cookies
tG
used ? Write the code that can create a new
cookie. 4
en
(e) Write a JSP script that prints numbers
1 to 5 on a separate HTML paragraph. 4
m
om
document ? Given the following DTD : 5
u.c
<!ELEMENT Address (Location, Pincode)>
ur
<!ELEMENT Pincode (# PCDATA)>
tG
Create a document having two records,
which are valid as per the DTD given
en
above.
following table : 5
ign
DBMS XYZ
UA
objects
P. T. O.
[4] BCS-053
om
different types of errors in JSP ? Give one
example of each. 4
u.c
1
example : 22×4=10
ur
(b) PrepareStatement( ) method
tG
(c) ResultSet objecten
(d) MVC architecture
m
ign
ss
UA
NO
IG
BCS-53
No. of Printed Pages : 4 BCS-053
om
BACHELOR OF COMPUTER
APPLICATIONS (BCA) (REVISED)
u.c
Term-End Examination
June, 2023
ur
BCS-053 : WEB PROGRAMMING
Time : 2 Hours Maximum Marks : 50
tG
en (Weightage : 75%)
appropriate tags.
(ii) Create the DTD to validate the XML
document created in part (i).
IG
P. T. O.
[2] BCS-053
om
fields :
Programme (ProgrammeCode, Title, Duration)
Assuming that connection has been
u.c
established with the database and a
statement object “stmt” has been
ur
instantiated, write the code fragment to
tG
get a ResultSet object containing the list of
all those programmes, whose duration is
en
more than 1 year. 6
to green. 5
help of an example. 3
help of a diagram. 5
NO
om
the context of HTTP ? Define the terms–
session and state in this context. Explain
with the help of .JSP script, how session
u.c
object can be used to create a session. 7
ur
its use with the help of an example. 3
tG
4. (a) Explain the following technologies in the
context of Web 2.0 : 6
en
(i) Widgets
(ii) Blogging
m
(iii) Podcasting
(b) Write HTML code to create a form as
ign
shown below : 4
ss
UA
NO
IG
P. T. O.
[4] BCS-053
om
What is an external style sheet ? How is it
linked to the related HTML document ? 5
u.c
the help of an example : 3+2
ur
(ii) <anchor> element
tG
en
m
ign
ss
UA
NO
BCS-053 4,420
IG