CSC 330 Quiz Questions With Correct
Answers
To develop Java web applications, you can use an Integrated Development
| | | | | | | | | | |
Environment (IDE) such as: | | |
a) NetBeans or Eclipse
| | |
b) Foxfire or Netscape
| | |
c) FileZilla or CuteFTP
| | |
d) Tomcat or Apache - CORRECT ANSWER✔✔-a) NetBeans or Eclipse
| | | | | | | | |
Which directory stores the Java classes of a servlet/JSP application?
| | | | | | | | |
a) WEB-INF
|
b) WEB-INF\classes
|
c) META-INF
|
d) META-INF\classes - CORRECT ANSWER✔✔-b) WEB-INF\classes
| | | | |
An HTTP request:
| |
a) is sent from the web browser to a web server
| | | | | | | | | |
b) is sent from the web browser to the client
| | | | | | | | |
c) is sent from the servlet engine to the client
| | | | | | | | |
d) is sent from the client to the servlet engine - CORRECT ANSWER✔✔-a) is sent
| | | | | | | | | | | | | | |
from the web browser to a web server
| | | | | | |
,A JavaBean, or bean, is a Java class that:
| | | | | | | |
a) declares public instance variables
| | | |
b) doesn't provide a zero-argument constructor
| | | | |
c) doesn't provide get and set methods for all of it's private instance variables
| | | | | | | | | | | | | |
that follow standard Java naming conventions
| | | | |
d) none of the above - CORRECT ANSWER✔✔-d) none of the above
| | | | | | | | | | |
There are many approaches to developing web applications with Java besides
| | | | | | | | | | |
using servlets and JavaServer Pages. Name two other approaches.
| | | | | | | |
a) HTML and CSS
| | |
b) JSF and Spring
| | |
c) Glassfish and Tomcat
| | |
d) JavaScript and jQuery - CORRECT ANSWER✔✔-b) JSF and Spring
| | | | | | | | |
Since the web.xml file describes how the web application should be configured
| | | | | | | | | | | |
when it is deployed on a server, the file is known as the:
| | | | | | | | | | | |
a) the request object
| | |
b) style sheet (SS)
| | |
c) app config file (ACD)
| | | |
d) deployment descriptor (DD) - CORRECT ANSWER✔✔-d) deployment descriptor
| | | | | | | |
(DD)
|
A servlet
|
a) runs in a JSP
| | | |
,b) runs on a server
| | | | |
c) runs on the client
| | | |
d) runs within HTML code - CORRECT ANSWER✔✔-b) runs on a server
| | | | | | | | | | |
The specification that describes how web servers can interact with all Java web
| | | | | | | | | | | | |
technolgies is know as | | |
a) The Java Development Kit (JDK)
| | | | |
b) The Java Enterprise Edition (Java EE)
| | | | | |
c) The Application Server
| | |
d) The HyperText Transfer Protocal - CORRECT ANSWER✔✔-b) The Java Enterprise
| | | | | | | | | |
Edition (Java EE)
| | |
A web.xml file is always stored in the ____________ directory of an application. -
| | | | | | | | | | | | | |
CORRECT ANSWER✔✔-WEB-INF |
___________ is the language that the web browser converts into the web pages
| | | | | | | | | | | | |
of a web application. - CORRECT ANSWER✔✔-HTML
| | | | | |
A _______________ web page is one that doesn't change. - CORRECT
| | | | | | | | | | |
ANSWER✔✔-static
In the MVC pattern, the view consists of HTML pages and _____________. -
| | | | | | | | | | | | |
CORRECT ANSWER✔✔-JavaServer Pages | |
A web application is a type of
| | | | | |
, a) client/server application
| |
b) database application
| |
c) JSP application
| |
d) Java application - CORRECT ANSWER✔✔-a) client/server application
| | | | | | |
When you use the Model 1 pattern, _____________ handle all of the processing
| | | | | | | | | | | | |
and presentation for the application. - CORRECT ANSWER✔✔-JSPs
| | | | | | |
A web server replies to an HTTP request by sending a message known as a/an
| | | | | | | | | | | | | | |
_____________. - CORRECT ANSWER✔✔-HTTP response | | | |
For web applications, data can be stored in:
| | | | | | |
a) text files
| |
b) databases
|
c) XML files
| |
d) all of the above - CORRECT ANSWER✔✔-d) all of the above
| | | | | | | | | | |
When you use the MVC pattern, you
| | | | | |
a) make each layer as independent as possible
| | | | | | |
b) perform all data validation on the client
| | | | | | |
c) use the pattern for every page in the application
| | | | | | | | |
d) all of the above - CORRECT ANSWER✔✔-a) make each layer as independent as
| | | | | | | | | | | | | |
possible
Answers
To develop Java web applications, you can use an Integrated Development
| | | | | | | | | | |
Environment (IDE) such as: | | |
a) NetBeans or Eclipse
| | |
b) Foxfire or Netscape
| | |
c) FileZilla or CuteFTP
| | |
d) Tomcat or Apache - CORRECT ANSWER✔✔-a) NetBeans or Eclipse
| | | | | | | | |
Which directory stores the Java classes of a servlet/JSP application?
| | | | | | | | |
a) WEB-INF
|
b) WEB-INF\classes
|
c) META-INF
|
d) META-INF\classes - CORRECT ANSWER✔✔-b) WEB-INF\classes
| | | | |
An HTTP request:
| |
a) is sent from the web browser to a web server
| | | | | | | | | |
b) is sent from the web browser to the client
| | | | | | | | |
c) is sent from the servlet engine to the client
| | | | | | | | |
d) is sent from the client to the servlet engine - CORRECT ANSWER✔✔-a) is sent
| | | | | | | | | | | | | | |
from the web browser to a web server
| | | | | | |
,A JavaBean, or bean, is a Java class that:
| | | | | | | |
a) declares public instance variables
| | | |
b) doesn't provide a zero-argument constructor
| | | | |
c) doesn't provide get and set methods for all of it's private instance variables
| | | | | | | | | | | | | |
that follow standard Java naming conventions
| | | | |
d) none of the above - CORRECT ANSWER✔✔-d) none of the above
| | | | | | | | | | |
There are many approaches to developing web applications with Java besides
| | | | | | | | | | |
using servlets and JavaServer Pages. Name two other approaches.
| | | | | | | |
a) HTML and CSS
| | |
b) JSF and Spring
| | |
c) Glassfish and Tomcat
| | |
d) JavaScript and jQuery - CORRECT ANSWER✔✔-b) JSF and Spring
| | | | | | | | |
Since the web.xml file describes how the web application should be configured
| | | | | | | | | | | |
when it is deployed on a server, the file is known as the:
| | | | | | | | | | | |
a) the request object
| | |
b) style sheet (SS)
| | |
c) app config file (ACD)
| | | |
d) deployment descriptor (DD) - CORRECT ANSWER✔✔-d) deployment descriptor
| | | | | | | |
(DD)
|
A servlet
|
a) runs in a JSP
| | | |
,b) runs on a server
| | | | |
c) runs on the client
| | | |
d) runs within HTML code - CORRECT ANSWER✔✔-b) runs on a server
| | | | | | | | | | |
The specification that describes how web servers can interact with all Java web
| | | | | | | | | | | | |
technolgies is know as | | |
a) The Java Development Kit (JDK)
| | | | |
b) The Java Enterprise Edition (Java EE)
| | | | | |
c) The Application Server
| | |
d) The HyperText Transfer Protocal - CORRECT ANSWER✔✔-b) The Java Enterprise
| | | | | | | | | |
Edition (Java EE)
| | |
A web.xml file is always stored in the ____________ directory of an application. -
| | | | | | | | | | | | | |
CORRECT ANSWER✔✔-WEB-INF |
___________ is the language that the web browser converts into the web pages
| | | | | | | | | | | | |
of a web application. - CORRECT ANSWER✔✔-HTML
| | | | | |
A _______________ web page is one that doesn't change. - CORRECT
| | | | | | | | | | |
ANSWER✔✔-static
In the MVC pattern, the view consists of HTML pages and _____________. -
| | | | | | | | | | | | |
CORRECT ANSWER✔✔-JavaServer Pages | |
A web application is a type of
| | | | | |
, a) client/server application
| |
b) database application
| |
c) JSP application
| |
d) Java application - CORRECT ANSWER✔✔-a) client/server application
| | | | | | |
When you use the Model 1 pattern, _____________ handle all of the processing
| | | | | | | | | | | | |
and presentation for the application. - CORRECT ANSWER✔✔-JSPs
| | | | | | |
A web server replies to an HTTP request by sending a message known as a/an
| | | | | | | | | | | | | | |
_____________. - CORRECT ANSWER✔✔-HTTP response | | | |
For web applications, data can be stored in:
| | | | | | |
a) text files
| |
b) databases
|
c) XML files
| |
d) all of the above - CORRECT ANSWER✔✔-d) all of the above
| | | | | | | | | | |
When you use the MVC pattern, you
| | | | | |
a) make each layer as independent as possible
| | | | | | |
b) perform all data validation on the client
| | | | | | |
c) use the pattern for every page in the application
| | | | | | | | |
d) all of the above - CORRECT ANSWER✔✔-a) make each layer as independent as
| | | | | | | | | | | | | |
possible