JSTL Quiz 1S2C Home « JSTL Quiz 1

The questions in this quiz on JavaServer Pages Standard Tag Libraries are on the topics covered in the second and third lessons of the JSTL section of the site. The table below lists the lesson used for each quiz, a description of the lesson content and the quiz number and questions associated with that lesson.

Lesson Summary

Click on a lesson in the table to go to that lesson for a refresher on the topics for that quiz.

Click on a quiz in the table to go straight to the quiz for a particular lesson.

JSTL Lessons Description Quiz Info.
Lesson 2 - Core Tag libraryIn our first lesson on JSTL libraries we look at the Core tag library.This quiz.
11 questions
Lesson 3 - XML Tag libraryIn our second lesson on JSTL libraries we look at the XML tag library.
Lesson 4 - II8n Tag libraryIn our third lesson on JSTL tag libraries we look at the II8n tag library.Quiz2
11 questions
Lesson 5 - Database Tag libraryIn our fourth lesson on JSTL tag libraries we look at the Database tag library.
Lesson 6 - Functions Tag libraryIn our final lesson on JSTL tag libraries we look at the Functions tag library.Quiz3
10 questions
Lesson 7 - Creating Custom TagsIn this JSTL lesson we look at creating our own custom tags for when the functionality we need is not present in the JSTL tag libraries.
Lesson 8 - EL FunctionsIn this JSTL lesson we look at EL Functions.Quiz4
10 questions
Lesson 9 - Tag FilesIn our final lesson on JSTL we look at Tag Files.

JSTL Quiz 1

The quiz below tests your knowledge of the material learnt in the second and third lessons of the JSTL section of the site.

Question 1 : How many Core tag library actions are there?
- The <code>Core</code> tag library consists of fourteen actions.
Question 2 : We can use the target and property attributes of the </c:set> action to assign a new property value to any object?
- The object defined by the <code>target</code> attribute must be either a JavaBean or a <code>java.util.Map</code> object.
Question 3 : The <c:remove> tag removes a scoped object?
- The <code>c:remove</code> tag removes the scoped variable that references the object so any other scoped variables that access the object can still do so.
Question 4 : What type of error object is thrown from the <c:catch> tag?
- A <code>java.lang.Throwable</code> object is thrown by the <code>c:catch</code> tag.
Question 5 : Which type of Java conditional statement is the <c:choose> tag similar to?
- The <code>c:choose</code> tag is similar to the <code>switch</code> Java conditional statement.
Question 6 : Which Core iterator tag allows us to iterate over the body content a set number of times?
- The <code>c:forEach</code> iterator tag allow us to iterate over the body content a set number of times.
Question 7 : How many XML tag library actions are there?
- The <code>XML</code> tag library consists of ten actions.
Question 8 : Which XML attribute allows us to specify XPath expressions?
- The <code>select</code> attribute allows us to specify <code>XPath</code> expressions.
Question 9 : The XPath expression language is global to all JSTL actions?
- The <code>XPath</code> expression language is local to XML actions and NOT global to all JSTL actions.
Question 10 : An XPath variable must reference a java.lang.Object instance in any of the supported scopes?
- An <code>XPath</code> must reference a <code>java.lang.Object</code> instance in any of the supported scopes.
Question 11 : XPath expression bindings are mapped differently to their EL Implicit Objects counterparts?
- <code>XPath</code> expression bindings are mapped the same as their EL Implicit Objects counterparts.
Quiz Progress Bar Please select an answer

What's Next?

The next quiz is on fourth and fifth lessons of the JSTL section of the site.