Servlets and JSP

Question 1
Marks : +2 | -2
Pass Ratio : 100%
The _______ specification defines an application programming interface for communication between the server and the application program
Java Servlet
JDBC
Java Applet
Java Swing
Explanation:
The java servlet specification defines an application programming interface for communication between the server and the application program. The HttpServlet class in Java implements the servlet API specification.
Question 2
Marks : +2 | -2
Pass Ratio : 100%
State true or false: Executing programs at the client side is slower than executing programs on the server
True
False
Explanation:
Executing programs on the client side is faster than executing programs on the server which includes sending every interaction to the server.
Question 3
Marks : +2 | -2
Pass Ratio : 100%
While using Javascript, the browser parses the HTML code into a tree like structure defined by a standard called ________
DOS
DOD
DOM
DON
Explanation:
While using Javascript, the browser parses the HTML code into a tree like structure defined by a standard called Document Object Model (DOM). Javascript code can modify the tree structure to carry out certain operations.
Question 4
Marks : +2 | -2
Pass Ratio : 100%
What is the full form of JSP?
Java servlet program
Java server pages
Java server pages
Java server program
Explanation:
The full form of JSP is Java Server Pages. It is a scripting language that allows HTML programmers to mix static HTML with dynamically generated HTML.
Question 5
Marks : +2 | -2
Pass Ratio : 100%
State true or false: Servlets are used to generate dynamic responses to HTTP requests.
True
False
Explanation:
Servlets are used to generate dynamic responses to HTTP requests. The task of a servlet is to process a request dynamically.
Question 6
Marks : +2 | -2
Pass Ratio : 100%
Which of these functions is not a part of the servlet lifecycle
Checking if an instance of servlet exists or not
Invoking the service method of the servlet
Shutting down the servlet
Pausing the servlet for a given period of time.
Explanation:
Pausing the servlet for a given amount of time is not a part of the servlet lifecycle. A servlet can be checked, invoked and destroyed but it cannot be paused.
Question 7
Marks : +2 | -2
Pass Ratio : 100%
Javascript is used to create dynamic webpages using technologies that are collectively called ________
Ajax
Thor
Dynamo
Achilles
Explanation:
Javascript is used to create dynamic webpages using technologies that are collectively called Ajax.
Question 8
Marks : +2 | -2
Pass Ratio : 100%
What are scripting languages?
The programming languages that pre decide the web page content
The programming languages that are simpler and offer same protection
The programming languages that trade off simplicity for protection.
None of the mentioned
Explanation:
Scripting languages are those languages that are simpler with enriched user interface features but offer the same protection as that of Java.
Question 9
Marks : +2 | -2
Pass Ratio : 100%
Which of the following application servers do not provide built in support for servlets?
Tomcat server
Glassfish
JBoss
None of the mentioned
Explanation:
All of the mentioned application servers provide built in support for servlets. Glassfish and Tomcat are the most prominently used application servers.
Question 10
Marks : +2 | -2
Pass Ratio : 100%
What are client side scripting languages?
The languages designed to be executed on the client’s web browser
The languages designed to be executed on the server
The languages designed to reduce the amount of data costs incurred at the client end
The languages designed to be executed in multiple computers paralleled with each other
Explanation:
Client side scripting languages are those languages that are designed to be executed on the client’s web browser. These languages provide constructs that can be embedded with an HTML document.