JSP Quiz 5S2C Home « JSP Quiz 5

The questions in this quiz on JavaServer Pages are on the topics covered in the fifth lesson of the JSP 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.

JSP Lessons Description Quiz Info.
Lesson 1 - Introduction to JSPIn this lesson we begin our studies of using JavaServer Pages (JSPs).Quiz1
6 questions
Lesson 2 - JSP LifecycleIn this lesson we make a much deeper inpsection of JSPs by looking at the JSP lifecycle and the mechanics of how a JSP is translated into a full-blown servlet.Quiz2
7 questions
Lesson 3 - JSP Page AnatomyIn this lesson we look at the anatomy of JSP by investigating the various components that can be used within a JSP page.Quiz3
7 questions
Lesson 4 - Implicit ObjectsIn this lesson is all about the implicit objects available for use with JSP.Quiz4
5 questions
Lesson 5 - JSP DirectivesIn this lesson we will take a much closer look at the page and include directives which along with the taglib directive are the only directives which can be included in a JSP page.This quiz.
6 questions
Lesson 6 - Our First ServletIn this lesson we look at the different Java-based scripting elements available and how we can use them.Quiz6
6 questions
Lesson 7 - JavaBean Standard ActionsIn this lesson we look at jsp standard actions that relate to JavaBeans and how to use them within our JSP pages.Quiz7
6 questions
Lesson 8 - Other JSP Standard ActionsIn our second lesson on JSP standard actions we look at the jsp:include, jsp:forward and jsp:param standard actions and how to use them.Quiz8
5 questions

JavaServer Pages Quiz

The quiz below tests your knowledge of the material learnt in the JSP Directives lesson of the JSP section of the site.

Question 1 : What is the page directive used for?
- The <code>page</code> directive is used to instruct the translator about characteristics of the JSP page it is contained within.
Question 2 : Where do we place a page directive within a JSP page?
- The <code>page</code> directive can be placed anywhere within a JSP page. The exception to this rule is when the JSP page contains either the <code>contentType</code> or <code>pageEncoding</code> attributes. If these attributes are present they must precede any template data and data sent using Java code.
Question 3 : How many page directives are allowed within a JSP page?
- You can have multiple <code>page</code> directives within a JSP page.
Question 4 :How many page directive attributes are there?
- There are 15 <code>page</code> directive attributes.
Question 5 :What type of files can we include in a JSP page using the page directive?
- We can include both HTML and JSP files within a JSP page using the <code>errorPage</code> directive
Question 6 : What are pages included using the page directive commonly referred to as?
- Pages included using the <code>page</code> directive are commonly referred to as fragments.
Quiz Progress Bar Please select an answer

What's Next?

The next quiz is on Java-based scripting elements.