Java JSP (Java Server Pages) MCQs with answers Page - 1

Here, you will find a collection of MCQ questions on Java JSP (Java Server Pages). Go through these questions to enhance your preparation for upcoming examinations and interviews.

To check the correct answer, simply click the View Answer button provided for each question.

Have your own questions to contribute? Click the button below to share your MCQs with others!

+ Add Question

S

Satya • 3.38K Points
Extraordinary

Q. What does JSP stand for?

  • (A) Java Server Pages
  • (B) Java Script Pages
  • (C) Java Servlet Program
  • (D) Java Service Provider

S

Satya • 3.38K Points
Extraordinary

Q. JSP technology is used to create?

  • (A) Static web pages
  • (B) Dynamic web pages
  • (C) Desktop applications
  • (D) Operating systems

S

Satya • 3.38K Points
Extraordinary

Q. Which file extension is used for JSP files?

  • (A) .jsp
  • (B) .java
  • (C) .html
  • (D) .servlet

S

Satya • 3.38K Points
Extraordinary

Q. JSP pages are compiled into?

  • (A) HTML files
  • (B) Servlets
  • (C) JavaScript files
  • (D) XML files

S

Satya • 3.38K Points
Extraordinary

Q. Which tag is used to include a file at request time?

  • (A) <%@ include %>
  • (B) <jsp:include>
  • (C) <jsp:forward>
  • (D) <jsp:param>

S

Satya • 3.38K Points
Extraordinary

Q. Which directive is used to import Java packages in JSP?

  • (A) include directive
  • (B) taglib directive
  • (C) page directive
  • (D) import directive

S

Satya • 3.38K Points
Extraordinary

Q. Which scripting element is used to print output to browser?

  • (A) Scriptlet
  • (B) Declaration
  • (C) Expression
  • (D) Directive

S

Satya • 3.38K Points
Extraordinary

Q. Which tag is used to forward a request to another resource?

  • (A) <jsp:include>
  • (B) <jsp:forward>
  • (C) <jsp:param>
  • (D) <jsp:useBean>

S

Satya • 3.38K Points
Extraordinary

Q. Which object is used to get request parameters in JSP?

  • (A) response
  • (B) request
  • (C) session
  • (D) application

S

Satya • 3.38K Points
Extraordinary

Q. Which implicit object is used to send response to client?

  • (A) out
  • (B) response
  • (C) request
  • (D) config

Add MCQ in this Category

If you want to share an MCQ question in this category, it's a great idea! It will be helpful for many other students using this website.

Share Your MCQ