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.

16 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

What is the extension used for web user controls in ASP.NET 2.0?

  1. .aspx
  2. asux
  3. ascx
  4. asmx
Question 2 Multiple Choice (Single Answer)

How many number of directives are found in extension used for web user controls in ASP.NET 2.0?

  1. 10
  2. 11
  3. 12
  4. 13
Question 3 Multiple Choice (Single Answer)

Which of the following is the only attribute of @Implements page directive of extension used for web user controls in ASP.NET 2.0?

  1. VirtualPath
  2. Namespace
  3. Src
  4. Inherits
Question 4 Multiple Choice (Single Answer)

Which of the folowing attributes of @Page directive references code-behind file with which the page is associated?

  1. CodeFile
  2. CodePage
  3. ClassName
  4. Description
Question 5 Multiple Choice (Single Answer)

Choose the order of the main page events.

  1. Load, Init, Render, Unload
  2. Init, Pre-Render, Load, Unload
  3. Init, Load, Pre-Render, Unload
  4. Load, Init, Pre-Render, Unload
Question 6 Multiple Choice (Single Answer)

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?

  1. ViewState
  2. Pre-Render
  3. PostBack
  4. Cross-Page Posting
Question 7 Multiple Choice (Single Answer)

The ASP.NET 2.0 Application Folder used to store your classes, .wsdl files and typed datasets is,

  1. \App_Code
  2. \App_Data
  3. \App_Theme
  4. \App_Browsers
Question 8 Multiple Choice (Single Answer)

The Global.asax event triggered when a user requests something from the Application for the first time is,

  1. Application_Start
  2. Session_Start
  3. Application_BeginRequest
  4. Session_OnBegin
Question 9 Multiple Choice (Single Answer)

What are the main components of JSF?

  1. Client UI component, Bean management, Client-side validation and Maintaining cookies
  2. UI components,Handling events, Server-side validation, Data conversion, and Page navigation
  3. It does not have any components, it is just a framework
  4. Web container, Bean container, EIS container
Question 10 True/False

JSF is supporting internationalization and accessibility; and providing extensibility for all these features.

  1. True
  2. False
Question 11 Multiple Choice (Single Answer)

Who are all playing JSF Framework role?

  1. Page authors, Application developers, Component writers, Application architects, and Tools vendors
  2. Pagination, Event handling, Server-side validation and event handler
  3. Business component, web component, Bean component and Client component
  4. None of the above
Question 12 True/False

A backing bean can also define methods that perform functions associated with a component.

  1. True
  2. False
Question 13 Multiple Choice (Single Answer)

What are the different kinds of Bean Scopes in JSF?

  1. Request Scope, Session Scope, Application Scope
  2. Request Scope, Session Scope, Application Scope, Page Scope
  3. Request Scope, Session Scope, Application Scope, Page Scope, Response Scope
  4. Response Scope, Session Scope, Application Scope
Question 14 Multiple Choice (Single Answer)

Where do you declare the managed beans, Message Bundle and the page navigation related stuffs in JSF?

  1. face-config.xml
  2. Web.xml
  3. Sql-mapper.xml
  4. faces-config.xml
Question 15 Multiple Choice (Single Answer)

What are the JSF life-cycle phases?

  1. Restore view, Apply request values, Process validations, Update model values, Invoke application, Render response
  2. Init, service, destroy
  3. Restore view, Process validations, Invoke application, Render response
  4. None of the above
Question 16 Multiple Choice (Single Answer)

what is Java Server Faces (JSF)?

  1. It is a database server for communication with the web applications
  2. It is a server-side user interface component framework for Java technology-based web applications
  3. It is a server-side script for accessing database
  4. It is a client-side user interface component developed,using javascript and xml