100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
PRJ301 2024/2025 Exam Questions with 100% Correct Answers | Latest Update $12.49
Add to cart

Exam (elaborations)

PRJ301 2024/2025 Exam Questions with 100% Correct Answers | Latest Update

 0 purchase
  • Course
  • PRJ301
  • Institution
  • PRJ301

PRJ301 2024/2025 Exam Questions with 100% Correct Answers | Latest Update Study the statements about file: 1)The deployment descriptor file is called , and it must be located in the WEB-INF directory. 2) is in XML ( extended markup language) format. Its root element is <web>. S...

[Show more]

Preview 4 out of 46  pages

  • March 15, 2025
  • 46
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • PRJ301
  • PRJ301
avatar-seller
NinjaNerd
PRJ301 2024/2025 Exam Questions with
100% Correct Answers | Latest Update



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>.

Select one:




a. Both 1 and 2 are not true.

b. Only statement 1 is true.

c. Both 1 and 2 are true.


d. Only statement 2 is true. - 🧠 ANSWER ✔✔b


The two most common HTTP requests are get and put.




COPYRIGHT©NINJANERD 2025/2026. YEAR PUBLISHED 2025. COMPANY REGISTRATION NUMBER: 619652435. TERMS OF USE. PRIVACY
1
STATEMENT. ALL RIGHTS RESERVED

,A. False


B. True - 🧠 ANSWER ✔✔a


The following line of code exists in the doGet method of Servlet String sid =

request.getParameter(""jsessionid"") - 🧠 ANSWER ✔✔


Which of the option is NOT a standard technique for retrieving the

HttpSession associated with the request? (Assume that the session has

already been created.)




A. HttpSession session = requestgetSession(sid):

B. HttpSession session = requestgetSession():

C. HttpSession session = requestgetSession(false):


D. HttpSession session = request.getSession(true) - 🧠 ANSWER ✔✔a


Which of the following method calls can be used to retrieve an object from

the session that was stored using the name "userid"?

A. getValue("userid");

B. get("userid");

C. getAttribute("userid");

COPYRIGHT©NINJANERD 2025/2026. YEAR PUBLISHED 2025. COMPANY REGISTRATION NUMBER: 619652435. TERMS OF USE. PRIVACY
2
STATEMENT. ALL RIGHTS RESERVED

,D. getParameter("userid");


E. getObject("userid"); - 🧠 ANSWER ✔✔c


_____ provides a way to identify a user across more than one page request

or visit to a Web site and to store information about that user.

Select one:

a. Cookie

b. Hidden Field

c. Session management


d. URL Rewrite - 🧠 ANSWER ✔✔c


"Which of the following defines the type of the content that a tag can

accept?

A. content-type

B body-content

C content


D. tag-content-type" - 🧠 ANSWER ✔✔a




COPYRIGHT©NINJANERD 2025/2026. YEAR PUBLISHED 2025. COMPANY REGISTRATION NUMBER: 619652435. TERMS OF USE. PRIVACY
3
STATEMENT. ALL RIGHTS RESERVED

, Given the following JSP and tag handler code, what is the result of

accessing the JSP?

JSP Page Source

<html>

<body>

<%@taglib uri="test_taglib" prefix="myTag"%>

<% session.setAttribute("first", "first"); %>

<myTag:TestTag/>

<br>

<%=session.getAttribute("second")%>

</body>

</html>

Tag Handler Code for <myTag:TestTag />

package examples;

import java.io.*;

import javax.servlet.jsp.*;




COPYRIGHT©NINJANERD 2025/2026. YEAR PUBLISHED 2025. COMPANY REGISTRATION NUMBER: 619652435. TERMS OF USE. PRIVACY
4
STATEMENT. ALL RIGHTS RESERVED

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 NinjaNerd. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

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

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

69081 documents were sold in the last 30 days

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

Start selling
$12.49
  • (0)
Add to cart
Added