0% found this document useful (0 votes)
17 views

Web Programming

Uploaded by

cagdvia
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

Web Programming

Uploaded by

cagdvia
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 58

No.

of Printed Pages : 2 RCS-053

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

website ? Explain with the help of an


example.
(b) What is meant by Document Object Model 5
in the context of HTML ? Write a program
sig

using Java script and HTML that changes a


paragraph showing "Wel come" to
"Welcome to the University".
(c) What are the purpose of GET and POST 5
As

methods of HTTP ? Explain the differences


between with the help of an example.
(d) What is a cookie in the context of 5
OU

HTTP / Web Programming ? Why are they


needed ? Explain with the help of an
example.
IGN

2. (a) Explain the process of inclusion of a file into 5


a JSP page ? Explain with the help of an
example. State the advantages of doing it.

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

Residence) and phone numbers. A student should


have one or more phone numbers. Perform the
following activities for the description as above :
(a) Create a XML document showing records 4
of at least two students.
sig

(b) Create the DTD that verifies the document 6


created at part (a).
As

5. Explain the following with the help of an 10


example :
(a) <details> and <summary> tags of HTMLS
OU

(b) Events in HTML


(c) Scriptlets in JSP
(d) Exception handling in JSP
IGN

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

Time : 2 hours Maximum Marks : 50

ntG (Weightage 75%)


Note : Question No. 1 is compulsory. It carries 20 marks.
Attempt any three questions from the rest.
me
1. (a) Explain the use of table, anchor and form 5
elements - password and fieldset tags of
HTML with the help of an example each.
ign

(b) Design a webpage using HTML and 5


Javascript in which the background colour
of the page changes on the click of the
button.
ss

(c) Explain with the help of a diagram the life 5


cycle of a JSP page.
(d) Write a simple HTML/JSP code that handles
UA

5
the division by zero error. Make suitable
assumptions, if any.
2.
NO

(a) Differentiate between the following : 5


(i) Client and Server Architecture
(ii) Static Webpage and Dynamic
Webpage
IG

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) Write the DTD that validates the XML 6


document created in part(a).

5. Explain the following with the help of an 10


ss

example/diagram in the context of web


programming.
(a) HTML Document Object Model (DOM)
UA

