EL Quiz 4S2C Home « EL Quiz 4

The questions in this quiz on Expression Language are on the topics covered in the fourth lesson of the EL 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.

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.

EL Lessons Description Question Range
Lesson 1 - Introduction to ELIn our first lesson on the Expression Language we introduce EL and write our first JSP using EL.Quiz1
5 questions
Lesson 2 - EL OperatorsThis lesson is about the symbols used in EL for mathematical and logical manipulation which are known as EL operators.Quiz2
6 questions
Lesson 3 - EL Property AccessIn this lesson we learn how to use EL to access object properties and attribute values from any scope.Quiz3
5 questions
Lesson 4 - EL Implicit ObjectsIn this lesson we learn about EL implicit objects and their usage.This quiz.
5 questions
Lesson 5 - Configuring ELIn this lesson we finish our study of the Expression Language by looking at how we can configure our pages for script-free EL or non-EL use.Quiz5
5 questions

Expression Language Quiz

The quiz below tests your knowledge of the material learnt in the EL Implicit Objects lesson of the EL section of the site.

Question 1 : Which EL implicit object is not of type java.util.Map?
- The <code>pageContext</code> EL implicit object is of type <code>javax.servlet.jsp.PageContext</code>, all other EL implicit objects are of type <code>java.util.Map</code>.
Question 2 : Using array like syntax such as ${header.accept[1]} we can access secondary header values using the header EL implicit object.?
- We must use the <code>headerValues</code> EL implicit object to access secondary header values, using syntax such as <code>${headerValues.accept[1]}</code>.
Question 3 : The initParam EL implicit object allows access to servlet initialisation parameters?
- The <code>initParam</code> EL implicit object allows access to context initialisation parameters, not servlet initialisation parameters.
Question 4 : When using the cookie EL implicit object there is no need to iterate over the javax.servlet.http.HTTPServletRequest object to get to the required name?
- When using the <code>cookie</code> EL implicit object there is no need to iterate over the <code>javax.servlet.http.HTTPServletRequest</code> EL implicit object and we can access the name directly using synyax such as <code>${cookie.JSESSIONID.value}</code>.
Question 5 : Which of the following EL implicit object contains variables with the shortest scope?
- The <code>pageScope</code> EL implicit object refers to the current JSP page and so any variables contained within it would have the shortest scope.
Quiz Progress Bar Please select an answer

What's Next?

The next quiz is on Configuring EL.