Quiz
Question 1 (1 point)
Saved
Which scope is used on managed bean which is to be
created/instantiated for every client session?
Question 1 options:
a) @SessionScoped
b) @RequestScoped
c) @ViewScoped
d) @ApplicationScoped
Question 2 (1 point)
Saved
Which of the following is true about JSF?
Question 2 options:
a) JSF supports I18n (internationalization).
b) JSF can be considered as an improvement over JSP.
c) JSF pages are stored within .xhtml files.
d) All are true.
Question 3 (1 point)
Saved
Which scope is used on managed bean which is to be
created/instantiated for every client request received?
Question 3 options:
a) @ViewScoped
b) @RequestScoped
c) @SessionScoped
d) @ApplicationScoped
Question 4 (1 point)
Saved
Which of the following has the correct syntax for invoking a
bean object's method within the XHTML tag below? (That is,
what goes after the action=?)
<f:viewAction phase="UPDATE_MODEL_VALUES" action=/>
Please see JSF Regional Inventory project for Week 3.
Question 4 options:
a) "#{inventoryController.loadInventory()}"
b) "inventoryController.loadInventory()"
c) "#{inventoryController.loadInventory}"
d) #{inventoryController.loadInventory()}
Question 5 (1 point)
Saved
Which scope is used on managed bean which is to be
created/instantiated for each XHTML GUI? This bean stays
alive as long as the user is on the same page and or has not
refreshed the page.
Question 5 options:
a) @ViewScoped
b) @RequestScoped
c) @ApplicationScoped
d) @SessionScoped
Question 6 (1 point)
Saved
In which of the following JSF phases has validators executed to
check that local values are correct.
Question 6 options:
a) Update Model Values
b) Process Validations
c) Restore View
d) Apply Request Values
Question 7 (1 point)
Saved
In which of the following JSF phases has HTTP request
parameters placed in a hash table and passed to all objects in
the component tree.
Question 7 options:
a) Restore View
b) Apply Request Values
c) Process Validations
d) Update Model Values
Question 8 (1 point)
Saved
What is false about XHMTL?
Question 8 options:
a) All others are false.
b) <!DOCTYPE> is mandatory in XHTML.
c) Attribute minimization is forbidden in XHTML.
d) Elements must always be properly nested in XHTML.
Question 9 (1 point)
Saved
Render Response is the last phase of JSF life cycle which
renders the complete response for the user.
Question 9 options:
a) True
b) False
Question 10 (1 point)
Saved
In which of the following JSF phases has setter methods of
beans called to update their values.
Question 10 options:
a) Invoke Application
b) Render Response
c) Process Validations
d) Update Model Values
Submit Quiz10 of 10 questions saved