Quiz
Java 3
Create a free account to finish this quiz
Save your progress and see your final score.
Already have an account? Sign in
Questions in this quiz (21)
1________ is a JSP scriptlet
- A<;%= i %>
- B<;%= Math.pow(2, 3) %>
- C<;%! private long computeFactorial(int n) { if (n == 0)return 1;else return n *
computeFactorial(n 1)
; } %> - D<;% for (int i = 0; i <= 10; i++) { %>
- E<;!HTML
Comment %&
gt
2A JSP file ends with ________.
- A.java extension
- B.html extension
- C.shtml extension
- D.jsp extension
3________ is a JSP declaration.
- A<;%= i %>;
- B<;%= Math.pow(2, 3) %>;
- C<;%! private long computeFactorial(int n) { if (n == 0) return 1; else return n *
computeFactorial(n 1)
; } %> - D<;% for (int i = 0; i <= 10; i++) { %>;
- E<;!HTML
Comment &
gt;
4A class is a JavaBeans component if ________.
- Ait is a public class
- Bit has a public constructor with no arguments
- Cit is serializable.
5The JSP explicit object out is actually ________.
- Aresponse.getOutputStream()
- Bresponse.getWriter()
- Crequest.getOutputStream()
- Drequest.getWriter()
- Eapplication
6The ________ directive lets you provide information for the page, such as importing classes and
setting up content type. The page directive can appear anywhere in the JSP file.- Apage
- Binclude
- Ctablib
- Dimport
7________is a JSP expression.
- A<;%= i %>;
- B<;%= Math.pow(2, 3) %>;
- C<;%= new Date().toString() %>;
- D<;% for (int i = 0; i <= 10; i++) { %>;
8You can run JSP from ________.
- Aany Web server
- Bany JVM
- Cany Web server that supports Java servlet and JSP
- Dany Web browser
9________ is a statement that gives the JSP engine information about the JSP page.
- AA JSP implicit object
- BA JSP scriptlet
- CA JSP expression
- DA JSP directive
10Which of the following statements are true?
- AJSP is translated into Java servlet by a Web server when a JSP is called.
- BJSP is translated into HTML by a Web server when a JSP is called.
- CJSP is translated into XML by a Web server when a JSP is called.
- DYou can embed Java code in JSP.
11Which of the following is a JSP implicit object?
- Arequest
- Bresponse
- Cout
- Dsession
- Eapplication
12________ is a JSP comment.
- A<%= i %>
- B<%-- i --%>
- C<%! private long computeFactorial(int n) { if (n == 0) return 1; else return n *
computeFactorial(n - 1); } %> - D<% for (int i = 0; i <= 10; i++) { %>
- E<!-- HTML Comment -->
13Which of the following statements are correct?
- AThe computer on which a Web service resides is referred to as a server.
- BThe server needs to make the service available to the client, known as publishing a Web service.
- CUsing a Web service from a client is known as consuming a Web service.
- DA client interacts with a Web service through a proxy object.
- EThe proxy object facilitates the communication between the client and the Web service.
14JSF stands for
- AJavaServer Frameworks
- BJava Simple Frameworks
- CJavaServer Facelets
- DJavaServer Faces
15In JSF, the objects that are accessed from a facelet are ___________ objects.
- AManaged JavaBeans
- Bunmanaged JavaBeans
- Cunmanaged plain old Java objects (POJO)
- Dnone of the above
16JSF applications are developed using the _______________________ architecture.
- AModern-View-Controller
- BModel-View-Calculator
- CModel-View-Controller
- DModel-Variable-Controller
17You can use NetBeans 6 to develop ________ applications
- AJava servlet
- BJSP
- CJSF
- DPHP
18________ completely separates Web UI from Java code so the application developed using JSF is
easy to debug and maintain.- AJava servlet
- BJSP
- CJSF
- DPHP
- EJavaScript
19In JSF, the _________ are the view for presenting data.
- AJavaBeans
- Bfacelets
- Cproperties
- Dcomponents
20Which of the following are JSF lifecycle
methods?- Ainit()
- Bpreprocess()
- Cprerender()
- Ddestroy()
21In a managed JavaBean, a _________ is defined with a getter and a setter method.
- Ainstance variable
- Battribute
- Cproperty
- Dbehavior
Information
- Description
- 1 Java Quiz on Java 3, created by Ummm No on 21/04/2018.
- Author
- Ummm No
- Language
- English
- Views
- 2
- Tags
- Rating
- No ratings yet Rate this quiz