Java EE Web Frameworks and Design Patterns

Covers J2EE/Java EE design patterns, Struts framework, JavaServer Faces (JSF), and core J2EE APIs

16 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which of this is used for performing standard directory operations.

  1. JNDF
  2. JNDI
  3. JNDA
  4. JNDD
Question 2 Multiple Choice (Single Answer)

Which of this provide a standard interface for demarcating transactions.

  1. JTA
  2. JIA
  3. JEA
  4. JAI
Question 3 Multiple Choice (Single Answer)

Which of this is used for processing XML documents using DOM,SAX, XLST.

  1. JXMLP
  2. JAXP
  3. JAP
  4. JXP
Question 4 Multiple Choice (Single Answer)

Which tag must enclose all other tags on a Faces JSP page?

  1. <f:faces>
  2. <f:view>
  3. <h:jsf>
  4. <h:view>
Question 5 Multiple Choice (Single Answer)

Which JSF component can be used to create tables?

  1. HtmlPanelGroup
  2. HtmlTable
  3. UITable
  4. HtmlPanelGrid
Question 6 Multiple Choice (Single Answer)

What type of events does the HtmlCommandButton generate?

  1. Command events
  2. Submit events
  3. Action events
  4. Click events
Question 7 Multiple Choice (Single Answer)

Which JSF expression references an application's context path?

  1. #{contextPath}
  2. #{requestContextPath}
  3. #{facesContext.externalContext.requestContextPath}
  4. ${request.contextPath}
Question 8 Multiple Choice (Single Answer)

How do you integrate JSF components with cascading style sheets (CSS)?

  1. With the JSF configuration file
  2. With the styleClass property
  3. With the cssClass property
  4. With the class property
Question 9 Multiple Choice (Single Answer)

which Method of ActionForm is used for validation ?

  1. validate
  2. validation
  3. both
  4. No such method to validate the Form
Question 10 Multiple Choice (Single Answer)

Struts is base on which framework?

  1. MVC
  2. MVC2
  3. both
  4. none of them
Question 11 Multiple Choice (Single Answer)

Intercepting Filter design pattern is in the _______________

  1. Presentation Tier
  2. Integration Tier
  3. Business Tier
  4. Database
Question 12 Multiple Choice (Single Answer)

An 'Intercepting filter' design pattern can be implemented to ______

  1. to preprocess requests
  2. to post process responses
  3. to preprocess responses
  4. to preprocess and post process requests and responses
Question 13 Multiple Choice (Single Answer)

If we want to avoid duplicate coding in view and separate out view content and view navigation we should use ________ design pattern

  1. Intercepting Filter
  2. Front Controller
  3. Data Acces Object
  4. Business Delegate
Question 14 Multiple Choice (Single Answer)

Business service invocation from presentation tier deteriorates network performance. To prevent this we may implement ___________ design pattern

  1. Session Facade
  2. Builder
  3. Business Delegate
  4. Decorator Pattern
Question 15 Multiple Choice (Single Answer)

Enterprise beans encapsulate business logic and business data and expose their interfaces, and thus the complexity of the distributed services to the client tier.To prevent this ________ design pattern should be adopted.

  1. Data Access Object
  2. Session Facade
  3. Mediator Pattern
  4. Business Delegate
Question 16 True/False

'Data Access Object' is an object that talks to the underlying database and provides other application components. It serves as a clean, simple and common interface for accessing the data, and for reducing the dependency of other components on the details of using the database

  1. True
  2. False