Java SCWCD, OCWCD Quiz 4 - SCWCD Quiz | OCWCD Quiz | OCWCD Online Test
Finish Quiz
0 of 20 questions completed
Questions:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
Information
Java SCWCD, OCWCD Quiz 4 – SCWCD Quiz | Free Java OCWCD Quiz | Java OCWCD Online Test , Free Java SCWCD/OCWCD Quiz, Online Java, online Test Quiz 4. Java SCWCD/OCWCD Quiz 4 Question and Answers 2019. Java online Test Quiz 4. Java SCWCD/OCWCD Quiz 4 Free Mock Test 2019. Java SCWCD/OCWCD Quiz 4 Question and Answers in PDF. The Java online mock test paper is free for all students. Spring Online is very useful for exam preparation and getting for Rank. Java SCWCD/OCWCD Quiz 4 Question and Answers in English. Java SCWCD/OCWCD Mock test for topic via SCWCD/OCWCD Mode. Here we are providing Java SCWCD/OCWCD Quiz in English Now Test your self for “SCWCD/OCWCD Online Quiz in English” Exam by using below quiz…
This paper has 20 questions.
Time allowed is 25 minutes.
The Java SCWCD/OCWCD Mock Test is Very helpful for all students. Now Scroll down below n click on “Start Quiz” or “Start Test” and Test yourself.
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading...
You must sign in or sign up to start the quiz.
You have to finish following quiz, to start this quiz:
Results
0 of 20 questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 points, (0)
Average score |
|
Your score |
|
Categories
- Not categorized 0%
Pos. | Name | Entered on | Points | Result |
---|---|---|---|---|
Table is loading | ||||
No data available | ||||
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- Answered
- Review
-
Question 1 of 20
1. Question
You are creating an error page that provides a user-friendly screen whenever a server exception occurs. You want to hide the stack trace, but you do want to provide the exception’s error message to the user so the user can provide it to the customer service agent at your company. Which EL code snippet inserts this error message into the error page?
Correct
Incorrect
-
Question 2 of 20
2. Question
Which statement is true if the doStartTag method returns EVAL_BODY_BUFFERED ?
Correct
Incorrect
-
Question 3 of 20
3. Question
Which basic authentication type is optional for a J2EE 1.4 compliant web container?
Correct
Incorrect
-
Question 4 of 20
4. Question
Which one directives are applicable only to tag files?
Correct
Incorrect
-
Question 5 of 20
5. Question
Given:
1. package com.example;
2.
3. public abstract class AbstractItem {
4. private String name;
…
13. }
Assume a concrete class com.example.ConcreteItem extends
com.example.AbstractItem. A servlet sets a session-scoped attribute called “item” that
is an instance of com.example.ConcreteItem and then forwards to a JSP page. Which
one is valid standard action invocations that expose a scripting variable to the JSP
page?Correct
Incorrect
class=”com.example.AbstractItem” scope=”session” /> -
Question 6 of 20
6. Question
Which JSTL code snippet can be used to import content from another web resource?
Correct
Incorrect
-
Question 7 of 20
7. Question
A developer chooses to avoid using SingleThreadModel but wants to ensure that data is updated in a thread-safe manner. Which one can support this design goal?
Correct
Incorrect
-
Question 8 of 20
8. Question
For which one events can web application event listeners be registered?
Correct
Incorrect
-
Question 9 of 20
9. Question
You need to store a floating point number, called Tsquare, in the session scope. Which one code snippets allow you to retrieve this value?
Correct
Incorrect
-
Question 10 of 20
10. Question
Given: String value = getServletContext().getInitParameter(“foo”); in an HttpServlet
and a web application deployment descriptor that contains:
foo
frodo
Which one are true?Correct
Incorrect
-
Question 11 of 20
11. Question
You want to create a valid directory structure for your Java EE web application, and you want to put your web application into a WAR file called MyApp.war. Which one are true about the WAR file?
Correct
Incorrect
-
Question 12 of 20
12. Question
Given:
11.
12.catalog
13./catalogTemplate.jsp
10
15.
Which one are true?Correct
Incorrect
-
Question 13 of 20
13. Question
Your web application uses a simple architecture in which servlets handle requests and then forward to a JSP using a request dispatcher. You need to pass information calculated in the servlet to the JSP for view generation. This information must NOT be accessible to any other servlet, JSP or session in the webapp. Which one techniques can you use to accomplish this goal?
Correct
Incorrect
-
Question 14 of 20
14. Question
Given a Filter class definition with this method:
21. public void doFilter(ServletRequest request,
22. ServletResponse response,
23. FilterChain chain)
24. throws ServletException, IOException {
25. // insert code here
26. }
Which should you insert at line 25 to properly invoke the next filter in the chain, or the target servlet if there are no more filters?Correct
Incorrect
-
Question 15 of 20
15. Question
Which path is required to be present within a WAR file?
Correct
Incorrect
-
Question 16 of 20
16. Question
Which one security mechanisms can be directed through a sub-element of the
element in a web application deployment descriptor? Correct
Incorrect
-
Question 17 of 20
17. Question
Given an HttpServletRequest request:
22. String id = request.getParameter(“jsessionid”);
23. // insert code here
24. String name = (String) session.getAttribute(“name”);
Which one can be placed at line 23 to retrieve an existing HttpSession object?Correct
Incorrect
-
Question 18 of 20
18. Question
A developer for the company web site has been told that users may turn off cookie support in their browsers. What must the developer do to ensure that these customers can still use the web application?
Correct
Incorrect
-
Question 19 of 20
19. Question
Which security mechanism uses the concept of a realm?
Correct
Incorrect
-
Question 20 of 20
20. Question
You are developing several tag libraries that will be sold for development of thirdparty web applications. You are about to publish the first three libraries as JAR files: container-tags.jar, advanced-html-form-tags.jar, and basic-html-form-tags.jar. Which one techniques are appropriate for packaging the TLD files for these tag libraries?
Correct
Incorrect