Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

PRJ321 Complete Exam Questions & Verified Answers | Graded A+ by Experts

Beoordeling
-
Verkocht
-
Pagina's
43
Cijfer
A+
Geüpload op
12-03-2026
Geschreven in
2025/2026

Ace your PRJ321 exam with this comprehensive study guide featuring complete questions and verified answers graded A+ by experts. This PDF covers essential topics including servlets, JSP, JSTL, Struts 2 framework, EJB, JDBC, and web deployment descriptors. The ultimate resource for Java web development students.

Meer zien Lees minder
Instelling
Vak

Voorbeeld van de inhoud

PRJ321 EXAM COMPLETE STUDY GUIDE WITH
ALL
QUESTIONS AND CORRECT ANSWERS |
ALREADY GRADED A+


What is the HTTP 1.1 status code that indicates: Everything's fine? Select one:
a. 200
b. 101
c. 202
d. 201 - CORRECT ANSWER>>>>a

How does container initialize Servlet Object at deploy time?
a. The servlet must be declared into context deployment descriptor with servlet tag
b. The servlet must be declared into web deployment descriptor with servlet tag
c. The servlet must be declared into web deployment descriptor with servlet-mapping tag
d. The servlet does not need to be declared - CORRECT ANSWER>>>>b


What object will represent the output stream for the JSP page? a.
dispatch
b. out
c. response
d. writer - CORRECT ANSWER>>>>b


How do you manage database transaction in JDBC programming?
a. Database transaction management is depends on JDBC driver
b. Database transaction is managed by DBMS server, not by JDBC driver
Page | 1

,c. Turn on auto-commit mode to begin transaction, then commit/ rollback
d. Turn off auto-commit mode to begin transaction, then commit/ rollback - CORRECT
ANSWER>>>>d


Which is not method of the request object - an instance of HttpServletRequest.
a. sendRedirect(url)
b. getSession()
c. getCookies()
d. getParameterValues(name) - CORRECT ANSWER>>>>a


What are benefits of implements ModelDriven for action class? Choose 2 Select one or more:
a. All of the others
b. It depends on how many many model objects in application.
c. Struts will then populate the fields of this object with the request parameters, and this object
will be placed on top of the ValueStack once the action is executed.
d. Validation will also be performed on driven model object, instead of the action. - CORRECT
ANSWER>>>>c d


You can use the JSTL choose tag to perform conditional processing that's similar to an if
statement only in Java. Select one: a. True
b. False - CORRECT ANSWER>>>>b


What are benefits of implements ModelDriven for action class? Choose 2 Select one or more:
a. It depends on how many many model objects in application.
b. All of the others
c. Struts will then populate the fields of this object with the request parameters, and this object
will be placed on top of the ValueStack once the action is executed.
d. Validation will also be performed on driven model object, instead of the action. - CORRECT
ANSWER>>>>c d

,Which of the following is not a directive in JSP?
a. page
b. export
c. include
d. taglib - CORRECT ANSWER>>>>b


Which statement is true if the doStartTag method returns EVAL_BODY_BUFFERED ? Select
one:
a. The doAfterBody method is NOT called.
b. It is never legal to return EVAL_BODY_BUFFERED from doStartTag.
c. The tag handler must implement BodyTag.
d. The setBodyContent method is called once. - CORRECT ANSWER>>>>d


How many numbers are printed, when the following JSTL code fragment is executed? Select the
one correct answer.
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> ${item}
a. 11
b. 1
c. 5
d. 6 - CORRECT ANSWER>>>>d


Which of the following files is the correct name and location of deployment descriptor of a web
application?. Assume that the web application is rooted at \doc-root. Select the one correct
answer. Select one: a. \doc-root\dd.xml
b. \doc-root\web.xml
c. \doc-root\WEB_META\web.xml
d. \doc-root\WEB_INF\dd.xml
e. \doc-root\WEB-INF\web.xml - CORRECT ANSWER>>>>e


If ${snapshot} returns a correct connection to the database, the following statement will display:


Page | 3

, <sql:query dataSource="${snapshot}" var="result">
SELECT * FROM Students;
</sql:query>
<c:forEach var="row" items="${result.row}">
<c:out value="${row.stuId}" />
</c:forEach Select one:
a. The list of values of stuId in Students table.
b. Nothing
c. None of the other.
d. An error. - CORRECT ANSWER>>>>d

Which following methods of HttpServlet class stores a resource under the request URL?
a. doPut
b. doGet
c. doPost
d. doDelete
e. doHead
f. doTrace - CORRECT ANSWER>>>>a
If true value is passed in the element then it suggests that the attribute needs to be
evaluated at the time of request or during run time or dynamically. Select one: a. required
b. rtexprvalue
c. name
d. attribute - CORRECT ANSWER>>>>b




What gets printed when the following expression is evaluated? Select the one correct
answer.${(1==2) ? 4 : 5} a. 2
b. 3
c. 4
d. 5 - CORRECT ANSWER>>>>d

Geschreven voor

Vak

Documentinformatie

Geüpload op
12 maart 2026
Aantal pagina's
43
Geschreven in
2025/2026
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

$23.99
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Maak kennis met de verkoper
Seller avatar
TESTBANKNURSEHUB
4.0
(2)

Maak kennis met de verkoper

Seller avatar
TESTBANKNURSEHUB Chamberlain College Of Nursing
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
8
Lid sinds
8 maanden
Aantal volgers
0
Documenten
3097
Laatst verkocht
2 weken geleden
your document plug

I offer all types of documents notes, exams and study guide practice exams. Feel free to contact me for any clarification and document prices.

4.0

2 beoordelingen

5
0
4
2
3
0
2
0
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen