Vous êtes sur la page 1sur 46

No.

of Printed Pages : 3 MCS-051

MCA (Revised)
Term-End Examination
O
December, 2011

MCS-051 : ADVANCED INTERNET


TECHNOLOGIES

Time : 3 hours Maximum Marks : 100

Note : Question number 1 is compulsory. Attempt any three


questions from the rest.

1. (a) What are the advantages of using Java's 10


multiple layer security implementation.
(b) Explain the different phases of servlet 8
lifecycle in brief.
(c) What is an XML parser ? Differentiate 6
between validating and non-validating
parser.
(d) Assume that there is table named Employee 10
in MS-access with fields (EMP_ID,
EMP_NAME, EMP_DOB, EMP_MOBILE,
EMP_ADDRESS, EMP_SALARY). Write a
code in Java (using JDBC) which will
retrieve and display the employees with
maximum and minimum salary in the
tabular format.

MCS-051 1 P.T.O.

(e) What criteria should a developer keep in 6


mind while choosing between a session bean
and entity bean ?

2. (a) Write a message Driven Bean that accepts 10


resumes of candidates from a website that
gives data in an XML format with the
following structure.
Name
Qualifications
Age
Rest-of-resume
The program should ignore resumes of
candidates whose age does not fall between
user specified values and the remaining
resumes should be written to a database.

(b) Explain the difference between : 10
(i) External Entity and Internal XML
entities with example.
(ii) Java Bean and Enterprise Java bean.

3. (a) Explain various scripting elements used in 10


JSP with example.
(b) Explain the following concepts of Java Bean 10
in brief
(i) Low level Introspection
(ii) High level Introspection

MCS-051 2
4. (a) Where do we use Session Bean ? 10
Differentiate between stateless session bean
and stateful session bean ?
(b) What is SSL Authentication ? Explain the 10
role of Digital Certificate and Digital
Signature in SSL authentication.

5. (a) What are the different types of restrictions 8


on EJB ?
(b) There is a student database with fields 12
name, address, roll number, subject and
grade. Write a JSP program to insert records
into this database, to retrieve existing
records based on the roll number and to
delete an existing record given the roll
number.

MCS-051 3
No. of Printed Pages : 3 MCS-051

MCA (Revised)
V) Term-End Examination
December, 2012

MCS-051 : ADVANCED INTERNET


TECHNOLOGIES

Time : 3 hours Maximum Marks : 100

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


questions from the rest.

1. (a) Explain the three principal stages in the life 6


of a Java Servlet through a program that
causes the servlet to print "Here I am!" when
invoked.
(b) Write a servlet program to print a Welcome 6
Message every time an old user visits the
page.
(c) What is the difference between JDBC and 4
ODBC?
(d) Name the various implicit object used with 3
JSP?
(e) Describe briefly any three services offered 6
by EJB.
(f) Explain two interfaces associated with EJB 4
class files.

MCS-051 1 P.T.O.
(g) What is a message-driven bean ? How do 11
you implement it ? Write a program to
illustrate flag an employee as "resigned"
whenever the appropriate message is
received.

2. (a) Write an example program to show how 5


two servlets can share information using
the system property list.

(b) A database contains an employee table 15


named EMPLOYEE with at least two fields:
NAME, PHONE-NO and ADDRESS. Write
a servlet program to connect to the database
and a query that retrieves the names and
phone nos. of every employee and display
the list to the user.

3. (a) (i) Describe the JSP syntax and XML 2


syntax used for scripting elements in
JSP.

(ii) What is a scriptlet?

(iii) Write a scriptlet in a JSP page to print 8


the current data.

(b) How do you integrate servlet and JSP ? 10


Explain with example.

MCS-051 2
4 (a) Explain with a block diagram the 10
architecture of an EJB/ client system. What
are its advantages.
(b) How do you deploy JAR file on JBOSS 10
server? Explain the steps involved with
example.

5. (a) Explain the contents of a digital certificate. 10


