Search Header Logo

Power Test MCQ

Authored by Prithivi Maharjan

others

Professional Development

Used 3+ times

Power Test MCQ
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the difference between a servlet and a JSP in JEE?

Servlets are for handling user requests, while JSPs are for presentation logic.
Servlets are for database access, while JSPs are for user interaction.
Servlets are server-side code, while JSPs are client-side code.
Servlets are for static content, while JSPs are for dynamic content.

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following methods of the javax.servlet.Servlet interface is responsible for initializing the servlet?

init(ServletConfig config)
initialize(ServletConfig config)
start(ServletConfig config)
setup(ServletConfig config)

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following url represents core tag library?

http://java.sun.com/jsp/jstl/core
http://java.sun.com/jsp/jstl/functions
http://java.sun.com/jsp/jstl/fmt
http://java.sun.com/jsp/jstl/sql

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

In the MVC architecture, what is the primary responsibility of the Model?

Rendering data to the user interface
Handling user inputs and events
Storing and managing application data
Controlling the flow of the application logic

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How can you access a request parameter passed from an HTML form in a JSP page?

By directly referencing the parameter name in the HTML code.
Using a custom JSP tag specifically for that parameter.
Employing the request.getParameter("parameterName") method.
Accessing it through a session attribute created in the servlet.

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is a part of JSTL Formatting Tag Library?

import
forEach
parseDate
endsWith

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the role of the tag in a JSP page?

To create a new session object.
To forward a request to another servlet.
To create or access a Java bean object for data manipulation.
To iterate through a collection of items.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?