Sail E0 Webinar

MCQs

Total Questions : 25 | Page 2 of 3 pages
Question 11. The difference between Servlets and JSP is the ¦¦¦¦¦.
  1.    translation
  2.    compilation
  3.    syntax
  4.    Both A and B
 Discuss Question
Answer: Option C. -> syntax




Question 12. Why is XML a good way to transfer text-based data from one program or tool to another?
  1.    XML imposes important limitations on the receiving program or tool
  2.    The receiving program or tool can use the XML tagging information to determine how to best handle the incoming data
  3.    XML tags offer an extra level of security
  4.    XML tags specify to the receiving program or tool exactly how to format and display the data
 Discuss Question
Answer: Option B. -> The receiving program or tool can use the XML tagging information to determine how to best handle the incoming data




Question 13. The method forward(request, response) will
  1.    return back to the same method from where the forward was invoked
  2.    not return back to the same method from where the forward was invoked and the web pages navigation continues
  3.    Both A and B are correct
  4.    None of the above
 Discuss Question
Answer: Option A. -> return back to the same method from where the forward was invoked




Question 14. Which option is true about session scope?
  1.    Objects are accessible only from the page in which they are created
  2.    Objects are accessible only from the pages which are in same session
  3.    Objects are accessible only from the pages which are processing the same request
  4.    Objects are accessible only from the pages which reside in same application
 Discuss Question
Answer: Option B. -> Objects are accessible only from the pages which are in same session




Question 15. Which of the scripting of JSP not putting content into service method of the converted servlet?
  1.    Declarations
  2.    Scriptlets
  3.    Expressions
  4.    None of the above
 Discuss Question
Answer: Option C. -> Expressions




Question 16. Which of the following are the valid scopes in JSP?
  1.    request, page, session, application
  2.    request, page, session, global
  3.    response, page, session, application
  4.    request, page, context, application
 Discuss Question
Answer: Option A. -> request, page, session, application




Question 17. Which describes best an EJB handle?
  1.    An EJB handle is used to handle exceptions when accessing EJB objects
  2.    An EJB handle is used to store a reference to a specific EJB object
  3.    An EJB handle is part of the Home interface
  4.    An EJB handle is used for local references inside the EJB container
 Discuss Question
Answer: Option B. -> An EJB handle is used to store a reference to a specific EJB object




Question 18. Why DB connections are not written directly in JSPs?
  1.    Response is slow
  2.    Not a standard J2EE architecture
  3.    Load Balancing is not possible
  4.    Both B and C
 Discuss Question
Answer: Option D. -> Both B and C




Question 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?
  1.    8
  2.    9
  3.    10
  4.    7
 Discuss Question
Answer: Option B. -> 9




Question 20. . JSP includes a mechanism for defining ¦¦¦¦¦¦¦¦¦¦. or custom tags.
  1.    static attributes
  2.    local attributes
  3.    dynamic attributes
  4.    global attributes
 Discuss Question
Answer: Option C. -> dynamic attributes




Latest Videos

Latest Test Papers