100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
PRJ301 FULLQuestions and Answers 2024 $10.79   Add to cart

Exam (elaborations)

PRJ301 FULLQuestions and Answers 2024

 3 views  0 purchase
  • Course
  • Institution

PRJ301 FULL Questions and Answers 2024

Preview 3 out of 27  pages

  • August 9, 2024
  • 27
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
avatar-seller
PRJ301 FULL Questions and Answers 2024



1. To send binary output in a response, which of the following method of HttpServletResponse
get the appropriate Writer/Stream object?: getOutput- Stream
2. Which of the following is NOT a valid attribute for useBean tag?: className
3. Which of the following defines the name of a tag in a taglibrary descriptor?-
: name
4. Study the statements about web.xml file:
1) The deployment descriptor file is called web.xml, and it must be located in the WEB-INF
directory.
2) web.xml is in XML (extended markup language) format. Its root element is
<web>.: Only statement 1 is true
5. Which interface you CANNOT use to obtain a ResquestDispatcher Object?-
: ServletContext
6. Which security mechanism proves that data has not been tampered with during its transit
through the network?: Data integrity
7. Which interface can you use to retrieve a resource that belongs to the current web
application: ServletContext
8. Your jsp page uses classes from java.util package. Which of the following statement would
allow you to import the package? (Choose one): <%@ page import="java.util*"%>
9. Which of the following statement correctly store an object associated with a name at a place
where all the servlets/jsps of the same webapp participating in a session can access it? Assume
that request, response, name, value etc. are references to objects of appropriate types.(Choose
one): request.getSes- sion().setAttribute(name, value);
10.Which element of the deployment descriptor of a web application includes the welcome-file-
list element as a sub element?: web-app
11.Which syntax is correct for JSP Declarations?: <%! code %>



, PRJ301 FULL Questions and Answers 2024
12.When you obtain a session( using getSession() of HttpServletRequest object), the web
manufactures a unique ID string for the session. This passed as a token between the client and
server.: True
13.Which statements are the BEST describe page attribute of <jsp:include page =...> Action?:
Dynamically includes another resource in a JSP. As the JSP executes, the referenced resource is
included and processed.
14.Data integrity is the biggest issue for your web application. What will you do?(choose one):
Use form-based authentication
15. The following statement is True or False?
Statement: A URL contains information that directs a browser to the resource that the user
wishes to access: True






, PRJ301 FULL Questions and Answers 2024



16. The following statement is True or False?
Statement: Servlet methods are executed automatically.: True
17.Which method would you use to put the session id into the URL to support sessions using
URL rewriting?: encodeURL() of HttpServletResponse
18.Regarding URL rewriting for session support, which of the following is true?: Every URL
that the client uses must include jsessionid
19.Which syntax is correct for JSP Scriptlets?: <% code %>
20.Which of the following is true about Data Integrity?: The information/data is not tampered
with, in transit from host to client
21. What is output to the web page on the second access to the same instance of the following
JSP?
<html>
<body>
<%! int x = 0; %>
<%= x++ %>
</body>
</html>: 0
22.The form attribute specifies the server-side form handler, i.e, the program
that handles the request: action
23. Name the default value of the scope attribute of <jsp:useBean>
A. page: page
24.The HttpServletRequest has methods by which you can find out about incoming
information such as:: All of the others
25. Given that a servlet has been mapped to /account/*.
Identity the HttpServletRequest methods that will return the/myapp segement- forthe URI:
/myapp/account/*.: getPathlnfo

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller smartchoices. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $10.79. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

85651 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$10.79
  • (0)
  Add to cart