Tag: architecture

Questions Related to architecture

A JSP page can include another JSP page but not an HTML page

  1. True

  2. False


Correct Option: B

What are the different scopes available?

  1. page, request & session

  2. page, request & application.

  3. page, request, session & application

  4. request, session & application.


Correct Option: C
  1. only request, response

  2. only request, response & application

  3. request, response, session & application

  4. None


Correct Option: C
  1. Query length is limited in POST, not limited in GET.

  2. POST is secured whereas data is been submitted as part of URL in GET (not secured).

  3. By using POST method, we cannot submit the form.

  4. None


Correct Option: B

Through a ServletContext object, servlets can interact with their enviornment.

  1. True

  2. False


Correct Option: A

To get an object of PrintWriter, we use getWriter() method of class _____________

  1. HttpSession

  2. HttpServletResponse

  3. HttpServletRequest

  4. None


Correct Option: B