JSF and ASP.NET Web Frameworks Quiz
Test your knowledge of Java Server Faces (JSF) and ASP.NET 2.0 web frameworks including lifecycle, components, configuration, and page events.
Questions
What is the extension used for web user controls in ASP.NET 2.0?
- .aspx
- asux
- ascx
- asmx
How many number of directives are found in extension used for web user controls in ASP.NET 2.0?
- 10
- 11
- 12
- 13
Which of the following is the only attribute of @Implements page directive of extension used for web user controls in ASP.NET 2.0?
- VirtualPath
- Namespace
- Src
- Inherits
Which of the folowing attributes of @Page directive references code-behind file with which the page is associated?
- CodeFile
- CodePage
- ClassName
- Description
Choose the order of the main page events.
- Load, Init, Render, Unload
- Init, Pre-Render, Load, Unload
- Init, Load, Pre-Render, Unload
- Load, Init, Pre-Render, Unload
Which feature of ASP.NET 2.0 enables you to submit a form and have all the control values of the form post to another page?
- ViewState
- Pre-Render
- PostBack
- Cross-Page Posting
The ASP.NET 2.0 Application Folder used to store your classes, .wsdl files and typed datasets is,
- \App_Code
- \App_Data
- \App_Theme
- \App_Browsers
The Global.asax event triggered when a user requests something from the Application for the first time is,
- Application_Start
- Session_Start
- Application_BeginRequest
- Session_OnBegin
What are the main components of JSF?
- Client UI component, Bean management, Client-side validation and Maintaining cookies
- UI components,Handling events, Server-side validation, Data conversion, and Page navigation
- It does not have any components, it is just a framework
- Web container, Bean container, EIS container
JSF is supporting internationalization and accessibility; and providing extensibility for all these features.
- True
- False
Who are all playing JSF Framework role?
- Page authors, Application developers, Component writers, Application architects, and Tools vendors
- Pagination, Event handling, Server-side validation and event handler
- Business component, web component, Bean component and Client component
- None of the above
A backing bean can also define methods that perform functions associated with a component.
- True
- False
What are the different kinds of Bean Scopes in JSF?
- Request Scope, Session Scope, Application Scope
- Request Scope, Session Scope, Application Scope, Page Scope
- Request Scope, Session Scope, Application Scope, Page Scope, Response Scope
- Response Scope, Session Scope, Application Scope
Where do you declare the managed beans, Message Bundle and the page navigation related stuffs in JSF?
- face-config.xml
- Web.xml
- Sql-mapper.xml
- faces-config.xml
What are the JSF life-cycle phases?
- Restore view, Apply request values, Process validations, Update model values, Invoke application, Render response
- Init, service, destroy
- Restore view, Process validations, Invoke application, Render response
- None of the above
what is Java Server Faces (JSF)?
- It is a database server for communication with the web applications
- It is a server-side user interface component framework for Java technology-based web applications
- It is a server-side script for accessing database
- It is a client-side user interface component developed,using javascript and xml