JavaDeploy
SiteMap
JSP - Servlets
JDBC
EJB Concepts
Entity Beans
Servlet Configuration
«Prev
Next»
Servlet Intro
Java Servlets
HTTP Stateless Information
Problems with CGI
Java Servlet Advantages.
Servlet GET Requests
Software Configuration
Java Servlet Development Kit
Text Editor
Configuring JSDK
Servlet Page Generation
doGet Servlet Method.
Simple Servlet generates HTML
Generating Page from Servlet
Maintaining Servlet State
HTML Form Creation
Form Servlet Communication
Generating Servlet Form
Start Web Server
Processing Servlet Form
Web Page Generation
Servlet Database Connection
What is JDBC?
Applet Servlet Interaction
Display Servlet Response
Servlet Software Setup and Configuration - Quiz
Select the best answer or answers for each question.
1.
The Java Servlet Development Kit, JSDK:
Please select the best answer.
A.
Is a supplement to the Java Development Kit, JDK
B.
Includes the Java Development Kit, JDK
C.
Is included in the Java Development Kit, JDK
D.
Replaces the Java Development Kit, JDK
2.
The classpath environment variable:
Please select the best answer.
A.
Can only point to one folder containing Java classes
B.
Should be the same on all computers that use servlets
C.
Tells the Java compiler where to find class libraries
D.
Cannot be changed after it has been set
3.
After you have downloaded and installed the JDK and the JSDK, which of the following has not been provided to you?
Please select the best answer.
A.
A Java compiler
B.
A mini Web server, for servlets only
C.
A Java-compatible text editor
D.
A mini Web browser, for applets only
4.
What simple error in this code will cause a compiler error?
import javax.servlet.*; public class Simplest extends HttpServlet { }
Please select the best answer.
A.
First line should not end with ;
B.
Missing
import javax.servlet.http.*;
C.
HttpServlet should be HTTPServlet
D.
The class definition is empty
5.
The sample URLs I used when testing the JSDK server and JWS featured the word localhost. Which of the following statements about localhost is NOT true?
Please select the best answer.
A.
I configured my machine to be called localhost
B.
"localhost" represents the same machine as the one where you launched the Web browser
C.
The name can be used on any computer, without knowing the name of that computer
D.
If you know the name of your computer, you can use that instead of localhost
6.
The Java Web Server is:
Please select the best answer.
A.
The only Web server that supports servlets
B.
The only free Web server that supports servlets
C.
The reference standard for servlet support
D.
Available from a number of different vendors
7.
To start the Java Web Server on either Windows or UNIX:
Please select the best answer.
A.
Double-click it in an Explorer window
B.
From a command prompt, type Java WebServer
C.
From a command prompt, type StartServer
D.
From a command prompt, type httpd
8.
To stop the Java Web Server on either Windows or UNIX, the normal process is:
Please select the best answer.
A.
At a command prompt, type httpd -stop
B.
Use the Web-based admin tool at localhost:9090
C.
Shut down your system
D.
Locate the server process and kill it
Score =
Correct answers:
Quiz Explanation