Jsp Basics Quiz 2, Jsp Basics Online Test Series 2, JSP Mock 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
Jsp Basics Quiz 2, Jsp Basics Online Test Series 2, JSP Mock Test Java online Test Quiz 2. Java OOPs Quiz 2 Free Mock Test 2024. JSP Basics Quiz 2 Question and Answers in PDF. The Java online mock test paper is free for all students. JavaServer Pages (JSP) is a technology for developing Webpages that supports dynamic content. This helps developers insert java code in HTML pages by making use of special JSP tags, most of which start with <% and end with %>. Here we are providing JSP Basics Quiz in English Now Test your self for “JSP Basics in English” Exam by using below quiz…
This paper has 20 questions.
Time allowed is 25 minutes.
The Java OOPs 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
Which of these is true about include directive. Select the one correct answer.
Correct
It is not required that the included file has jspf extension. Hence a is incorrect. The XML syntax of include directive is
Incorrect
It is not required that the included file has jspf extension. Hence a is incorrect. The XML syntax of include directive is
-
Question 2 of 20
2. Question
A JSP page needs to generate an XML file. Which attribute of page directive may be used to specify that the JSP page is generating an XML file.
Correct
contentType attribute is used to generate XML. The syntax will look like –
<%@page contentType="text/xml"/>Incorrect
contentType attribute is used to generate XML. The syntax will look like –
<%@page contentType="text/xml"/> -
Question 3 of 20
3. Question
Is the following JSP code legal? Select the one correct statement.
<%@page info="test page" session="false"%>
<%@page session="false"%>Correct
Except the import attribute of page directive, all the other attributes of page directive cannot be specified more than once. In this example session attribute is specified twice.
Incorrect
Except the import attribute of page directive, all the other attributes of page directive cannot be specified more than once. In this example session attribute is specified twice.
-
Question 4 of 20
4. Question
JSP pages have access to implicit objects that are exposed automatically. One such object that is available is request. The request object is an instance of which class?
Correct
Incorrect
-
Question 5 of 20
5. Question
A JSP page uses the java.util.ArrayList class many times. Instead of referring the class by its complete package name each time, we want to just use ArrayList. Which attribute of page directive must be specified to achieve this. Select the one correct answer.
Correct
The syntax will look like –
<%@page import="java.util.ArrayList"/>Incorrect
The syntax will look like –
<%@page import="java.util.ArrayList"/> -
Question 6 of 20
6. Question
JSP pages have access to implicit objects that are exposed automatically. Name the implicit object that is of type HttpSession.
Correct
Incorrect
-
Question 7 of 20
7. Question
JSP pages have access to implicit objects that are exposed automatically. Name the implicit object that is of type HttpSession.
Correct
Implicit object session is of type HttpSession.
Incorrect
Implicit object session is of type HttpSession.
-
Question 8 of 20
8. Question
Which of these are true. Select the two correct answers.
Correct
Incorrect
-
Question 9 of 20
9. Question
Name the implicit variable available to JSP pages that may be used to access all the other implicit objects.
Correct
This pageContext object is an instance of type javax.servlet.jsp.PageContext, and provides methods like getPage(), getRequest(), etc. to access other input variables.
Incorrect
This pageContext object is an instance of type javax.servlet.jsp.PageContext, and provides methods like getPage(), getRequest(), etc. to access other input variables.
-
Question 10 of 20
10. Question
Which of the following are examples of JSP directive. Select the two correct answers.
Correct
Incorrect
-
Question 11 of 20
11. Question
JSP is part of BEA WebLogic?
Correct
Incorrect
-
Question 12 of 20
12. Question
Which of the following is server side programming languages?
1.HTML
2.JavaScript
3.JSP
4.SevletsCorrect
Incorrect
-
Question 13 of 20
13. Question
What JSP is basically used today
Correct
Incorrect
-
Question 14 of 20
14. Question
We must have configure and map all jsp files into web.xml
Correct
Incorrect
-
Question 15 of 20
15. Question
Sorting Coins You have a number of different coins that need to be seperated into denominations, select from the list what you think would be the appropriate JSP construct for the task.
Correct
Thats correct a selection would allow a single outcome, one for each of the denominations
Incorrect
Thats correct a selection would allow a single outcome, one for each of the denominations
-
Question 16 of 20
16. Question
What JSP stand for
Correct
Incorrect
-
Question 17 of 20
17. Question
IBM WebSphere is?
1. A full-featured Web Application Server
2 It provides supports to the Servlet and JSP
3. It includes pooled database access for DB2 and Oracle Relational Databases,
4. Prtovide support for EJB .
Choose correct oneCorrect
Incorrect
-
Question 18 of 20
18. Question
JSP is part of Apache Tomcat?
Correct
Incorrect
-
Question 19 of 20
19. Question
JSP can run by
Correct
Incorrect
-
Question 20 of 20
20. Question
File Entries Imagine that you have a customer file and that you wish to count the total number of records. Which of the following JSP structures do you think would be appropriate to use?
Correct
Yes, an iteration would allow you to count through the file one record at a time until the end of file was reached. A typical event would be to increment a counter for each record.
Incorrect
Yes, an iteration would allow you to count through the file one record at a time until the end of file was reached. A typical event would be to increment a counter for each record.