wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Advanced Java UNIT-2(J2EE)-Quiz-4

Total questions: 20

Worksheet time: 15mins

Name
Class
Date
1.

Which architectural model does J2EE primarily follow?

a)

Monolithic Architecture

b)

Client-Server Architecture

c)

Microservices Architecture

d)

Layered Architecture

2.

In the J2EE multi-tier architecture, which tier is responsible for business logic?

a)

Client Tier

b)

Web Tier

c)

EJB Tier

d)

EIS Tier

3.

What is the primary role of the EIS tier in J2EE architecture?

a)

Handling user interface

b)

Managing business logic

c)

Interacting with enterprise information systems

d)

Serving static content

4.

Which container manages the execution of JSPs and Servlets?

a)

EJB Container

b)

Web Container

c)

Application Client Container

d)

Applet Container

5.

What is the main responsibility of the EJB container?

a)

Managing HTTP requests

b)

Handling database connections

c)

Managing the execution of enterprise beans

d)

Serving static resources

6.

A container provides which types of services to components?

a)

Lifecycle, Security, Transactions, JNDI, Thread Management

b)

HTTP Routing only

c)

File System Access

d)

UI Rendering only

7.

In J2EE, which server provides both Web and EJB containers?

a)

Web Server

b)

Database Server

c)

J2EE Server / Application Server

d)

Proxy Server

8.

In the Model-View-Controller (MVC) architecture, what is the role of the Model?

a)

Handling user input

b)

Managing the application's data and business logic

c)

Displaying the user interface

d)

Routing requests

9.

Which server type is responsible for data storage and retrieval in J2EE applications?

a)

Web Server

b)

Application Server

c)

Database Server

d)

FTP Server

10.

Which container hosts servlets and JSPs?

a)

EJB Container

b)

Web Container

c)

Application Client Container

d)

Applet Container

11.

Which container manages enterprise beans such as session, entity, and message-driven beans?

a)

Web Container

b)

Applet Container

c)

EJB Container

d)

Application Client Container

12.

What are the four container types defined by J2EE?

a)

Web, EJB, Messaging, Connector

b)

Web, EJB, Applet, Application Client

c)

Web, Database, Applet, EJB

d)

Client, Server, DB, Web

13.

Which components can the Web Container manage?

a)

EJBs only

b)

Applets and Applications

c)

Servlets, JSPs, Filters

d)

Web Services only

14.

Which HTTP method is idempotent and used to update resources?

a)

POST

b)

GET

c)

PUT

d)

DELETE

15.

In HTTP, what does the status code 404 represent?

a)

OK

b)

Created

c)

Not Found

d)

Unauthorized

16.

Which component is responsible for generating dynamic content in response to a request?

a)

HTML

b)

JSP

c)

CSS

d)

XML

17.

Which of the following methods returns only headers in the response, without the message body?

a)

GET

b)

POST

c)

HEAD

d)

PUT

18.

Which HTTP method is typically used to retrieve a resource from a web server?

a)

POST

b)

DELETE

c)

GET

d)

PUT

19.

What does HTTP stand for?

a)

Hypertext Transfer Protocol

b)

High Transfer Text Protocol

c)

Hyper Transfer Text Protocol

d)

Hypertext Transmission Protocol

20.

In the MVC architecture, which component handles the user input?

a)

Model

b)

View

c)

Controller

d)

Service