0

web technology Online Quiz - 107

Description: web technology Online Quiz - 107
Number of Questions: 20
Created by:
Tags: web technology
Attempted 0/20 Correct 0 Score 0

Which of this is used for performing standard directory operations.

  1. JNDF

  2. JNDI

  3. JNDA

  4. JNDD


Correct Option: B

Which of this provide a standard interface for demarcating transactions.

  1. JTA

  2. JIA

  3. JEA

  4. JAI


Correct Option: A

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

  1. JXMLP

  2. JAXP

  3. JAP

  4. JXP


Correct Option: B

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


Correct Option: B

Which JSF component can be used to create tables?

  1. HtmlPanelGroup

  2. HtmlTable

  3. UITable

  4. HtmlPanelGrid


Correct Option: D

What type of events does the HtmlCommandButton generate?

  1. Command events

  2. Submit events

  3. Action events

  4. Click events


Correct Option: C

AI Explanation

To answer this question, you need to understand the purpose and behavior of the HtmlCommandButton in HTML.

The HtmlCommandButton is an HTML component that represents a clickable button on a web page. When a user clicks on the button, it generates an event.

The correct answer is:

C) Action events - The HtmlCommandButton generates action events when it is clicked. An action event is typically used to trigger a server-side action or perform some other action specified by the developer.

Which JSF expression references an application's context path?

  1. #{contextPath}

  2. #{requestContextPath}

  3. #{facesContext.externalContext.requestContextPath}

  4. ${request.contextPath}


Correct Option: C
Explanation:

To solve this question, the user needs to know about JSF expressions and how they can reference an application's context path.

Option A: #{contextPath} - This option is not correct. There is no JSF implicit object named contextPath. This option seems to be a custom attribute, which is not defined in the JSF specification.

Option B: #{requestContextPath} - This option is not correct. There is no JSF implicit object named requestContextPath. This option seems to be a custom attribute, which is not defined in the JSF specification.

Option C: #{facesContext.externalContext.requestContextPath} - This option is correct. This expression references an application's context path using facesContext.externalContext.requestContextPath. This expression is used to get the application's context path that the current request is mapped to.

Option D: ${request.contextPath} - This option is not correct. This expression is not a JSF expression. It is a JSP expression that is used to get the context path of the current request.

Therefore, the correct answer is:

The Answer is: C. #{facesContext.externalContext.requestContextPath}

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


Correct Option: B

AI Explanation

To integrate JSF components with cascading style sheets (CSS), you can use the styleClass property.

Option A) With the JSF configuration file - This option is incorrect because the JSF configuration file is used for configuring various aspects of the JSF framework, such as managed beans and navigation rules. It is not used specifically for integrating CSS with JSF components.

Option B) With the styleClass property - This option is correct because the styleClass property allows you to specify a CSS class for a JSF component. This class can be defined in an external CSS file or in a style block within the HTML page.

Option C) With the cssClass property - This option is incorrect because there is no cssClass property in JSF. The correct property to use is styleClass.

Option D) With the class property - This option is incorrect because the class property is used in regular HTML tags to specify a CSS class. However, in JSF components, you need to use the styleClass property instead.

The correct answer is B) With the styleClass property. This option is correct because the styleClass property allows you to integrate JSF components with CSS by specifying the CSS class for the component.

Which J2EE component QuoteIt project are using for Rule engine?

  1. Coustom Rule Engine

  2. Drools

  3. OpenRules

  4. JRuleEngine


Correct Option: B

Which J2EE component QuoteIt project are using for illustration?

  1. PDF Box

  2. jPod

  3. iText

  4. PDF Renderer


Correct Option: C

which Method of ActionForm is used for validation ?

  1. validate

  2. validation

  3. both

  4. No such method to validate the Form


Correct Option: A

Are we using Spring IOC in QouteIt?

  1. True

  2. False


Correct Option: B

Which version control software we are using for version control?

  1. SVN

  2. CVS

  3. VSS

  4. All of then


Correct Option: A

Struts is base on which framework?

  1. MVC

  2. MVC2

  3. both

  4. none of them


Correct Option: A

Intercepting Filter design pattern is in the _______________

  1. Presentation Tier

  2. Integration Tier

  3. Business Tier

  4. Database


Correct Option: A

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


Correct Option: D

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


Correct Option: B

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


Correct Option: C

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


Correct Option: B

'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


Correct Option: A
- Hide questions