GoConqr has a new look! Let us know what you think.

Quiz

Java 3

Ummm No 21 questions

Take the quiz

Questions in this quiz (21)

  1. 1________ is a JSP scriptlet
    1. A<%= i %&gt
    2. B<%= Math.pow(2, 3) %&gt
    3. C<%! private long computeFactorial(int n) { if (n == 0)return 1;else return n *
      computeFactorial(n 1)
      ; } %&gt
    4. D&lt;% for (int i = 0; i <= 10; i++) { %&gt
    5. E&lt;!HTML
      Comment %&
      gt
  2. 2A JSP file ends with ________.
    1. A.java extension
    2. B.html extension
    3. C.shtml extension
    4. D.jsp extension
  3. 3________ is a JSP declaration.
    1. A&lt;%= i %&gt;
    2. B&lt;%= Math.pow(2, 3) %&gt;
    3. C&lt;%! private long computeFactorial(int n) { if (n == 0) return 1; else return n *
      computeFactorial(n 1)
      ; } %>
    4. D&lt;% for (int i = 0; i <= 10; i++) { %&gt;
    5. E&lt;!HTML
      Comment &
      gt;
  4. 4A class is a JavaBeans component if ________.
    1. Ait is a public class
    2. Bit has a public constructor with no arguments
    3. Cit is serializable.
  5. 5The JSP explicit object out is actually ________.
    1. Aresponse.getOutputStream()
    2. Bresponse.getWriter()
    3. Crequest.getOutputStream()
    4. Drequest.getWriter()
    5. Eapplication
  6. 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.
    1. Apage
    2. Binclude
    3. Ctablib
    4. Dimport
  7. 7________is a JSP expression.
    1. A&lt;%= i %&gt;
    2. B&lt;%= Math.pow(2, 3) %&gt;
    3. C&lt;%= new Date().toString() %&gt;
    4. D&lt;% for (int i = 0; i <= 10; i++) { %&gt;
  8. 8You can run JSP from ________.
    1. Aany Web server
    2. Bany JVM
    3. Cany Web server that supports Java servlet and JSP
    4. Dany Web browser
  9. 9________ is a statement that gives the JSP engine information about the JSP page.
    1. AA JSP implicit object
    2. BA JSP scriptlet
    3. CA JSP expression
    4. DA JSP directive
  10. 10Which of the following statements are true?
    1. AJSP is translated into Java servlet by a Web server when a JSP is called.
    2. BJSP is translated into HTML by a Web server when a JSP is called.
    3. CJSP is translated into XML by a Web server when a JSP is called.
    4. DYou can embed Java code in JSP.

Information

Description
1 Java Quiz on Java 3, created by Ummm No on 21/04/2018.
Author
Ummm No
Language
English
Views
2
Tags
java1
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?