How does it help in proving security?
(b) How do you execute. FORM based 10
authentication? Explain with a sample
program.

MCS-051 3
No. of Printed Pages : 3 MCS-051

MCA (Revised)

-71 Term-End Examination


C, December, 2013
co
O
MCS-051 : ADVANCED INTERNET
TECHNOLOGIES

Time : 3 hours Maximum Marks : 100


Note : Question No. 1 is compulsory. Attempt any three
questions from the rest.

1. (a) Explain the importance of deployment 5


descriptor in Servlet.
(b) Create a custom JSP tag that accepts a name 10
(first name and surname) and converts that
into the title case. The conversion should
take care of special names such as MC
Donald.
INPUT - Indian me Donald
OUTPUT - INDIAN MC DONALD
(c) Explain the benefits offered by EJB 10
component architecture to application
developers and customers, in brief.
(d) Write a program using Servlet and JDBC for 10
developing an on-line submission of an
examination form. You are required to
create a database comprising of the
following fields :
(i) Student Name
(ii) enrollment No.
(iii) Course Code (s)
(iv) Regional Centre Code

MCS-051 1 P.T.O.
(e) Why do we need XML ? Also list advantages 5
of XML Over HTML.

2. (a) Write a Servlet program that takes your 10


name and address from an HTML form and
displays it.
(b) Explain different types of JDBC drivers and 10
discuss their advantages and disadvantages
in brief.

3. (a) Differentiate between the following : 10


(i) GET vs POST
(ii) JSP vs Servlets
(iii) Servlet Context vs Servlet Config
(iv) Session vs Cookie
(v) Data integrity Vs Session integrity
(b) Create a HTML Reader JSP tag that read 10
the HTML page from a link and will display
the content on the JSP. Donot use 'include'
directive.
4. (a) Assume that there is a table named part in 10
MS - Access with fields (Part - id, Part - name,
Part - under, Part - description). Write a code
for servlet which will display all the fields
of Part Table in tabular manner.
(b) Briefly describes the two important 10
interfaces included in the servlet API Http
Servlet Request and Http Servlet Response
along with servlet life cycle.
5. (a) Explain the life cycle of a stateless session- 10
bean and stateful session bean with
diagram. Also discuss where we use which
type of bean.

MCS-051 2
(b) Write an XML DTD to represent the grade 5
card of an employee which contains.
(i) Name - last, middle and first
(ii) Department - Five departments
(iii) Salary
(iv) Designation
(v) Married (yes/no)
(c) Compare and contrast Computer Security 5
and Network Security.

MCS-051 3
No. of Printed Pages : 2 MCS-051
MCA (Revised)
Term-End Examination
December, 2014

MCS-051 : ADVANCED INTERNET TECHNOLOGIES


Time : 3 hours Maximum Marks : 100

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


questions from the rest.

1. (a) How do we call the servlets with


parameters in URL ? If your parameter and
value are "name = Amit", write the code
fragment to perform some action for names
other than Amit. 7
(b) Discuss the different categories of session
beans. 6
(c) What are the advantages of XML over
HTML ? Why is SGML not used over the
web ? 6
(d) Explain the different development goals of
XML document. 6
(e) What is a message-driven bean ? Why are
the transactional attributes of these beans
important during deployment ? 5
(f) How do we recover from a trusted system
failure ? Write down the points that need
to be taken care of during the recovery. 5
MCS-051 1 P.T.O.
(g) Write a program fragment to implement an
access control list to be able to read a
payroll file. 5

2. (a) How can servlets collaborate using


properties ? Demonstrate with a code
fragment that sets a parameter that is
later used by another servlet. 10

(b) Write a servlet to use a user-id and


password stored in a database to
authenticate a user. 10

3. (a) What is JNDI authentication ? Explain


with suitable example. 10
(b) Write down the benefits of EJB
architecture for the developers and users. 10

4. Describe all the 4 types of JDBC drivers with the


advantages and disadvantages of each. 20

5. (a) Write an HTML script with an embedded


scriptlet to print the current time. 10

