web technology Online Quiz - 127

Description: web technology Online Quiz - 127
Number of Questions: 20
Created by:
Tags: web technology
Attempted 0/20 Correct 0 Score 0
  1. colon(:)

  2. slash(/)

  3. dot(.)

  4. All the above

Correct Option: C
  1. Create a subflow and Use Independent Flows to perform functions

  2. Create a subflow and Use Parallel Flows to perform functions

  3. Use Spilit join shape

  4. Use Spilit for each shape

Correct Option: B

What is happening behind the scenes is that your JSP is being turned into a Java file, compiled and loaded. This compilation only happens once, so after the first load, the file doesn't take long to load anymore.

  1. True

  2. False

Correct Option: A

Jsp Page can be excuted from the below, (choose multiple)

  1. Tomcat

  2. Weblogic

  3. Websphere

  4. None of the above

Correct Option: A,B,C

What tools can be used to generate the multiple views in jsp?

  1. xalan-J

  2. Saxon

  3. Jdk1.5

  4. None of the above

Correct Option: A,B

What is the difference between doing an include or a forward with a RequestDispatcher?

  1. The forward method transfers control to the designated resource, while the include method invokes the designated resource, substitutes its output dynamically in the display, and returns control to the calling page.

  2. The two methods provide the same functionality, but with different levels of persistence.

  3. The forward method is deprecated as of JSP 1.1 and the include method should be used in order to substitute portions of a dynamic display at runtime.

  4. The include method transfers control to a dynamic resource, while the forward method allows for dynamic substitution of another JPS pages output, returning control to the calling resource.

Correct Option: A

Are custom tags available in JSP 1.0? If not, how else might you implement iteration from within a JSP?

  1. Yes, but the only tags available relate to database access.

  2. No. To iterate over a collection of values, one must use scriptlet code.

  3. No, but there is a standard tag that may be used.

  4. Yes, but custom tags will not help developers create tags for use in iterating over a collection.

Correct Option: B
  1. Lookup the EJBs from within a JSP, but use the EJBs from within a basic JavaBean.

  2. Lookup and use the EJBs from a separate business delegate. The JavaBeans that work with JSP pages are clients to these business delegates and know nothing about EJB specifics.

  3. Lookup and use the EJBs from within a JSP page, but only as remote references.

  4. Lookup the EJBs from within a servlet, delegating usage to specific JSP pages.

Correct Option: B

What type of scriptlet code is better-suited to being factored forward into a servlet?

  1. Code that deals with logic that is common across requests.

  2. Code that deals with logic that is vendor specific.

  3. Code that deals with logic that relates to database access.

  4. Code that deals with logic that relates to client scope.

Correct Option: A
  1. Moving the code into your session manager.

  2. Moving the code into scriptlets.

  3. Moving the code into JavaBeans and servlets.

  4. Moving the code into a transaction manager.

Correct Option: C

Why use RequestDispatcher to forward a request to another resource, instead of using a sendRedirect?

  1. Redirects are no longer supported in the current servlet API.

  2. Redirects are not a cross-platform portable mechanism.

  3. The RequestDispatcher does not use the reflection API.

  4. The RequestDispatcher does not require a round trip to the client, and thus is more efficient and allows the server to maintain request state.

Correct Option: D

What is a benefit of using JavaBeans to separate business logic from presentation markup within the JSP environment?

  1. It allows the JSP to access middleware.

  2. It creates a cleaner role separation between the web-production team and the software development team, so that the web-production team can focus on presentation markup, while the software team can focus on building reusable software components for helpin

  3. It provides a dynamic markup environment, such that JavaBeans are integrated seamlessly with the template presentation content, in order to create the dynamic display for the client.

  4. It provides the developer with full access to the Java 2 Platform Enterprise Edition (J2EE), which is unavailable from outside the JavaBean environment.

Correct Option: B
  1. Servlets are built on JSP semantics and all servlets are compiled to JSP pages for runtime usage.

  2. JSP and servlets are unrelated technologies.

  3. Servlets and JSP are competing technologies for handling web requests. Servlets are being superseded by JSP, which is preferred. The two technologies are not useful in combination.

  4. JSPs are built on servlet semantics and all JSPs are compiled to servlets for runtime usage.

Correct Option: D

A tag library is a collection of custom tags.

  1. True

  2. False

Correct Option: A

Inside which HTML element do we put the JavaScript?

Correct Option: A

What is the correct JavaScript syntax to write "Hello World"?

  1. response.write("Hello World")

  2. "Hello World"

  3. document.write("Hello World")

  4. ("Hello World")

Correct Option: C

Where is the correct place to insert a JavaScript?

  1. The section

  2. Both the section and the section are correct

  3. The section

  4. None of the above

Correct Option: B
- Hide questions