Tag: web technology

Questions Related to web technology

Which of the following defines the method for the client to create, remove, and find EJB objects of the same type

  1. Remote Interface

  2. Bean Interface

  3. Home Interface

  4. Bean Class


Correct Option: C
  1. JSP files,Class files for servlets

  2. GIF and HTML files

  3. Deployment Descriptor

  4. All of above


Correct Option: D

Name the http method used to send resources to the server

  1. FTP method

  2. PUT method

  3. WRITE method

  4. COPY method


Correct Option: B
  1. Codes starting from 200

  2. Codes starting from 300

  3. Codes starting from 400

  4. Codes starting from 500


Correct Option: C
Explanation:

To answer this question, the user needs to know about HTTP status codes and their meanings.

HTTP status codes are three-digit numbers that represent the response status of a request made by a client to a server. The first digit of the status code defines the class of response, while the last two digits do not have any categorization role.

The status codes starting with 4xx represent an error in the request made by the client, while the status codes starting with 5xx indicate an error on the server side.

Therefore, the correct answer is:

The Answer is: C. Codes starting from 400

Name the location of compiled class files within a war file

  1. /META-INF/classes

  2. /classes

  3. /root/classes

  4. /WEB-INF/classes


Correct Option: D

Name the class that includes the getSession method that is used to get the HttpSession object

  1. HttpServletRequest

  2. HttpServletResponse

  3. SessionContext

  4. SessionConfig


Correct Option: A

AI Explanation

To answer this question, you need to understand the classes in Java Servlet API that are related to handling HTTP requests and responses.

The correct answer is A) HttpServletRequest. This class includes the getSession method that is used to get the HttpSession object.

Option A) HttpServletRequest - This option is correct because the HttpServletRequest class is part of the Java Servlet API and provides methods to handle HTTP requests. It includes the getSession method, which returns the HttpSession object associated with the request.

Option B) HttpServletResponse - This option is incorrect because the HttpServletResponse class is used to handle HTTP responses, not requests. It does not include the getSession method.

Option C) SessionContext - This option is incorrect. The SessionContext interface is part of the Enterprise JavaBeans (EJB) API and is used to manage EJB sessions, not HTTP sessions.

Option D) SessionConfig - This option is incorrect. There is no standard Java Servlet API class named SessionConfig.

  1. CONNECT method

  2. COMPARE method

  3. OPTIONS method

  4. TRACE method


Correct Option: B

WSDL stands for

  1. Web Server Description Language

  2. Web Server Descriptor Language

  3. Web Services Description Language

  4. Web Services Descriptor Language


Correct Option: C
  1. virtual methods

  2. Overloaded methods

  3. Overridden methods

  4. All the Above


Correct Option: D