Tag: web technology

Questions Related to web technology

  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
  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
  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
Explanation:

To answer this question, the user needs to have a basic understanding of JSP and servlets.

Option A is incorrect. Servlets and JSPs are separate technologies and are not compiled to each other.

Option B is incorrect. JSP and servlets are related technologies used for web development.

Option C is incorrect. Servlets and JSPs are complementary technologies that can be used together to handle web requests.

Option D is correct. JSPs are built on top of the Servlet API and are ultimately compiled down to servlets.

Therefore, the correct answer is:

The Answer is: D

Inside which HTML element do we put the JavaScript?


Correct Option: A
  1. response.write("Hello World")

  2. "Hello World"

  3. document.write("Hello World")

  4. ("Hello World")


Correct Option: C
  1. The section

  2. Both the section and the section are correct

  3. The section

  4. None of the above


Correct Option: B

What is the correct syntax for referring to an external script called "xxx.js"?


Correct Option: A

An external JavaScript must contain the tag

  1. True

  2. False


Correct Option: B