Sunday, January 13, 2013

Servlet QUIZ Questions -1



    1. Which of the following are interfaces? (3 correct answers)
      1. Servlet
      2. HttpServlet
      3. ServletRequest
      4. HttpServletRequest
ANS : a,c,d

    1. Which of the following are abstract classes? (2 correct answers)
      1. Servlet
      2. HttpServlet
      3. GenericServlet
      4. HttpServletRequest
ANS: b,c

    1. Which of the following statements is true? (1 correct answer)
      1. HttpServlet extends GenericServlet that implements Servlet.
      2. HttpServlet extends GenericServlet that extends Servlet.
      3. HttpServlet implements GenericServlet that extends Servlet.   
ANSWER : a

    1. Which of the following statements are true? (2 correct answers)
      1. HttpServlet IS-A GenericServlet.
      2. HttpServlet IS-A Servlet.
      3. HttpServlet IS-A ServletRequest.
Answer : a,b

    1. Here are some actions taken by the Container when a client request arrives. Place them in the correct order starting from what happens first.
      1. Calls the void service(HttpServletRequest, HttpServletResponse) method of the servlet.
      2. Creates a pair of request and response objects.
      3. Finds the correct servlet based on the URL.
      4. Creates a new thread or allocates an existing thread to the client’s request.
Answer : b,c,d,a

No comments:

Post a Comment

Thank you share the knowledge U have with in U.