and Illustrations Given
Which tag executes the SQL query defined in its body or through the sql
attribute?
Select one:
a.
<sql:executeUpdate>
b.
<sql:executeQuery>
c.
<sql:update>
d.
<sql:query> - 🧠ANSWER ✔✔d
Which of the following code is used to get an attribute in a HTTP Session
object in servlets?
COPYRIGHT©JOSHCLAY 2025/2026. YEAR PUBLISHED 2025. COMPANY REGISTRATION NUMBER: 619652435. TERMS OF USE. PRIVACY 1
STATEMENT. ALL RIGHTS RESERVED
,a.session.getAttribute(String name)
b.session.alterAttribute(String name)
c.session.updateAttribute(String name)
d.session.setAttribute(String name) - 🧠ANSWER ✔✔a
Which is a benefit of precompiling a JSP page?
Select one:
a.It avoids initialization on the first request.
b.It provides better performance on the first request for the JSP page.
c.It avoids execution of the _jspService method on the first request.
d.It provides the ability to debug runtime errors in the application. -
🧠ANSWER ✔✔b
Given the following statements about an EJB deployment descriptor for
which the metadata-complete attribute is not specified:I. The EJB
deployment descriptor can provide additional metadata to bean class
annotations.II. The EJB deployment descriptor can partially override bean
class annotations.III. The EJB deployment descriptor can entirely override
bean class annotations.Which is true?
COPYRIGHT©JOSHCLAY 2025/2026. YEAR PUBLISHED 2025. COMPANY REGISTRATION NUMBER: 619652435. TERMS OF USE. PRIVACY 2
STATEMENT. ALL RIGHTS RESERVED
,Select one:
a.Both statements I and III are correct.
b.Only statement I is correct.
c.Only statement II is correct.
d.Both statements I and II are correct.
e.Only statement III is correct. - 🧠ANSWER ✔✔d
A ________has a name, a single value, and optional attributes such as a
comment, path and domain qualifiers, a maximum age, and a version
number - 🧠ANSWER ✔✔cookie
${101 % 10}
A. 1
B. 10
C. 1001
D. 101 % 10 - 🧠ANSWER ✔✔a
Which will be output of following code when the query string is
firstname=John&lastname=Doe?
COPYRIGHT©JOSHCLAY 2025/2026. YEAR PUBLISHED 2025. COMPANY REGISTRATION NUMBER: 619652435. TERMS OF USE. PRIVACY 3
STATEMENT. ALL RIGHTS RESERVED
, A. John Doe
B. John Doe Doe
C. John null Doe
D.John null doe doe - 🧠ANSWER ✔✔b
Which is true about TLD files?
a.TLD files may be placed in the META-INF directory of the WAR file.
b.TLD files can declare both Simple and Classic tags, but TLD files are
NOT used to declare Tag files.
c.TLD files may be placed in any subdirectory of WEB-INF.
d.TLD files are used to configure JSP environment attributes, such as
scripting-invalid. - 🧠ANSWER ✔✔c
Assuming the standard JSTL prefix conventions are used, which JSTL tags
would you use to iterate over a collection of objects?
A. <x:forEach>
B. <c:iterate>
C. <c:forEach>
D. <c:forTokens> - 🧠ANSWER ✔✔c
COPYRIGHT©JOSHCLAY 2025/2026. YEAR PUBLISHED 2025. COMPANY REGISTRATION NUMBER: 619652435. TERMS OF USE. PRIVACY 4
STATEMENT. ALL RIGHTS RESERVED