JSP Elements Online Exam Quiz
JSP Elements GK Quiz. Question and Answers related to JSP Elements. MCQ (Multiple Choice Questions with answers about JSP Elements
Can <!?comment?> and <%?comment?%> be used alternatively in JSP?
Options
A : TRUE
B : FALSE
C : -
D : -
How private field can be called using reflection?
Options
A : getDeclaredFields
B : getDeclaredMethods
C : getMethods
D : getFields
How private method can be called using reflection?
Options
A : getDeclaredFields
B : getDeclaredMethods
C : getMethods
D : getFields
Java code is embedded under which tag in JSP?
Options
A : Declaration
B : Scriptlet
C : Expression
D : Comment
What are the components of a marker interface?
Options
A : Fields and methods
B : No fields, only methods
C : Fields, no methods
D : No fields, No methods
What is not the advantage of Reflection?
Options
A : Examine a class's field and method at runtime
B : Construct an object for a class at runtime
C : Examine a class's field at compile time
D : Examine an object's class at runtime
What temporarily redirects response to the browser?
Options
A : <jsp:forward>
B : <%@directive%>
C : response.sendRedirect(URL)
D : response.setRedirect(URL)
Which of the following is not a directive in JSP?
Options
A : page directive
B : include directive
C : taglib directive
D : command directive
Which of the following is not a marker interface?
Options
A : Serializable
B : Cloneable
C : Remote
D : Reader
Which tag is used to set a value of a JavaBean?
Options
A : <c:set>
B : <c:param>
C : <c:choose>
D : <c:forward>