Home / CSE MCQs / JSP - CSE ::

CSE MCQs :: JSP - CSE

  1. Which option is true about session scope?
  2. A.
    Objects are accessible only from the page in which they are created
    B.
    Objects are accessible only from the pages which are in same session
    C.
    Objects are accessible only from the pages which are processing the same request
    D.
    Objects are accessible only from the pages which reside in same application

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. Which of the scripting of JSP not putting content into service method of the converted servlet?
  4. A.
    Declarations
    B.
    Scriptlets
    C.
    Expressions
    D.
    None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. Why is XML a good way to transfer text-based data from one program or tool to another?
  6. A.
    XML imposes important limitations on the receiving program or tool
    B.
    The receiving program or tool can use the XML tagging information to determine how to best handle the incoming data
    C.
    XML tags offer an extra level of security
    D.
    XML tags specify to the receiving program or tool exactly how to format and display the data

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. The method forward(request, response) will
  8. A.
    return back to the same method from where the forward was invoked
    B.
    not return back to the same method from where the forward was invoked and the web pages navigation continues
    C.
    Both A and B are correct
    D.
    None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. The difference between Servlets and JSP is the ¦¦¦¦¦.
  10. A.
    translation
    B.
    compilation
    C.
    syntax
    D.
    Both A and B

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. Which of the following are the valid scopes in JSP?
  12. A.
    request, page, session, application
    B.
    request, page, session, global
    C.
    response, page, session, application
    D.
    request, page, context, application

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. . JSP includes a mechanism for defining ¦¦¦¦¦¦¦¦¦¦. or custom tags.
  14. A.
    static attributes
    B.
    local attributes
    C.
    dynamic attributes
    D.
    global attributes

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. Which describes best an EJB handle?
  16. A.
    An EJB handle is used to handle exceptions when accessing EJB objects
    B.
    An EJB handle is used to store a reference to a specific EJB object
    C.
    An EJB handle is part of the Home interface
    D.
    An EJB handle is used for local references inside the EJB container

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. Why DB connections are not written directly in JSPs?
  18. A.
    Response is slow
    B.
    Not a standard J2EE architecture
    C.
    Load Balancing is not possible
    D.
    Both B and C

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. How many jsp implicit objects are there and these objects are created by the web container that are available to all the jsp pages?
  20. A.
    8
    B.
    9
    C.
    10
    D.
    7

    View Answer

    Workspace

    Discuss Discuss in Forum