(b) Discuss the JSSE set of packages that


support and implement the SSL. 10

MCS-051 2 10,000
No. of Printed Pages : 3 MCS-051

N MCA (Revised)
0
t-,- Term-End Examination
O•
0 June, 2011

MCS-051 : ADVANCED INTERNET


TECHNOLOGIES

Time : 3 hours Maximum Marks : 100

Note : Question number 1 is compulsory. Attempt any three


questions from the rest.

1. (a) List the packages required for using 8


JDBC 3.0 API in an application. Explain
the four types of drivers available with JDBC
and their use.
(b) Explain the underlying software 8
architecture of EJB.
(c) There is a data base consisting of student 10
academic records having name (last, middle,
first), roll no, address (3 lines, city, PIN),
subject and grade. Write down the DTD
for this and write an application fragment
to create an XML document from the
student database.

MCS-051 1 P.T.O.
(d) What are the different ways in which a 6
client can authenticate a user to a web
server ? Explain how HTTPS client
authentication works.
(e) Write code for entering data from web based 8
form for a social networking site. User can
register with the site using his email id or
unique user name. On successful
registration, user should be logged in and
land on welcome page. You are required to
make your assumption for the data fields
and to use JSP, Servlets and JDBC.

2. (a) Discuss the layered architecture of EJB and 10


its components briefly.
(b) What is DTD ? What is the role of DTD in 10
XML ? Explain different components of
DTD.

3. (a) Differentiate between Session beans and 10


Entity beans in terms of object sharing,
object state, transactions, container failure
and object recovery.
(b) Assume that there is student table named 10
as student in MS - Access database with the
following fields : STD_ID, NAME,
COURSE, EMAIL, MOBILE AND DOB.
Write a Java program to insert and then
display the records of the table using JDBC.

MCS-051 2
4. (a) Explain the following JSP objects and their 10
use in web programming :
(i) Config object
(ii) Page object
(iii) Application object
(iv) Session object
(v) Exception object
(b) What is JNDI authentication ? Explain with 10
the help of suitable example.

Compare and contrast SGML, HTML and 10


XML.
What is role of Home interface and remote 10
interface in EJB ? Explain with the help of
an example.

MCS-051 3
No. of Printed Pages : 3 MCS-051

MCA (Revised)
O
Term-End Examination

O June, 2012

MCS-051 : ADVANCED INTERNET


TECHNOLOGIES

Time : 3 hours Maximum Marks : 100

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


questions from the rest.

1. (a) Explain how cookies can be used for 5


session tracking in servlets.
(b) Explain the types of JDBC drivers ; tabulating 4
the advantages of each.
(c) What are the major goals of the MB 6
specifications ?
(d) What is the difference between session 6
beans and entity beans ? Give examples of
where each would be used.
(e) What is the difference between SGML and 4
XML ? Why is SGML not used much, on
the web ?
(f) What is SSL ? Describe briefly the two way 4
SSL authentication mechanism.

MCS-051 1 P.T.O.
(g) Suppose there is a table named as student 11
in MS-Access with fields : std_id, name,
course, ph_no. Write a Java program to
insert and display the records of this table
using JDBC.

2. (a) Explain how two servlets can communicate 10


through a shared object. How can you
ensure that the garbage collection
mechanism does not derail this approach ?
(b) How do you use JDBC to query and modify 10
a database ? Explain with example
programs.

3. (a) What is a custom tag in JSP ? What are the 10


components that make up a tag library in
JSP ?
(b) Describe with suitable program fragments 10
how you can include files and applets in a
JSP page.

4. (a) Explain the life cycle of stateless and statefal 10


session bean.
(b) (i) List the restrictions on what EJBs can 5
do ?
(ii) Distinguish between Bean Managed 5
and Container Managed persistence
for Entity Beans.

MCS-051 2
5. (a) Explain SSL authentication with encryption 10
and handshake.
(b) How do you use JNDI authentication to 10
authenticate clients ? Explain with
example program.

