NEW
Font size
WorksheetsAdvanced Java UNIT-2(J2EE)-Quiz-4
Total questions: 20
Worksheet time: 15mins
Which architectural model does J2EE primarily follow?
Monolithic Architecture
Client-Server Architecture
Microservices Architecture
Layered Architecture
In the J2EE multi-tier architecture, which tier is responsible for business logic?
Client Tier
Web Tier
EJB Tier
EIS Tier
What is the primary role of the EIS tier in J2EE architecture?
Handling user interface
Managing business logic
Interacting with enterprise information systems
Serving static content
Which container manages the execution of JSPs and Servlets?
EJB Container
Web Container
Application Client Container
Applet Container
What is the main responsibility of the EJB container?
Managing HTTP requests
Handling database connections
Managing the execution of enterprise beans
Serving static resources
A container provides which types of services to components?
Lifecycle, Security, Transactions, JNDI, Thread Management
HTTP Routing only
File System Access
UI Rendering only
In J2EE, which server provides both Web and EJB containers?
Web Server
Database Server
J2EE Server / Application Server
Proxy Server
In the Model-View-Controller (MVC) architecture, what is the role of the Model?
Handling user input
Managing the application's data and business logic
Displaying the user interface
Routing requests
Which server type is responsible for data storage and retrieval in J2EE applications?
Web Server
Application Server
Database Server
FTP Server
Which container hosts servlets and JSPs?
EJB Container
Web Container
Application Client Container
Applet Container
Which container manages enterprise beans such as session, entity, and message-driven beans?
Web Container
Applet Container
EJB Container
Application Client Container
What are the four container types defined by J2EE?
Web, EJB, Messaging, Connector
Web, EJB, Applet, Application Client
Web, Database, Applet, EJB
Client, Server, DB, Web
Which components can the Web Container manage?
EJBs only
Applets and Applications
Servlets, JSPs, Filters
Web Services only
Which HTTP method is idempotent and used to update resources?
POST
GET
PUT
DELETE
In HTTP, what does the status code 404 represent?
OK
Created
Not Found
Unauthorized
Which component is responsible for generating dynamic content in response to a request?
HTML
JSP
CSS
XML
Which of the following methods returns only headers in the response, without the message body?
GET
POST
HEAD
PUT
Which HTTP method is typically used to retrieve a resource from a web server?
POST
DELETE
GET
PUT
What does HTTP stand for?
Hypertext Transfer Protocol
High Transfer Text Protocol
Hyper Transfer Text Protocol
Hypertext Transmission Protocol
In the MVC architecture, which component handles the user input?
Model
View
Controller
Service
