Download CUSTOMER_CODE SMUDE DIVISION_CODE SMUDE

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

URL redirection wikipedia , lookup

Transcript
CUSTOMER_CODE
SMUDE
DIVISION_CODE
SMUDE
EVENT_CODE
OCTOBER15
ASSESSMENT_CODE BT0083_OCTOBER15
QUESTION_TYPE
DESCRIPTIVE_QUESTION
QUESTION_ID
7376
QUESTION_TEXT
What are the different types of Resultsets? Explain the methods
setAutoCommit() and rollback().
SCHEME OF
EVALUATION
Resultsets are of three types:
1. ResultSet objects support 3 types of Scrollabilities:
TYPE_FORWARD_ONLY (default), TYPE_SCROLL_INSENSITIVE,
and TYPE_SCROLL_SENSITIVE.
2. ResultSet objects support 2 types update capabilities:
CONCUR_READ_ONLY (default), FETCH_REVERSE, and
FETCH_UNKNOWN.
3. ResultSet objects support 3 types fetch direction hints:
FETCH_FORWARD (default), FETCH_REVERSE, and
FETCH_UNKNOWN.
Committing Records: setAutoCommit() Method:
1.By default Connections are in auto-commit mode.
2.This means that each SQL statement is treated as a transaction and will
be automatically committed immediately after it is executed.
3.Committing records in a database can be set or disable using
setAutoCommit() methods of Connection. Default is true.
4.If setAutoCommit (false) is executed when no SQL statement will be
committed until the method setAutoCommit (true) is
executedexplicitly. (4 marks)
Handling Transaction Failure: rollback()
If any failures happen in the transaction set, results in Rollback to
previous state. Rollback can be made by calling the Connection’s
rollback() method. Rollback is important operation for database
integrity. This gives us consistent database.
Rollback transaction can he used with savepoints or without savepoints.
This rolls back the current transaction and restores the database to the
state it was in before the start of the current transaction.
Failure to commit a transaction before closing the corresponding
Connection object will load to an automatic rollback of the database
updates; all work will be lost. Developers should be sure that all work is
committed to the database before closing the Connection. (3 marks)
QUESTION_TYPE
DESCRIPTIVE_QUESTION
QUESTION_ID
7377
QUESTION_TEXT
What is Web Server? What are the basic common features supported by
a Web Server? List the common Web Servers and Application Servers.
Web Server:
A Web Server is a software program that delivers Web pages and other
documents to browsers using HTTP protocol. when the Web server
receives an HTTP request, it responds with a HTTP response, such as
sending back an HTML page. Every Web Server has an IP address and
possibly a domain name. (2 marks)
SCHEME OF
EVALUATION
Following are the basic common features supported by a Web
Server:
1.Every Web Server program handles HTTP request from the client, and
provides a HTTP response to the client.
2.The HTTP response usually consists of a HTML document, but can
also be a raw file, an image or some other type of document.
3.Request for authentication before allowing access to some or all kinds
of resources.
4.Handling of static and dynamic content by supporting one or more
related interfaces (CGI, 5.Servlet, JSP, EJB, PHP, ASP, ASP.NET, etc.).
6.Content compression (i.e. by gzip encoding) to reduce the size of the
responses. (4 marks)
Common Web Servers are:
Apache Tomcat, Microsoft IIS, Lighttpd, and Google GWS. (2 marks)
Some Application Servers are:
BEA Weblogic, IBM Websphere, JonAS (Java Open Application
Server), Sun Java System Application Server (Sun Microsystems), Sun
ClassFish Enterprise Server, (Red Hat) JBoss, JRun (Adobe), Apache
Geronimo (Apache Software Foundation) etc. (2 marks)
QUESTION_TYPE
DESCRIPTIVE_QUESTION
QUESTION_ID
73482
QUESTION_TEXT
Explain Type 3 JDBC driver along with its advantages and
disadvantages.
SCHEME OF
EVALUATION
Type 3 JDBC driver: Written I java. But it requires a middle tier
server as it uses Network Protocol between the Java Program and the
database. This converts all JDBC calls into vendor specific
applications.1M
Advantages: Each point 1M
• Client installation not required.
• Satisfies “Write Once Run Anywhere” concept as it is written in
Java only
• Suitable for the web and faster ccompared to type 1 and type 2.
• IT gives better performance and scalable.
• Very flexible and it allows access to multiple databases using only
one driver.
• Most efficient among all the driver types.
• The middle tier server can provide middleware services
Disadvantages:
• Requires another middle tier server application to install and
maintain. This will add to cost.
• No direct connection with the database, it requires an additional
step, which effects speed of application execution.
QUESTION_TYPE
DESCRIPTIVE_QUESTION
QUESTION_ID
73484
QUESTION_TEXT
List and explain the advantages and disadvantages of cookies.
SCHEME OF
EVALUATION
Advantages: Each point needs to be explained. Carries 1M
each.
• No resource is required to maintain it.
• Best way to customize navigation on internet.
• Used by AD companies.
• Non-executable
• Light weighted
Disadvantages:
• Limited Size
• Some sites can misuse cookies,
• Stored as plain text
• Can be stolen
• If deleted, it is difficult for servers to trace surfing habits.
QUESTION_TYPE
DESCRIPTIVE_QUESTION
QUESTION_ID
73485
QUESTION_TEXT
Explain Three tier architecture along with its advantages and
disadvantages.
SCHEME OF
EVALUATION
Three Tier: Defines functionality in such a way that we can easily build
presentation layer, business layer and database layer. They are separated
from each other. This gives more flexibility in application, scalability
and creating complex applications. 2M
Advantages: Each point with explanation -1M each
• Better scalability
• Supports connection pooling
• Improves data integrity
• Client has no direct connection with database
• Any change in business logic, system is updated at client side.
• Supports load balancing, fault tolerance etc.
Disadvantages: Each point with explanation -1M each
• Difficult compared to 2 tier because
• The point of communication is double.
• Many handy productivity enhancement provided by the client
will be foregone.
• Fewer tools are available.
• The physical sepereation of application servers containing business
logic functions and database servers containing databases may affect
performance.
QUESTION_TYPE
DESCRIPTIVE_QUESTION
QUESTION_ID
73487
QUESTION_TEXT
Explain the various implicit objects.
SCHEME OF
EVALUATION
Each point needs to be explained
• pageContext -1M
• param and paramValues-1M
• header and headerValues-2M
• Cookie-2M
• initParam-2M
• pageScope, requestScope, sessionScope and
applicationScope-2M