MCS-051 3
No. of Printed Pages : 2 MCS-051
MCA (Revised)
oc
Term-End Examination
June, 2014
O
MCS-051 : ADVANCED INTERNET
TECHNOLOGIES
Time : 3 hours Maximum Marks : 100
Note : Question No. 1 is compulsory. Attempt any three
questions from the rest.

1. (a) What is SSL ? Describe briefly the two way 5


SSL authentication mechanism.
(b) Describe the life cycle of a Java servlet 5
explaining the events that happen at each
stage.
(c) Can an EJB send a synchronous notifications 5
to its clients ? How ?
(d) Discuss the life cycle of a Message Driven 7
Bean.
(e) Outline the life cycle differences between 6
the session and entity bean objects.
(f) There is a file "logo. jpg" in your computer 6
in /user/etc. How will you include this in
an XML document as an external entity ?
(g) (i) If data is altered during transit, what 6
aspect of security has been
breached ?
(ii) A is not allowed to view other people's
salary. If he is able to do so, what
aspect of security is compromised ?

MCS-051 1 P.T.O.
(iii) What security problem arises if a
server is loaded so much that it does
not respond to requests ?

2. (a) What is EJB ? Discuss the architecture of 10


EJB.
(b) Discuss the different interfaces associated 5
with the EJB class files.
(c) List the restrictions on what the EJB's can 5
do.

3. (a) What is a message driven bean ? What are 10


its transactional capabilities ? When do we
use it ?
(b) Illustrate the following with suitable 10
examples for the XML document.
(i) XML Prolog
(ii) Processing Instructions

4. A student academic record database "STUDENT" 20


has roll numbers, subject and marks stored in a
table "RESULT". Write a Java Program to
connect to this database and point out a merit list
of students based on the total marks across all
subjects.

5. (a) Discuss the HTTP Basic authentication with 10


suitable example program.
(b) Discuss the java.security.acl class with 10
suitable example program.

FMCS-051 2
No. of Printed Pages : 3 I MCS-051
MCA (Revised)
Term-End Examination
CI I. C3m41: December, 2018

MCS-051 : ADVANCED INTERNET TECHNOLOGIES

Time : 3 hours Maximum Marks : 100

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


questions from the rest.

1. (a) Explain the following basic elements of


JSP, with the help of an example : 6
(i) Scriptlets
(ii) Expressions
(iii) Directives
(b) Create a database of students who are
pursuing their studies in a university, at
graduation or at post-graduation level.
Write a program using JSP and JDBC to
display details of student(s). including
name, department of study, programme of
study and semester of study. 10
MCS-051 1 P.T.O.
(c) Explain the concept of Servlet Chaining.
Explain the role of Request Dispatcher in
servlet chaining. 4

(d) Write a servlet program which takes your


name, age and address from an HTML
form and displays it. 10

(e) What is a session bean ? Explain the life


cycle of stateless session bean and stateful
session bean with the help of suitable
diagrams. 10

2. (a) Explain the advantages of XML over


HTML and SGML. 5

(b) What is an XML parser ? What are the two


types ? Briefly explain. 5

(c) Explain the relation of applets and servlets


to JSP. 10

3. Differentiate between the following : 20

(a) Session bean and Entity bean

(b) Authentication and Authorization

(c) Static web page and Dynamic web page

(d) Servlet context and Servlet config

MCS-051 2
4. (a) (i) Write the XML declaration to specify
that "kph" should be replaced by
"Kilometers per hour" in the
document. 3
(ii) How can one give effect to this
expansion in the document ? 2

(iii) How will you produce the following


characters in an XML document ? 5

(b) Explain with the help of an example how


two-way SSL authentication is used in a
Java client. 10

5. (a) Explain the different types of JDBC drivers


and briefly list their advantages and
disadvantages. 10

(b) Briefly explain the different procedures of


system recovery. 4

(c) Explain any three advantages of


EJB architecture. 6

MCS-051 3 6,500
No. of Printed Pages : 2 MCS-051

