Вы находитесь на странице: 1из 5

A schema describes

(i) grammer
(ii) vocabulary
(iii) structure
(iv) datatype of XML document

A. (i) & (ii) are correct


B. (i),(iii) ,(iv) are correct
C. (i),(ii),(iv) are correct
D. (i),(ii),(iii),(iv) are correct

Select one:
D
A
B
C
Feedback

The correct answer is: D


Which of the following Session tracking mechanisms are supported by Servlets
A. Url Rewriting
B. Cookies
C. Hidden form fields
D. It supports all the above Session tracking mechanisms

Select one:
D
A
C
B
Feedback

The correct answer is: D


A Java bean with a property color is loaded using the following statement
<jsp:usebean id=”fruit” class=”Fruit”/>
What is the effect of the following statement.
<jsp:setproperty name=”fruit” property=”color”/>
Select the one correct answer.

A. An error gets generated because the value attribute of setAttribute is not defined.
B. The color attribute is assigned a value null.
C. The color attribute is assigned a value “”.
D. If there is a non-null request parameter with name color, then its value gets assigned to
color property of Java Bean fruit.

Select one:

Feedback

The correct answer is: D

hich of the following code retrieves the context of the request?

A - new ClassContextPath()
B - request.getContextPath()
C - response.getContextPath()
D - None of the above.

Select one:

D
A

Feedback

The correct answer is: B

XSLT processors accept as input:


A. an XML conforming document file and an XSLT specification file
B. only an XML document
C. only an XSLT specification
D. either an XML document or an XSLT specification

Select one:

Feedback

The correct answer is: A

Interaction between a web server, a servlet, and a client is controlled using ______________
a. Web Servlet Container
b. life-cycle methods
c. Web Server

Select one:

c
a

Feedback

The correct answer is: b

he include() method of RequestDispatcher


[A] sends a request to another resource like servlet, jsp or html
[B] includes resource of file like servlet, jsp or html
[C] appends the request and response objects to the current servlet
[D] None of the above

Select one:

Feedback

The correct answer is: A

A JSP page needs to generate an XML file. Which attribute of page directive may be
used to specify that the JSP page is generating an XML file.

A. contentType
B. generateXML
C. type
D. outputXML

Select one:
A
C
D
B
Feedback

The correct answer is: A

Вам также может понравиться