Question: QUESTION 1 _______ is a JSP scriptlet.

QUESTION 1 _______ is a JSP scriptlet.

<%= Math.pow(2, 3) %>

<% for (int i = 0; i <= 10; i++) { %>

<%! private long computeFactorial(int n) { if (n == 0) return 1; else return n * computeFactorial(n - 1); } %>

<%= Math.pow(2, 3) %>

QUESTION 3

You can run JSP from ________.

any Web browser

any Web server

any Web server that supports Java servlet and JSP

any JVM

QUESTION 4

________ is a JSP comment.

<% for (int i = 0; i <= 10; i++) { %>

<%! private long computeFactorial(int n) { if (n == 0) return 1; else return n * computeFactorial(n - 1); } %>

<%-- i --%>

<%= i %>

QUESTION 5

A JSP file ends with ________.

.shtml extension

.html extension

.java extension

.jsp extension

QUESTION 6

________ is a JSP expression. Select all that apply.

<%= Math.pow(2, 3) %>

<%= i %>

<% for (int i = 0; i <= 10; i++) { %>

<%= new Date().toString() %>

QUESTION 7

Which of the following statements are true?Select all that apply.

JSP is translated into HTML by a Web server when a JSP is called.

JSP is translated into Java servlet by a Web server when a JSP is called.

You can embed Java code in JSP.

JSP is translated into XML by a Web server when a JSP is called.

QUESTION 8

A class is a JavaBeans component if ________.Select all that apply.

it has a public constructor with no arguments

it is a public class

it is serializable

QUESTION 9

________ is a statement that gives the JSP engine information about the JSP page.

A JSP expression

A JSP scriptlet

A JSP directive

A JSP implicit object

QUESTION 10

The JSP explicit object out is actually ________.

response.getOutputStream()

request.getWriter()

request.getOutputStream()

application

response.getWriter()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!