Advanced Java Programming (3160707) MCQs

MCQs of Java Server Faces2.0

Showing 1 to 10 out of 23 Questions
1.
What is file extension of a view state’s name which is by default loaded by facelet page.
(a) .xml
(b) .xhtml
(c) .hbm.xml
(d) .jsf
Answer:

Option (b)

2.
In Apply request values, If any of the Conversions or the Validations fail, then the current processing is terminated and the control directly goes to?
(a) Process Validations
(b) Render Response
(c) Update Model Values
(d) Invoke Application
Answer:

Option (b)

3.
During which phase, the JSF handles any application-level events, such as submitting a form / linking to another page?
(a) Process Validations
(b) Render Response
(c) Update Model Values
(d) Invoke Application
Answer:

Option (d)

4.
During which phase, the JSF builds the view, wires event handlers and validators to UI components and saves the view in the FacesContext instance?
(a) Process Validations
(b) Restore view
(c) Update Model Values
(d) Invoke Application
Answer:

Option (b)

5.
Which phase will recover the component tree?
(a) Process Validations
(b) Restore view
(c) Update Model Values
(d) Invoke Application
Answer:

Option (b)

6.
Which phase adds new parameter to recovered component tree?
(a) Apply Request Values
(b) Restore view
(c) Update Model Values
(d) Invoke Application
Answer:

Option (a)

7.
Which phase will add value of the attribute to Component tree, Generates HTML code?
(a) Process Validations
(b) Render Response
(c) Update Model Values
(d) Invoke Application
Answer:

Option (b)

8.
Which is NOT TRUE for JSF Facelet tag?
(a) No tld files used
(b) No tag classes to defined a UIComponent
(c) Comparatively slower than JSP
(d) Both A & B
Answer:

Option (c)

9.
For cross field validation or some sort of barrier to ensure state before you start a flow, we use____.
(a) FacesContext
(b) FaceletContext
(c) FacesResolver
(d) All of the mentioned
Answer:

Option (a)

10.
What does AJAX stand for?
(a) Asynchronous Java and XML
(b) Asynchronous JavaScript and XML
(c) Asynchronous JavaScript and XHTML
(d) Asynchronous Java and XHTML
Answer:

Option (b)

Showing 1 to 10 out of 23 Questions