
PRJ103_PART5

Quiz
•
Other
•
University
•
Easy
Phạm Ngân
Used 1+ times
FREE Resource
131 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which of the following are potential legal of JSP source ? (choose 2)
[A]
<jsp:useBean id = "beanName1" class="a.b.MyBean"type="a.b.Myinterface"/>
[B]
<% String myValue = "myValue";%>
<jsp:setProperty name ="beanName1" property="soleProp" value = "<%=myValue%>"/>
[C]
<%String className = "a.b.MyBean";%>
<jsp:useBean id = "beanName2" class="<%=className>"/>
[D]
<%String propName = "soleProp"; %>
<jsp:getProperty name = "beanName1" property="<%=propName>" />
[E]
<%String beanName = "beanName3"; %>
<jsp:useBean id = "<%=beanName3%>" class="a.b.MyBean" />
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given that a servlet has been mapped to /account/*.
Identity the HttpServletRequest methods that will return the/myapp segementforthe URI: /myapp/account/*.
A. getPathlnfo
B. getServletPath
C. getContextPath
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Identify the method used to get an object available in a session. (Choose one)
A. get of Session
B. getValue of HttpSession
C. getAttribute of Session
D. getAttribute of HttpSession
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which jsp tag can be used to set bean property?
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the consequence of attempting to access the following JSP page?
<html>
<body>
<%!
public void JspService(HttpServletRequest request HttpServletResponse response) { outwrite("A"):
}
%>
<% outwritef("B"): %>
</body>
</html>
A. Duplicate method compilation error.
B. "A" is output to the response before "B".
C. "A" is output to the response.
D. "B" is output to the response.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
______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>
Create a free account and access millions of resources
Similar Resources on Wayground
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University