Javaweb

Javaweb

University

51 Qs

quiz-placeholder

Similar activities

111-2 Thematic Vocabulary (Night) Final Exam

111-2 Thematic Vocabulary (Night) Final Exam

University

50 Qs

DAY 123

DAY 123

University

47 Qs

Ury's Negoatiation Vocab (OralComp: write what your hear)

Ury's Negoatiation Vocab (OralComp: write what your hear)

University

53 Qs

VOCAB 76 - 150 NEW

VOCAB 76 - 150 NEW

University

52 Qs

ENGLISH VOCABULARY 2

ENGLISH VOCABULARY 2

University

47 Qs

TOEIC TENSES 1

TOEIC TENSES 1

University

46 Qs

SCM 272H

SCM 272H

University

49 Qs

Javaweb

Javaweb

Assessment

Quiz

English

University

Medium

Created by

Phương Đình

Used 2+ times

FREE Resource

51 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The include() method of RequestDispatcher
Sends a request to another resource like servlet, jsp or html
Includes resource of file like servlet, jsp or html
Appends the request and response objects to the current servlet

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What programming language(s) or scripting language(s) does Java Server Pages (JSP) support?
VBScript only
Jscript only
Java only
VBScript, Jscript and Java

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A JSP is transformed into a(n):
Java Applet
Java Servlet
Java Script

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the key difference between using a <jsp:forward> and HttpServletResponse.sendRedirect()?
forward executes on the server while sendRedirect() executes on the client
forward executes on the client while sendRedirect() executes on the server
The two methods perform identically
None of these

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following can not be used as the scope when using a JavaBean with JSP ?
application
response
request
session

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is wrong with the following code ? <% if( strPassword.equals("boss")) { <jsp:forward page="Welcome.jsp" flush="true"/> } else { } %>
Unmatched bracket in for statement
Flush attribute must be false
Keyword 'file' should be used instead of 'page' in the action
Actions cannot be used within scriptlet blocks

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose the statement that best describes the relationship between JSP and servlets:
Servlets are built on JSP semantics and all servlets are compiled to JSP pages for runtime usage
JSP and servlets are unrelated technologies
Servlets and JSP are competing technologies for handling web requests. Servlets are being superseded by JSP, which is preferred. The two technologies are not useful in combination
JSPs are built on servlet semantics and all JSPs are compiled to servlets for runtime usage

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?