and Detailed Answers | Get it 100%
Correct Answers
Which of the following statement is correct?
A. Data Integrity means that the data cannot be viewed by anybody other
than it's intended recepient
B. Authentication means determining whether one has access to a
particular resource or not
C. Data Integrity means that the data is not modified in transit between the
sender and the receiver. - 🧠 ANSWER ✔✔C
______includes a static file in a JSP file, parsing the file's JSP elements
A. <jsp:forward>
B. <jsp:useBean>
C. import directive
D. include directive
E. <jsp:include> - 🧠 ANSWER ✔✔d
COPYRIGHT©NINJANERD 2025/2026. YEAR PUBLISHED 2025. COMPANY REGISTRATION NUMBER: 619652435. TERMS OF USE. PRIVACY
1
STATEMENT. ALL RIGHTS RESERVED
,Study the statements:
1) The special directory/WEB-INF/lib contains Java class files—servlets
and supporting code.
2) The special directory /WEB-INF/classes contains JAR files with
supporting libraries of code.
A. Only statement 1 is true
B. Only statement 2 is true
C. Both 1 and 2 are true
D. Both 1 and 2 are not true - 🧠 ANSWER ✔✔d
Which statements are BEST describe class attribute of <jsp:useBean
class=_.. /> Action?
A. The name of a bean that can be used with method instantiate of class
java.beans.Beans to load a JavaBean into memory.
B. The fully qualified class name of the Java object
C. The name used to manipulate the Java object with actions
<jsp:setProperty> and <jsp:getProperty>. A variable of this name is also
declared for use in JSP scripting elements. The name specified here is ca
COPYRIGHT©NINJANERD 2025/2026. YEAR PUBLISHED 2025. COMPANY REGISTRATION NUMBER: 619652435. TERMS OF USE. PRIVACY
2
STATEMENT. ALL RIGHTS RESERVED
,D. The type of the JavaBean. This can be the same type as the class
attribute, a superclass of that type or an interface implemented by that type.
The default value is the same as for attribute class. - 🧠 ANSWER ✔✔b
Which are the correct lines of code to get information in the
following<context-param> tag in the web.xml fi
Assume that response and request refer to HttpServletResponse and
HttpServletRequest respectively.
A. response.getParameter('machineName');
B. requestgetParameter( machineName');
C. ServletContext sc = getServletContextO;
String serverName = sc.getlnitParameter("machineName");
D. ServletConfigsc = getServletConfigO;
String serverName = sc.getlnitParameterfmachineName"); - 🧠 ANSWER
✔✔----------------------
<web-app>
<concexc-param>
COPYRIGHT©NINJANERD 2025/2026. YEAR PUBLISHED 2025. COMPANY REGISTRATION NUMBER: 619652435. TERMS OF USE. PRIVACY
3
STATEMENT. ALL RIGHTS RESERVED
, <parair - narr.e >mach i neN ame < / p a r air - name >
<parair.-value>cms-server</parair.-value>
</context-parair.>
</web-app>| ---- c
Consider the following java code:
//in file Book.java package com.bookstore; public class Book {
private long isbn;
public BookO{ isbn = 0;}
public long getlsbn(){ return isbn;}
public void setlsbn(long value){ this.isbn = value;}
}
Code for browse.jsp:
<jsp:useBean class="com.bookstore.Book" id="newbook"/>
LINE 1: <jsp:setProperty name="newbook" property="isbn" value="1000"/>
Which of the following statements are correct?
COPYRIGHT©NINJANERD 2025/2026. YEAR PUBLISHED 2025. COMPANY REGISTRATION NUMBER: 619652435. TERMS OF USE. PRIVACY
4
STATEMENT. ALL RIGHTS RESERVED