J2EE Technologies

M

Mr. Dubey • 51.43K Points
Coach

Q 21. Which of the following is not a directive in JSP?

(A) page directive
(B) include directive
(C) taglib directive
(D) command directive
WhatsApp Facebook Telegram

Share in MCQ Buddy Groups

Share

M

Mr. Dubey • 51.43K Points
Coach

Q 22. Java code is embedded under which tag in JSP?

(A) Declaration
(B) Scriptlet
(C) Expression
(D) Comment
WhatsApp Facebook Telegram

Share in MCQ Buddy Groups

Share

M

Mr. Dubey • 51.43K Points
Coach

Q 23. Can <!–comment–> and <%–comment–%> be used alternatively in JSP?

(A) True
(B) False
(C) none
(D) all
WhatsApp Facebook Telegram

Share in MCQ Buddy Groups

Share

M

Mr. Dubey • 51.43K Points
Coach

Q 24. Which tag is used to set a value of a JavaBean?

(A) <c:set>
(B) <c:param>
(C) <c:choose>
(D) <c:forward>
WhatsApp Facebook Telegram

Share in MCQ Buddy Groups

Share

M

Mr. Dubey • 51.43K Points
Coach

Q 25. What temporarily redirects response to the browser?

(A) <jsp:forward>
(B) <%@directive%>
(C) response.sendRedirect(URL)
(D) response.setRedirect(URL)
WhatsApp Facebook Telegram

Share in MCQ Buddy Groups

Share

M

Mr. Dubey • 51.43K Points
Coach

Q 26. Which object stores references to the request and response objects?

(A) sessionContext
(B) pageContext
(C) HttpSession
(D) sessionAttribute
WhatsApp Facebook Telegram

Share in MCQ Buddy Groups

Share

M

Mr. Dubey • 51.43K Points
Coach

Q 27. “out” is implicit object of which class?

(A) javax.servlet.jsp.PrintWriter
(B) javax.servlet.jsp.SessionWriter
(C) javax.servlet.jsp.SessionPrinter
(D) javax.servlet.jsp.JspWriter
WhatsApp Facebook Telegram

Share in MCQ Buddy Groups

Share

M

Mr. Dubey • 51.43K Points
Coach

Q 28. Which attribute uniquely identification element?

(A) ID
(B) Class
(C) Name
(D) Scope
WhatsApp Facebook Telegram

Share in MCQ Buddy Groups

Share

M

Mr. Dubey • 51.43K Points
Coach

Q 29. Which of the following action variable is used to include a file in JSP?

(A) jsp:setProperty
(B) jsp:getProperty
(C) jsp:include
(D) jsp:plugin
WhatsApp Facebook Telegram

Share in MCQ Buddy Groups

Share

M

Mr. Dubey • 51.43K Points
Coach

Q 30. Which one of the following is correct for directive in JSP?

(A) <%@directive%>
(B) <%!directive%>
(C) <%directive%>
(D) <%=directive%>
WhatsApp Facebook Telegram

Share in MCQ Buddy Groups

Share