• Sharad Jaiswal
  • 23rd Nov, 2021

We have listed here the Best JSF MCQ Questions for your basic knowledge of JSF. This JSF Test contains 25 multiple Choice Questions. You have to select the right answer to every question.

JSF MCQ Questions

1) What is the full form of JSF?

  • A. Java Server Faces
  • B.Joint Server Faces
  • C.Java Spring Faces
  • D.None of these

2) Which of the following phases of JSF?

  • A. Process validations phase
  • B.Apply request values phase
  • C.Restore view phase
  • D.All of the above

3) Which of the following characteristics of JSF?

  • A. Ease and Rapid Web Development.
  • B.Bean Annotations
  • C.Support Internationalization
  • D.All of the above

4) Identify the true option about session scope?

  • A. Objects are accessible only from the pages which are processing the same request
  • B.Objects are accessible only from the pages which are in same session
  • C.Objects are accessible only from the pages which reside in same application
  • D.None of these

5) Which of the scripting of JSP not putting content into service method of the converted servlet?

  • A. Scriptlets
  • B.Declarations
  • C.Expressions
  • D.None of these

6) The difference between Servlets and JSP is the ……………...

  • A. compilation
  • B.syntax
  • C.translation
  • D.Both a & b

7) Select the valid scopes in JSP?

  • A. response, page, session, application
  • B.request, page, context, application
  • C.request, page, session, application
  • D.request, page, session, global

8) JSP includes a mechanism for defining …………………………. or custom tags.

  • A. static attributes
  • B.global attributes
  • C.dynamic attributes
  • D.local attributes

9) Why DB connections aren't written directly in JSPs?

  • A. Response is slow
  • B.Load Balancing is not possible
  • C.Not a standard J2EE architecture
  • D.Both B and C

10) How many jsp implicit objects are there and these objects are created by the web container that are available to all the jsp pages?

  • A. 7
  • B.5
  • C.9
  • D.6

11) if isThreadSafe attribute of page directive is set as true, then generated servlet implements SingleThreadModel interface.

  • A. True
  • B.False

12) Which isn't a jsp directive?

  • A. scriptlet
  • B.page
  • C.include
  • D.useBean

13) What is the use of <c:remove > tag?

  • A. It removes a variable from either a specified scope or the first scope where the variable is found
  • B.it removes the data row from the database.
  • C.It removes a item from a list
  • D.None of these

14) pageContext is instance of which class?

  • A. javax.servlet.jsp.PageContext
  • B.javax.servlet.Application
  • C.javax.servlet.ServletContext
  • D.javax.servlet.ServletConfig

15) Identify the correct signature of _jspService() method of HttpJspPage class?

  • A. void _jspService()
  • B.void _jspService() throws ServletException, IOException
  • C.void _jspService(HTTPRequest request, HTTPResponse response) throws ServletException, IOException
  • D.void _jspService(HTTPRequest request, HTTPResponse response)

16) Choose the statement that best describes the relationship between JSP and servlets?

  • A. JSP and servlets are unrelated technologies.
  • B.Servlets and JSP are competing technologies for handling web requests. Servlets are being superseded by JSP, which is preferred. The two technologies aren't useful in combination.
  • C.JSPs are built on servlet semantics and all JSPs are compiled to servlets for runtime usage.
  • D.None of these

17) Identify the initial contact point for handling a web request in a Page-Centric architecture?

  • A. A session manager.
  • B.A JSP page.
  • C.A JavaBean.
  • D.A servlet.

18) Are custom tags available in JSP 1.0?

  • A. Yes
  • B.No

19) Which of the following isn't a directive?

  • A. export
  • B.include
  • C.page
  • D.useBean

20) In JSP Action tags which tags are used for bean development?

  • A. jsp:getProperty
  • B.jsp:useBean
  • C.jsp:setPoperty
  • D.All of the above

21) Which of the following alternatives exist to embedding Java code directly within the HTML markup of your JSP page?

  • A. Moving the code into JavaBeans and servlets.
  • B.Moving the code into scriptlets.
  • C.Moving the code into your session manager
  • D.Moving the code into a transaction manager.

22) Which of the following is the Default Templating System for JSF?

  • A. XUL
  • B.ReXSL
  • C.Spring
  • D.Facelets

23) What are the features of JSF?

  • A. Component Based Framework
  • B.Support HTML5
  • C.Support Internationalization
  • D.All of the above

24) JSF is written in which programming language?

  • A. Python
  • B.Java
  • C.PHP
  • D.C

25) JSF is a type of ..............

  • A. Text Editor
  • B.Programming Language
  • C.Web application framework
  • D.None of the above

Leave A Comment :

Valid name is required.

Valid name is required.

Valid email id is required.

Related MCQ/Quiz

Azure MCQ
Corel Draw MCQ