EPDA Active Recall Questions (MCQs)

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/6

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

7 Terms

1
New cards

What will happen if you forget to close a PrintWriter in a servlet?
A. Servlet crashes
B. Compilation error
C. Possible memory leak or incomplete response
D. JSP stops working

C. Possible memory leak or incomplete response

2
New cards

Which of these can handle both GET and POST methods in a servlet?
A. doService()
B. doRequest()
C. doProcess()
D. doGet() and doPost()

D. doGet() and doPost()

3
New cards

What tag defines a custom error page in JSP?
A. <jsp:error>
B. <%@ errorPage %>
C. <jsp:exception>
D. <errorPage>

B. <%@ errorPage %>

4
New cards

Which tag is used to display conditional content?
A. <c:loop>
B. <c:if>
C. <c:eval>
D. <c:out>

B. <c:if>

5
New cards

What does fn:length(list) return?
A. Number of items in list
B. Length of longest string
C. Boolean
D. Loop index

A. Number of items in list

6
New cards

Which EJB is designed to be used across multiple users with a shared state?
A. Stateless
B. Stateful
C. Singleton
D. Message-Driven

C. Singleton

7
New cards

What does @EJB do in a servlet?
A. Declares an EJB as local
B. Injects an EJB instance
C. Defines a remote interface
D. Replaces @Bean

B. Injects an EJB instance