JSP

A colorful and engaging illustration of JavaServer Pages with code snippets and a quiz theme, featuring a bright background and educational elements.

Master JSP: Test Your Knowledge

Welcome to the Master JSP Quiz! This quiz is designed for anyone interested in JavaServer Pages (JSP) and aims to challenge your understanding of essential concepts and details.

Get ready to:

  • Test your knowledge of JSP basics
  • Enhance your understanding through engaging questions
  • Track your progress and knowledge retention
12 Questions3 MinutesCreated by CodingExpert237
1- What JSP stand for?
A) Java Server Pages
B) Java Service Pages
2 - What is a Hidden Comment in JSP?
A) <%-- --%>
B) <%-- %>
3 - What is the output of the following code?<% session.setAttribute("name", "John"); %> <%= session.getAttribute("name") %>
A) null
B) John
4 - What gets printed when the following JSP code is invoked in a browser. Select the one correct answer. <%= if(Math.random() < 0.5) %>hello <%= } else { %>hi <%= } %>
A) The browser will print either hello or hi based upon the return value of random.
B) The string hello will always get printed.
C) The string hi will always get printed.
D) The JSP file will not compile.
5 -What is the default scope in JSP?
A) page
B) application
C) session
D) request
6 - Which of the following JSP variables are not available within a JSP expression. Select the one correct answer.
A) session
B) request
C) response
D) httpsession
7 - In <jsp:getProperty />which attributes are used
A) id and scope
B) type and id
C) file and flush
D) page and flush
8 - Which of the following statements are true about GET and POST methods?
A) In POST parameters are sent in one of the request headers
B) In GET, parameters are appended to the request line
9 - Which is not a directive?
A) Page
B) Include
C) Taglib
D) Scriptlet
10 - Choose correct scopes into JSP:-
A) page, request, session, application
B) Page, response, session, application
C) Page, request, response, session
D) None
11 - In <jsp:include>  which two attributes are necessary
A) id and scope
B) class or beanName,name,property,value
C) type and id
D) name and property
12- Which of following is true by default?
A) session
B) language
C) isThreadSafe
D) info
{"name":"JSP", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Welcome to the Master JSP Quiz! This quiz is designed for anyone interested in JavaServer Pages (JSP) and aims to challenge your understanding of essential concepts and details.Get ready to:Test your knowledge of JSP basicsEnhance your understanding through engaging questionsTrack your progress and knowledge retention","img":"https:/images/course8.png"}
Powered by: Quiz Maker