(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

Time : 2 hours Maximum Marks : 50


(Weightage 75%)

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

an HTML document ? How can you link


an external style sheet to an HTML
document ? Explain how you can change
sig

the background colour of a web page using


a style sheet. 4
(b) Create an XML document that stores the
As

name (first name and last name),


enrolment number and at least one phone
number of a student. Create such
OU

information for at least two students.


Create the DTD that validates the XML
document created by you. 5
IGN

(c) Explain the concept of Document Object


Model (DOM) with the help of an example. 3
BCS-053 1 P.T.O.
(d) What is a cookie in the context of JSP ?
Why is it needed ? Explain how a cookie

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.

2. (a) Differentiate between the following :

(i)
pages tG
Static web pages and Dynamic web
en
(ii) 2-Tier architecture and 3-Tier
architecture
nm

(b) What is an exception in the context of


JSP ? How are the exceptions handled
using JSP ? Explain with the help of an
sig

example.

3. (a) Explain the features of the following Web


As

2.0 technologies :
(i) Blogging
OU

(ii) Rich Internet Applications


(iii) Mashups
(b) Explain the Box Model of HTML with the
IGN

help of a diagram. Why is this model


needed ?

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

5. Explain the following terms with the help of a

.
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

BCS-053 : WEB PROGRAMMING

Time : 2 hours ntG Maximum Marks : 50


(Weightage 75%)

Note : Question no. 1 is compulsory. It carries 20 marks.


e
Attempt any three questions from the rest.
nm

1. (a) What is CSS ? Create a sample code to


illustrate the external stylesheet for your
sig

web page.

(b) Explain the difference between JSP


As

Scriptlets, JSP Tags and JSP Directive. 5

(c) Design an HTML form which should allow


OU

to enter your personal data. (Hint : make


use of text field, password field,
check boxes, radio and submit button) 5
IGN

(d) Why do we need XML ? Also list the


advantages of XML over HTML. 5

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

3. Assume that there is a table which contains field


names such as name, programme, course code

ntG
and grade. Write a program using JSP and JDBC
to insert records into the database. 10

4. (a) What is WML ? Create a WML program


e
which should include a table, an image, a
text paragraph and any two WML input
nm

elements. 6
(b) Write a JavaScript program to accept the
first, middle, last names of the students
and print them. 4
sig

5. Differentiate between the following : 4x2 — =10


2
As

(a) Web widget and Desktop widget


(b) SVG and Canvas tag
(c) Details and Summary tag
OU

(d) Inline stylesheet and Embedded stylesheet.


IGN

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 : WEB PROGRAMMING


Time : 2 hours
tG Maximum Marks : 50
(Weightage 75%)
en
Note : Question no. 1 is compulsory. It carries 20 marks.
nm

Attempt any three questions from the rest.

1. (a) What is AJAX ? Describe the advantages


sig

and limitations of AJAX. 5


(b) Write a JSP/Servlet program that takes
As

your name and programme code as input


and displays it on a web page. 5
OU

(c) Explain the two attributes of page directive


which are included in exception handling
in JSP page.
IGN

(d) What is WML ? How will you use Timer in


WML ? 5

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

3. (a) What is DTD ? Explain its role in XML. 5


(b) What is an external style sheet ? With the

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

(b) Write a JavaScript program that changes


the text 'web programming' to upper case
and then again to lower case. This cycle of
sig

conversion is performed after every


15 seconds.
As

5. (a) Design a JSP page to fetch the record of the


student having attributes such as Roll No,
Student Name and Programme from the
OU

table designed in SQL server.


(b) Explain the role of web container and
HTTP server in the context of web
IGN

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

1. (a) What is Web 2.0 ? How is it different from


sig

Web 1.0 ? Explain any one Web 2.0


technology in brief. 4
As

(b) What is an event ? Explain with an


example "how HTML DOM allows to
OU

assign events to HTML elements using


JavaScript".
IGN

(c) Explain MVC architecture with the help of


a diagram. 4

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

2. (a) Design a web page using HTML and

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.

3. (a) Explain the following in the context of jsp,


with an example : 4
sig

(i) include directive


(ii) taglib directive
(b) Assume that on execution of a SQL web
As

query about a student, 5 records (of the


same student) are returned in the result
set having the following fields :
OU

student id
course_code
marks_out_of 100
IGN

Write the appropriate jsp commands to


display these records and the total marks
of the student.
BCS-053 2
4. (a) Write a jsp program fragment that sets up
a session on receiving username and

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

(a) Embedded style sheets


(b) Deployment descriptor and web.xml
(c) MIL namespace
sig

(d) GET method


(e) Use of < div > tag
As
OU
IGN

BCS-053 3 8,000
No. of Printed Pages : 3 BCS-053

m
BACHELOR OF COMPUTER APPLICATIONS
(BCA) (Revised)

.co
Term-End Examination

01222 June, .2017

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.

1. (a) What is Document Object Model (DOM) in


sig

the context of HTML ? Draw the node tree


of an HTML DOM. 4
As

(b) What is WAP ? Design a WML program to


display the profile details of a mobile
OU

phone. Make the necessary assumptions


required. 4
IGN

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

(d) Explain JSP life cycle in brief.


sig

2. (a) Write a JSP scriptlet that adds the


numbers 1 to 5.
As

(b) Explain the following HTML elements :


(i) < TEXTAREA > tag
OU

(ii) < TABLE > tag


(iii) ANCHOR element
IGN

(iv) < MENU > tag

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

4. (a) What is session tracking ? Explain the use

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

5. Explain any four of the following with the help


me
of an example / diagram in the context of web
programming : 10
gn

(a) Events in HTML


(b) < jsp : useBean >
ssi

(c) < sql : query >


(d) Social Networking
A

(e) XML Schemas


OU
IGN

BCS-053 3 3,500
No. of Printed Pages : 3 I BCS 053 I
-

BACHELOR OF COMPUTER APPLICATIONS

m
(BCA) (Revised)

.co
Term-End Examination

0:3110 December, 2017

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

1. (a) List and explain any five elements used in


HTML forms, with the help of an example
sig

for each. 5
(b) Explain with the help of an example how
As

JavaScript can be used to change the text


displayed on an HTML page.
(c) Discuss the steps involved in connecting to
OU

a database using JDBC. 5


(d)List the techniques for session tracking.
IGN

Explain any one of them. 5


BCS-053 1 P.T.O.
2. (a) Explain the life cycle of JSP with the help
of a diagram. 5
(b) Compare and contrast :

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

elements of WML with the help of an


example each. 5
sig

4. A movie catalogue consists of movie details. The


details will have movie name, director name,
production year and production house.
As

(a) Write an XML document with at least two


records for the requirements as above
OU

(with suitable assumptions). 4

(b) Write the DTD that validates the XML


document created for the above assumptions. 6
IGN

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

(c) Uses of <div> tag

uru
(d) Page Directive of JSP

(e) POST Method of HTTP

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

Time : 2 hours ntG Maximum Marks : 50


(Weightage 75%)
Note : Question no. 1 is compulsory. Attempt any three
me
questions from the rest.

1. , (a) Discuss the advantages of Web 2.0 over its


gn

previous version. Explain with the help of


examples. 5
si

(b) How does WML work ? Explain with the


help of a diagram. 5
As

(c) Explain MVC Architecture with the help of


a diagram.
OU

(d) What is a session in JSP ? Why is session


management needed ? Explain how cookies
IGN

can be used for session management.

BCS-053 1 P.T.O.
2. (a) What are the scripting elements of JSP ?
4

m
Explain with the help of an example.

(b) Assume that a website database has the

.co
following fields :
Item Number, Item Name, Item Code.
Write JSP code/program to display the list

uru
of items. 6

3. (a) Explain the use of class selector and Id


ntG
selector in CSS and HTML with the help of
an example for each. 5
(b) What is WAP ? Design a WML program
me
code segment, which takes student
attributes Student_ID, Student_Name and
Programme as input. 5
gn

4. A movie catalog consists of movie details :


si

The details will have Movie name, Director


name, Production year and production house.
As

(a) Write an XML document with at least two


records for the requirements as above (with
OU

suitable assumptions). 4
(b) Write the DTD that validates the XML
IGN

document created for the above


assumptions. 6
BCS-053
5. Explain any four of the following with the help of

m
an exaMple/diagram : 10

(a) <details> and <summary> tags cif HTML5

.co
(b) Session Object

(c) Need of JSP

uru
(d) GET Method of HTTP

(e) include Directive in JSP


ntG
me
si gn
As
OU
IGN

BCS=053 3 5,000
No. of Printed Pages : 4 BCS 053

m
-

BACHELOR OF COMPUTER APPLICATIONS

.co
(BCA) (Revised)
CDT E:$41- Term-End Examination

uru
December, 2018

-
e ntG
BCS 053 : WEB PROGRAMMING

Time : 2 hours Maximum Marks : 50


nm

(Weightage : 75%)

Note : Question no. 1 is compulsory and carries 20


marks. Attempt any three questions from the rest.
sig

What are the uses of Cascading Style


As

1. (a)
Sheets (CSS) in the context of Web
Programming 9 How can a style sheet be
OU

used with HTML document ? Also explain


the concept of Class selector and ID
IGN

selector in the context of CSS. 4

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

ISBN 2016-12345 2015-14897

First Author
ntG
Ravi Sethi A. Tanenbaum

(c) What is the need of HTML DOM ?


e
Consider the following HTML document :
nm

<html>
<head> Test </head>
<body>
<p id = "Welcome"> Welcome to
sig

Examination </p>
As

</body>
</html>
OU

Write JavaScript code in this HTML


document that replaces the "Welcome to
Examination" to "Welcome to JavaScript"
IGN

when this HTML document is displayed in


web browser. Make suitable assumptions,
if any.
BCS-053 2
(d) What is a cookie ? Why is it needed ? Write

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

(b) What is meant by 'Event Capturing' ?


Explain with the help of an example. 3

(c) Explain the use of AJAX. 2


As

3. (a) What is WAP ? Why is it needed ? 3


OU

(b) Explain the uses of the following WAP


elements : 4
(i) <pre>
IGN

<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

5. Explain any four of the following with the help of


an example or a diagram, if needed : 4x2 1 =10
2
sig

(a) DriverManager class in JSP


(b) Loading a JDBC database driver
(c) Processing the result obtained from
As

database access, while using JSP


(d) Session Management
OU

(e) Include Directive


(f) Exception handling using JSP
IGN

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.

1. (a) Consider the following HTML fmn:t


ign
ss
UA
NO

Explain the FORM elements that will be


required to make the form as above. 4
IG

(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

connection has already been created, write


JSP code that accesses data from the
database for the enrolment number "1701"
ss

and displays this data. Make suitable


assumptions, if any. 4
UA

(e) What is the puipose of action elements in


JSP ? Explain the uses of < jsp : include >
NO

with the help of an example. Also


differentiate between static and dynamic
include in JSP. 4
IG

(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

(b) Explain the method getElementBy Id( ) in


JavaScript with the help of an example. 3
ss

(c) Define the following terms :


(i) WML Tasks
UA

XML Schemas
WAP Protocol Stack
NO

(iv) HTML DOM

4. (a) Explain how a JSP page is processed with


the help of a diagram. 4
IG

(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

1. (a) A registration form requires input of the


following information :
,
ss

• 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

HTML ? Explain the structure of XML


document with the help of an example. 4
UA

(c) Write the WML code that will create the


following table : 4
Name
NO

Programme
Ajay BCA
Mohit MCA
IG

(d) What are the uses of JSP ? Explain the


advantages of using JSP over servlet. 4
m
I3/ Bd-053

co
2. (a) Consider the following HTML code : 4
<html>

.
<body>

uru
<p id= "test"> welcome to exam</p>

0 {Add your JavaScript code and tags


here)

ntG
</body>
</html>

Write the JavaScript code along with


me
suitable tags at @ which changes the
content "Welcome to Exam" to "Welcome to
Web Programming" when it is executed. In
ign

addition the text colour should be changed


to Green colour.
(b) What is meant by a "Safe" method ? List
ss

two methods which are "safe". 3


(c) What are the advantages of data
UA

streaming ? Explain with the help of a


suitable example. 3
3. (a) Write a JSP scriptlet that finds the
NO

factorial of number 5 and displays it. 5


(b) What are the advantages of using CSS ?
Create an embedded style sheet that
IG

makes the text colour of every paragraph


as red and background colour green. It also
changes the font size to 16 px. 5
m
[4] BCS-053

4. (a) What is the role of JDBC in a web

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

(c) Displaying the data obtained in a


ResultSet object on execution of an SQL
query
ss

(d) DTD in the context of XML


UA

(e) Handling of onclick event


(f) Box model of IITML
NO
IG

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

Note : Question No. I is compulsory and carries


20 marks. Attempt any three questions from
the rest.
sig

1. (a) Following books information is to be


represented by using XML :
As

Title of.the Name of Years of


OU

book authors) publication

Your Story R. Rohan • 2015

Web - A 2001
IGN

Programming Tanenbaum

P. T. 0.
m
[2] BCS-053

.co
(i) Create an XML document for the data

above. You must use appropriate tags.

uru
4

(ii) Create a DTD to validate XML

tG
document created in part (i) above. 2

(b) A database contains two fields of a student :


en
Name
nm

Class

Assuming that a connection has been


sig

created and statement object "stmt" his

been instantiated, write the code fragment


As

to get a ResuitSet containing the list of all

the students and display the date of


OU

RecordSet object. 6

(c) What is the purpose of directives in JSP ?


IGN

Explain the uses of include file directive of

JSP with the help of an example. 4


131

m
EICS-053

(d) Write the HTML code segment that will

.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

Event" to "Event handled." You must


create a button which when clicked
executes the stated function. 5
sig

(b) Explain the life-cycle of a JSP page with


the help of a diagram,
5
As

3• (a) Why is -session management needed for


HTTP protocol ? Explain, how cookies can
OU

be used for session management. 5


(b) Explain the role of CSS in an HTML file
IGN

display. Explain the uses of class selector


and id selector with the help of an example
each.
5

P. T. 0.
m
141 BCS-053

4° Compare and contrast between the following :

.co
10
(a) Web Services and Slogging

uru
(b) Static web pages and Dynamic web pages

(c) 2 Tier client server architecture and N Tier


architecture

elements tG
(d) JSP action elements and JSP
scripting
en
a. Explain any four
of the following with the help
nm

of an example/diagram in the context of Web


Programming :
10
(a) JDBC-ODBC Bridge
sig

(b) URL Rewriting

(c) JSP Request time error


As

(d) WML <select> element

(e) )(AIL schema


OU

(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

1. (a) What is the purpose of a class selector in


CSS ? Explain with the help of an example.
ss

3
(b) Draw the HTML DOM Node tree for the
UA

following HTML fragment : 4


<html>
<head>
NO

<title> Term-end Exam </title>


</head>
IG

<body>

Lot-II P. T. O.
[2] BCS-053

<h3> subject code </h3>


<p> BCS-053</p>

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

(d) Write JSP scripting code that will display


m

current date and time. 4


ign

(e) Explain the MVC architecture with the


help of a diagram. 6
ss

2. (a) What is Web 2.0 ? How is it different from


Web 1.0 ? 3
UA

(b) What is Cascading Style Sheets ? Explain


the format of CSS rules with the help of an
NO

example/diagram. 4

(c) Explain the use of <div> and <span> tags


IG

with the help of an example. 3


[3] BCS-053

3. (a) Create an XML document named Author.

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

(b) Explain with the help of an example, how

ur
JavaScript can be used for modifying

tG
content of a paragraph. 5

4. (a) What are dynamic web pages ? Explain


en
how JavaScript can be used to create
dynamic web pages. 4
m

(b) What the use of “POST” method of HTTP ?


ign

Explain with the help of an example. 3

(c) Explain the two types of include used in


ss

JSP. 3
UA

5. (a) Explain the JSP compilation time error


with the help of an example. 3
NO

(b) What is a cookie ? Why are they used ?


How can you create a new cookie in JSP ?
IG

Explain with the help of an example. 4

P. T. O.
[4] BCS-053

(c) Consider that a database contains a

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

(Please note : con is the name of connection


object).
ign
ss
UA
NO
IG

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%)

Note : Question no. 1 is compulsory. Attempt any three


en
questions from the rest.
m
1. (a) What is the purpose of < SELECT > element
in HTML ? Explain how you will display the
ign

following list in HTML : 5

Select Highest Qualification


ss

10th 

10th
UA

10 + 2
Graduation
NO

(b) What is more useful — Inline styles or


Embedded style sheet ? Give reason in
IG

support of your answer. 2


BCS-053 1 P.T.O.
(c) Explain the how JavaScript can be used for

om
modifying style of HTML element with the
help of an example. 3

(d) Explain the steps of JSP page processing

.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

(f) A variable ‘i’ is of integer type and name is


en
an object of class string. Write the JSP code
fragment that will declare ‘i’ and ‘name’
m
variables. 2
ign

2. (a) What is a Blog ? What does it contain ?


What is a Microblog ? 3
ss

(b) What is the need of id selector in CSS ?


Explain with the help of an example. 3
UA

(c) Write the HTML code that displays a


paragraph ‘‘Welcome to Exam hall’’. Write a
NO

JavaScript code that changes this para to


‘‘Welcome to IGNOU’’ when the display of
‘‘Welcome to Exam hall’’ is clicked. You
IG

should use event handling for the same. 4


BCS-053 2
3. (a) Create the following table using WML table

om
element :

Book Title Author Name

Computers Now Desai

.c
Web Programming Tanenbaum

ru
You need not display any title. 3

(b) Represent the following information using

u
an XML document. Write the DTD that

tG
validates the XML document created for : 4

St_ID Name Programme


en
Bachelor of Computer
1001 Ravi
Applications
m

1002 Ullman V PhD


ign

(c) What is WAP ? Why is WAP needed ? 3

4. (a) Explain the three layer architecture of Web


ss

applications with the help of a diagram. 5


UA

(b) Write the scriptlet using JSP that prints a


sequence of numbers from 1 to 5. Also find
the sum of the sequence you must use for
NO

loop. 5

5. (a) What is JSP Request Time Error ? How can


IG

these errors be handled ? 3


BCS-053 3 P.T.O.
(b) What is the role of DriverManager class ?

om
Explain one of the important methods of this
class. 3

(c) Assume that a database contains a table

.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%)

Note : Question no. 1 is compulsory and carries


en
20 marks. Attempt any three questions from the
rest.
m

1. (a) What are the features of Web 2·0 ?


ign

What technologies are used for developing


Web 2·0 applications ? 3
(b) What is a well-formed XML document ?
ss

Explain with the help of an example XML


document. 4
UA

(c) The following information is to be input in


a WAP application :
NO

Name :
Age (in years) :
IG

Write the WML code for creating the above


screen. 3
BCS-053 1 P.T.O.
(d) List three characteristics that should be
supported by server side scripting tools. 3

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

2. (a) Explain the use of <div> and <span> tags,


ign

with the help of an example. 3


(b) What is the need of class selector in CSS ?
Explain with the help of an example. How
ss

is an id selector different from a class


selector ? 4
UA

(c) Which tag will be used for the following


tasks ? Give one example of the use of that
tags : 3
NO

(i) To input a large text in multiple


lines.
(ii) To define a footer in the web page.
IG

(iii) To input a password.

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

5. (a) Differentiate between Session objects and


Cookies. 3
ss

(b) Explain the purpose of session


management, with the help of an example. 2
UA

(c) Which type of error is reported to browser


as HTTP Status 500 ? Explain why such
NO

error can occur. 2


(d) What is the need of JDBC ? Why can
ODBC not be used in Java programs ? 3
IG

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

Time : 2 Hours Maximum Marks : 50


en
(Weightage : 75%)
m

Note : Question No. 1 is compulsory and carries


20 marks. Attempt any three questions from
ign

question no. 2 to question no. 5.


ss

1. (a) Write a JavaScript and related HTML code


which changes the content of a paragraph
UA

having an id “IGNOU” from “BCA


Examination” to the text “The out of
NO

distance education”. 4

(b) Explain the box model of HTML with the


IG

help of a diagram. 3

P. T. O.
[2] BCS-053

(c) Create an XML document having two

om
records with the structure : 3

• Name which have first name and last


name of a student.

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

(f) List the advantages of JSP over Servlet. 2


ign

2. (a) Explain the features of Web 2.0. Explain


any three technologies of Web 2.0. 5
ss

(b) What is CSS ? Explain how CSS can be


used for the following : 5
UA

(i) Change the background colour of a


page to red.
NO

(ii) Change the font size of a paragraph to


17 points.
IG

(iii) Changes colour of a paragraph.


[3] BCS-053

3. (a) What is a DTD in the context of an XML

om
document ? Given the following DTD : 5

<!ELEMENT University (Name, Address)>

<!ELEMENT Name (# PCDATA)>

u.c
<!ELEMENT Address (Location, Pincode)>

<!ELEMENT Location (# PCDATA)>

ur
<!ELEMENT Pincode (# PCDATA)>

tG
Create a document having two records,
which are valid as per the DTD given
en
above.

(b) Write the code in WML that creates the


m

following table : 5
ign

Course Name Teacher

Web Programming ABC


ss

DBMS XYZ
UA

4. (a) Differentiate between the following : 6

(i) GET and POST methods


NO

(ii) HTTP server and Web container

(iii) Action elements and JSP implicit


IG

objects

P. T. O.
[4] BCS-053

(b) What is an exception ? What are the

om
different types of errors in JSP ? Give one
example of each. 4

5. Explain the following with the help of an

u.c
1
example : 22×4=10

(a) DriverManager class

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%)

Note : Question No. 1 is compulsory and carries


20 marks. Attempt any three questions from
question no. 2 to question no. 5.
m

1. (a) Consider the following information : 3+3


ign

Student Name Programme


First name Last Name Code
ss

Ravi Kumar BCA


Ananth Malik MCA
UA

(i) Create an XML document for the data


given in the table above. Use
NO

appropriate tags.
(ii) Create the DTD to validate the XML
document created in part (i).
IG

P. T. O.
[2] BCS-053

(b) A database table consists of the following

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

(c) Write a JavaScript script that changes the


m

colour of paragraph, whose id is “IGNOU”,


ign

to green. 5

(d) Explain the GET method of HTTP with the


ss

help of an example. 3

2. (a) Explain the MVC architecture with the


UA

help of a diagram. 5
NO

(b) What are implicit objects in the context of


JSP ? Explain any two implicit objects of
JSP. 5
IG
[3] BCS-053

3. (a) What is the need of session management in

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

(b) What is include directive in JSP ? Explain

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

5. (a) What are the advantages of using CSS ?

om
What is an external style sheet ? How is it
linked to the related HTML document ? 5

(b) Explain the following WML elements with

u.c
the help of an example : 3+2

(i) WML Tables

ur
(ii) <anchor> element

tG
en
m
ign
ss
UA
NO

BCS-053 4,420
IG

You might also like