MCA (Revised)
Term-End Examination
(NI
■.0 June, 2013

MCS-051 : ADVANCED INTERNET


TECHNOLOGIES

Time : 3 hours Maximum Marks : 100

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


questions from the rest.

1. (a) How does Session Bean differ from the Entity 5


Bean in terms of object sharing, object state
and failure recovery ?
(b) Using servlet, JSP, JDBC and XML create a 10
web application for a courier company to
provide online help in tracking the delivery
status of items.
(c) Write code to use a form to authenticate a 10
client using the session information stored
in the HTTP session object in the web server.
(d) Create a database of students enrolled at one 10
of the study center of IGNOU and then
write a program using JSP and JDBC to
display their names, addresses and the
names of the courses in which they are
enrolled .

MCS-051 1 P.T.O.
(e) Explain different types of system 5
vulnerabilities.

2. (a) What are the advantages of using Java's 10


multiple layer security implementation ?
(b) Draw the layered architecture of EJB and 10
explain its components briefly.

3. (a) Explain the different types of restrictions on 5


EJB.
(b) What are the advantages of XML over 5
HTML ?
(c) Explain the life cycle of servlet. Write a code 10
for demo servlet to explain all the three
stages of servlet life cycle.

4. (a) What are the custom tags in JSP ? Explain 10


their features. What are the three
components that make up a tag in library ?
Explain with the help of an example.
(b) What is message driven bean ? Explain 10
different circumstances under which
message driven bean can be used.

5. (a) Draw a diagram to show security objects 10


dependencies and explain each security
object with the help of examples.
(b) What is DTD ? Why do we use it with XML 10
documents ? Explain the different
components of DTD with example.

MCS-051 2
No. of Printed Pages : 3 MCS-051

MCA (Revised)
Term-End Examination
June, 2018
F1447 t---;

MCS-051 : ADVANCED INTERNET TECHNOLOGIES

Time : 3 hours Maximum Marks : 100

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


questions from the rest.

1. (a) Write a servlet pseudocode that tracks the


assignments of a student at IGNOU.. The
fields of the entities are
Student Assignment Subject Result
Roll Number Subject code Subject code Student roll no
Name Assignment Subject Subject code
code name
Date of Assignment
receipt code
Date of Marks
submission obtained
Last date of
submission
Maximum
marks
MCS-051 1 P.T.O.
Generate a report that gives
Student name
Roll no
Subject
Assignments submitted on time
Marks obtained out of
Total
All the data in tables is in an RDBMS. Late
submissions result in 0. You need to
mention the different actions that a servlet
takes, for that assignment real executable
code is not expected. 15
(b) Explain briefly, the different types of
system vulnerabilities. 5
(c) Write the XML DTD for the entities in
question 1(a) above. Make and state any
needed assumptions.
(d) Explain two mechanisms that would allow
inclusion of external pieces into a JSP
document.
(e) What is SSL ? Describe briefly, the
two-way SSL authentication mechanism. 5

2. (a) What is JNDI authentication ? Explain


with the help of an example. 10

(b) Draw the layered architecture of EJB and


explain its components briefly. 10
MCS-051 2
. (a) Explain the different types of JDBC
drivers. Also list their advantages and
disadvantages. 10

(b) Briefly explain the different types of


restrictions on EJB. 5

(c) What is session tracking ? Explain any one


mechanism of session tracking briefly. 5

4. (a) Explain the five basic scripting elements


used in JSP. 10

(b) Explain how an applet is included in a JSP


program with the help of small code. 5

(c) What is Message-Driven Bean ? List any


four uses of message-driven bean.

5. (a) Describe the following in XML with


relevant examples : 10
(i) External Entity
(ii) Internal Entity
(iii) Parameter Entity
(b) What is Java Bean ? Briefly explain the
four categories of bean property. 10

MCS-051 3 6,000
/
C3 -A 3 4 4

No. of Printed Pages : 3 MCS-051 I


MCA (Revised)
Term-End Examination
December, 2015
MCS-051 : ADVANCED INTERNET TECHNOLOGIES
Time : 3 hours Maximum Marks : 100
Note : Question no. 1 is compulsory. Attempt any three
questions from the rest.

1. (a) Explain the differences between JDBC and


ODBC. 5
(b) Write a servlet code to fetch and display all
the fields of PRODUCT table with
attributes — product id, product name,
product qty, product price, model and
description. 10
(c) Explain the benefits offered by EJB
component architecture to Application
developers and customers, in brief. 10
(d) (i) Name any five JSP implicit objects
and mention,the class they belong to. 5
(ii) Write a JSP code fragment to insert
the following fields into a database
after extracting them from an HTML
form : 5
last name
phone
e-mail
(e) Differentiate between SGML and XML. 5
MCS-051 1 P.T.O.
2. (a) What are the advantages of using Java's
multiple layer security implementation ? 10

(b) Explain the different types of JDBC drivers


along with their advantages and
disadvantages. 10

3. (a) Differentiate between the following : 5x3=15

(i) Get vs Post


(ii) Generic Servlet vs http Servlets

(iii) Servlet Context vs Servlet Config

(iv) Stateful Session Bean vs Entity


Bean
(v) Low Level Introspection vs High
Level Introspection
(b) Explain various circumstances under which
a message driven bean should be used. 5

4. (a) Assume that there is a table named


CUSTOMER in MS-Access with fields —
(Cust_id, Cust_name, Cust_phone and
Cust_address). Write a code for servlet
which will display all the fields of
Customer Table in a tabular manner. 15

(b) Explain the different development goals of


XML document. 5

MCS-051 2
5. (a) What are customs tags in JSP ? What are
the components that make up a tag library
in JSP ? 6

(b) Write an XML DTD to represent the grade


card of a student which contains the
following : 8
(i) Name — last, middle and first
(ii) Subject — five subjects
(iii) Marks
(iv) Grade
(v) Reserved Category (yes/no)
(c) Explain EAI layer software context
architecture with diagram. 6

MCS-051 3 13,000
No. of Printed Pages : 3 I MCS-051 I
MCA (Revised)
Term-End Examination
December, 2016

MCS-051 : ADVANCED INTERNET TECHNOLOGIES

Time : 3 hours Maximum Marks : 100

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


questions from the rest.

1. (a) What is a Scriplet in JSP ? Show the use of


JSP scriplets with the help of an example. 10

(b) How are business logic and presentation


layers separated using server pages ?
Explain the relationship between Applet,
Servlet and JSP. 10

(c) What are the advantages of using an


Entity Bean for database operations over
directly using JDBC API to do database
operations ? When would one need to be
used over the other ? 10

(d) Explain any five different types of tags or


scripting elements used in JSP. 10

MCS-051 1 P.T.O.
2. (a) Explain the differences between the
following :
(i) External Entity and Internal XML
Entities
(ii) Java Beans and Enterprise Java
Beans 5

(b) Describe the constituents of a Digital


Certificate. Also explain the importance of
deployment descriptor in a servlet. 10

3. (a) Create an HTML Reader JSP tag that


reads the HTML page from a link and will
display the content on the JSP. Do not use
"include" directive. 10

(b) Explain the following :


(i) Two-way SSL-authentication with
JNDI 5
(ii) Two-way SSL-authentication with
servlets 5

4. (a) Explain the life cycle of stateless and


stateful session beans. 10

(b) Write a program using JSP to retrieve the


name, roll number and grades in each
subject of a student from a database
wherever the grade is 'A', 'B' or 'C'. 10

MCS-051 2
5. (a) Describe the issues related to form-based
authentication and HITPS client
authentication. 10

(b) Write the DTD of an XML document that


contains student information. A student
may be enrolled for more than one subject
and has a grade in each of those subjects if
any examination has been conducted in it.
The fields middle-name and grade are
optional, while subject can occur many
times. All other fields are required. 10

MCS-051 3 8,000
No. of Printed Pages : 3 I MCS-051 I

MCA (Revised)
Term-End Examination
07:-'016 June, 2016

MCS-051 ADVANCED INTERNET TECHNOLOGIES

Time : 3 hours Maximum Marks : 100

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


questions from the rest.

1. (a) Explain the underlying software


architecture of EJB with the help of a
diagram. 10

(b) Consider a relational database with data


on students. The fields are roll_no,
last_name, first_name, subject and grade.
Write a Java program to connect to this
database and insert the data of a student
with 5 subjects into it. You are required to
connect to the database using a JDBC
driver. 10

(c) What is meant by XML parsing ? Describe


the parsers involved with XML. 10

(d) Explain different phases of life cycle of a


servlet with the help of a diagram. 10

MCS-051 1 P.T.O.
2. (a) Explain any two capabilities of including
files and applets in JSP documents. 10

(b) How can two servlets share information


using the system property list ? In an
inventory application, one servlet stores the
stock of an item in a system property.
Another servlet uses this property to find
whether an order quantity can be fulfilled
or must be declined. Show how this can be
done through a Java program. 10

3. Differentiate between the following : 4x5=20


(a) Generic Servlet and HTI'P Servlet
(b) XML and SGML
(c) Covert Storage Channel and Covert Timing
Channel
(d) Stateful session bean and Entity bean

4. (a) What are the advantages of using Java's


multiple layer security implementation ?
Explain with the help of an example
program. 10

(b) Explain any two basic mechanisms through


which a web client can authenticate a user
to a web server using http authentication. 10

MCS-051 2
5. (a) Explain SSL authentication with
encryption and handshake. 10

(b) What is JNDI authentication ? Explain


with the help of a suitable example. 10

MCS-051 3 7,000
No. of Printed Pages : 3 I MCS-051 I
MCA (Revised)
Term-End Examination
June, 2017

MCS-051 : ADVANCED INTERNET TECHNOLOGIES

Time : 3 hours Maximum Marks : 100

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


questions from the rest.

1. (a) What is the purpose of message-driven


beans ? Explain the various circumstances
under which a message-driven bean should
be used. 5
(b) Assume there is a table named Student in
"University" database with the following
fields :
s_id, name, semester, email_id
Write a servlet code to insert and display
records of the Student table using JDBC.
Assume ORACLE as RDBMS. 10
(c) What are the limitations of JSP ? How can
the integration of JSP - and servlet
overcome these limitations ? 5
MCS-051 1 P.T.O.
(d) What is the advantage of using Entity
beans over directly using JDBC APIs for
database connectivity ?
(e) Write an XML document to represent Term
End Examination (TEE) grade card of
MCA students which will contain name;
assignment marks, TEE marks and
enrollment number. 10
(f) How does EJB container assist in
transaction management and persistence ?

2. (a) What are the main functions of HTTP


ServletRequest interface ? Explain the
methods which are used to add cookies to
response and send an error response. 5
(b) Write a code in JSP to stop caching of a
page by a browser. 5

(c) What is DTD ? Why do we use it with XML


documents ?
(d) Explain the different types of restrictions
on EJB. 5

3. (a) What is custom tag in JSP ? What are the


components that make up a tag library in
JSP ? 10
(b) How does SSL work ? Discuss several
security measures provided by SSL. 10
MCS-051 2

- -L
4. (a) What are the advantages of using Java's
multiple layer security mechanism ? 10

(b) Write a code fragment showing how to use .

JDBC to query and modify a database. 5

(c) Describe the five benefits of EJB


architecture for an application developer.

5. (a) What is the difference between stateless


and stateful session beans ?

(b) Explain all five basic types of implicit


objects of JSP.

(c) Differentiate between session and cookies. 5

(d) What are the advantages of XML over


HTML ?

MCS-051 3 3,500
No. of Printed Pages : 3 I MC S 051 I
-

MCA (Revised)
Term-End Examination
December, 2017

MCS 051 : ADVANCED INTERNET TECHNOLOGIES


-

Time : 3 hours Maximum Marks : 100

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


questions from the rest.

1. (a) Write a JSP program to display current


date and time. 5

(b) Write a servlet program to fetch and


display all the fields of an Account table
with field name, account_no., address and
balance. 8

(c) What is Message Driven Bean ? Explain its


transaction capabilities. 7

(d) Briefly explain any seven JSP implicit


objects. 7

MCS-051 1 P.T.O.
(e) What are Cookies ? Briefly explain the
following methods of Cookie class : 8
(i) setMaxAge
(ii) setVersion
(iii) setDomain
(iv) setPath

(f) Briefly explain the life cycle of a stateless


session bean with the help of a diagram. 5

2. (a) Explain the following interfaces : 5


(i) HttpServletRequest
(ii) HttpServletResponse

(b) What is an Entity Bean ? Explain its uses. 5

(c) A bank account has the following


attributes :
Account number (mandatory)
Customer_id (can be multiple)
First name (mandatory)
Middle name (optional)
Last name (optional)
Account type (mandatory)
Balance (mandatory)
Write an XML DTD to describe the bank
account. 5

(d) What is the need of web security ? Explain


data integrity and system integrity in the
context of web security.
MCS-051 2
3. (a) Explain HTTP basic authentication with
the help of an example program. 10

(b) What is SGML ? Differentiate between


SGML and XML. 5

(c) Differentiate between Java bean and


Enterprise Java bean. 5

4. (a) What is SSL handshake ? Explain its main


features. 5

(b) Explain form based authentication with


the help of a program. 10

(c) Differentiate between ServletContext and


ServletConfig. 5

5. (a) What is JDBC ? Explain the advantages of


using JDBC with Java. 5

(b) Write a code fragment to forward a request


received by a servlet to different JSP pages
depending on the data received. 5
(c) Briefly describe the benefits of EJB
architecture for developers and users. 10

MCS-051 3 6,500
No. of Printed Pages : 3 I MCS-051 I
MCA (Revised)
Term-End Examination
June, 2015
00243
MCS-051 : ADVANCED INTERNET TECHNOLOGIES

Time : 3 hours Maximum Marks : 100

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


questions from the rest.

1. (a) What is the advantage of using an entity


bean for database operations, over directly
using JDBC API to do database
operations ? When would you need to use
one over the other ? 6
(b) Explain any two types of XML entities in
brief. 4
(c) How do you invoke a Servlet ? What is the
difference between doPost and doGet
methods ? 5
(d) Write servlet code to use a form to
authenticate a client using the session
information stored in the HTTP session
object in the web server. • 10
(e) Create a database of employees who are
working for ABC company and then write a
program using JSP and JDBC to display
their names, departments and salaries
which they are drawing from the company ? 10

MCS-051 1 P.T.O.
(f) Explain JNDI Authentication with suitable
example. 5

2. (a) Differentiate between the following : 5x3=15


(i) GET and POST
(ii) Servlet engines and Servlet
chaining
(iii) Session and Cookies
(iv) XML and SGML
(v) Session bean and Entity bean

(b) Explain the different circumstances under


which message driven bean can be used. 5

3. (a) Explain the different types of restrictions


in EJB. 5
(b) Explain the life cycle of Servlet. Write a
code for a demo Servlet to explain all the
three stages of Servlet life cycle. 10
(c) Explain three different types of JDBC SQL
statements. 5

4. (a) Explain different types of system


vulnerabilities in detail. 8
(b) Differentiate between validating and
non-validating parser. 4
(c) Draw a diagram to show security objects
dependencies and explain each security
object with the help of examples. 8

MCS-051 2
5. (a) Consider the following list of attributes :
Last name — mandatory

Middle name — optional


First name — mandatory
Phone — optional

e-mail — mandatory

Nationality — "Indian" in all cases

Write an XML DTD for the above.

(b) Explain the four call back methods of entity


beans. 8
(c) Discuss any three system recovery
procedures in detail. 6

MCS-051 3 8,000

Vous aimerez peut-être aussi