PRJ321 - Jv WEB

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

. Which HTTP method gets invoked when a user clicks on a link? Select the one correct answer. A. GET method B. POST method C. HEAD method D. PUT method

a

. Which of the following statements are correct about the status of the Http response. Select the one correct answer. A. A status of 200 to 299 signifies that the request was successful. B. A status of 300 to 399 are informational messages. C. A status of 400 to 499 indicates an error in the server. D. A status of 500 to 599 indicates an error in the client.

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

a

A programmer is designing a class to encapsulate the information about an inventory item. A JavaBeans component is need to do this. The InventoryItem has private instance variables to store the item information: 10.private int itemld; 11.private String name; 12.private String description; Which method signature follows the JavaBeans naming standards for modifying the itemld instance variable? (choose one) [A] setItemld(int itemld) [B] updateItemID(int itemld) [C] itemID(int itemld) [D] update(int itemld) [E] mutateItemId(int itemld)

a

A user types the URL http://www.javaprepare.com/scwd/index.html . Which HTTP request gets generated. Select the one correct answer. A. GET method B. POST method C. HEAD method D. PUT method

a

Entity bean is ______ [A] a persistent data component [B] a database object [C] an application logic component [D] an object-relational mapping

a

Given that a servlet has been mapped to /account/*. Identity the HttpServletRequest methods that will return the/myapp segementforthe URI: /myapp/account/*. A. getPathlnfo B. getServletPath C. getContextPath

a

In ejb-jar.xml file, <persistence-type> element value is __________ [A] Bean or Container [B] Container-Managed-Persistent [C] Bean-Managed-Persistent [D] BMP or CMP

a

Is the following statement true or false. URL rewriting may be used when a browser is disabled. In URL encoding the session id is included as part of the URL. a. True b. False

a

JSP pages have access to implicit objects that are exposed automatically. Name the implicit object that is of type HttpSession. A. session B. application C. httpSession D. httpsession

a

Name the class that includes the SetSession method that is used to get the httpSession object [A] HttpSevletRequest [B] HttpSevletResponse [C] SessionContext [D] SessionConfig

a

Name the default value of the scope atribute of <jsp:usebean>. A. page B. application C. session D. request

a

Select the word to replace ??? to make the diagram about messaging domain correct [A] Topic [B] Queue [C] PTP [D] Pub/Sub//

a

The ______ is the overall application architect .This party is responsible for understanding how various components fit together and writes the application that combine components. [A] Application Assembler [B] Application Builder [C] Deployer [D] Developer

a

What is the consequence of attempting to access the following JSP page? <html> <body> <%! public void JspService(HttpServletRequest request HttpServletResponse response) { outwrite("A"): } %> <% outwritef("B"): %> </body> </html> A. Duplicate method compilation error. B. "A" is output to the response before "B". C. "A" is output to the response. D. "B" is output to the response.

a

Which is not the players in the EJB Ecosystem? (choose 1): [A] End User [B] EJB Deployer [C] System Administrator [D] Application Assembler [E] Bean provider

a

______ is a set of java API for executing SQL statements. a) JDBC b) JAVADB c) ODBC d) None of the other choices

a

create() method of entity home interface returns _________ [A] null [B] remote object [C] primary key [D] home object

a

Which are the types of messaging domains ? (choose 2) [A] Publish/Subcribe [B] Point-to-Point [C] Peer-to-Peer [D] Broadscast/Receiver

ab

Which are EJB containers ? (choose three) [A] JBoss [B] BEA's WebLogic [C] Microsoft Application Server [D] Apache Tomcat 5.5 [E] IBM WebSphere

abe

Which of the following are correct statements? Select the two correct answers. A. The getRequestDispatcher method of ServletContext class takes the full path of the servlet, whereas the getRequestDispatcher method of HttpServletRequest class takes the path of the servlet relative to the ServletContext. B. The include method defined in the RequestDispatcher class can be used to access one servlet from another. But it can be invoked only if no output has been sent to the server. C. The getRequestDispatcher(String URL) is defined in both ServletContext and HttpServletRequest method D. The getNamedDispatcher(String) defined in HttpServletRequest class takes the name of the servlet and returns an object of RequestDispatcher class.

ac

Which of these are true. Select the two correct answers. A. The default value of isThreadSafe attribute of page directive is true. B. If isThreadSafe attribute of page directive is set to true, then JSP container dispatches request for the page sequentially. C. When isThreadSafe attribute of page directive is set to true, a thread is created for each request for the page. D. Setting isThreadSage attribute to true for JSP pages, can lead to poor performance.

ac

select CORRECT statement (choose 2) [A] Entity beans represent persistent state objects (things that don't go away when user goes away) [B] Session beans represent persistent state objects (things that don't go away when user goes away) [C] Session beans model a process or workflow (actions that are started by the user and that do away when user goes away) [D] Entity beans model a process or workflow (action that are started by the user and that go way when user goes away)

ac

The top three values of EJB are (choose 3): [A] Portability is easier [B] Distributed application [C] Rapid Application Development [D] It is agreed upon by the industry [E] Easy to upgrade

acd

Which are the correct statements of ResultSet object? (Choose three) a) executeQuery() b) executeBatch() c) execute() d) executeUpdate()

acd

Message-driven beans are classes that implement 2 interfaces : [A] javax.ejb.MessageDrivenBean [B] javax.jms.Message [C] javax.jms.MessageBean [D] javax.jms.MessageListener

ad

Which are the correct statements of Connection object? (Choose two) a) createStatement(int, int); b) createStatement(int, String); c) createStatement(String, int); d) createStatement();

ad

Which of the following statements are true for <jsp:usebean>. Select the two correct answers. A. The id attribute must be defined for <jsp:usebean>. B. The scope attribute must be defined for <jsp:usebean>. C. The class attribute must be defined for <jsp:usebean>. D. The <jsp:usebean> must include either type or class attribute or both.

ad

Choose three correct statements in JDBC Chọn ít nhất một câu trả lời a) getObject b) getLine c) getText d) getInt e) getString

ade

Which of these are legal return types of the doEndTag method defined in a class that extends TagSupport class. SELECT the two correct answers. [A] EVAL_PAGE [B] EVAL_BODY [C] EVAL_PAGE_INCLUDE [D] EVAL_BODY_INCLUDE [E] SKIP_PAGE [F] SKIP_BODY

ae

Which of the following are examples of JSP directive. Select the two correct answers. A. include B. exclude C. import D. taglibrary E. servlet F. page

af

. Name the http method that sends the same response as the request. Select the one correct answer. A. DEBUG method B. TRACE method C. OPTIONS method D. HEAD method

b

1. The method getWriter returns an object of type PrintWriter. This class has println methods to generate output. Which of these classes define the getWriter method? Select the one correct answer. A. HttpServletRequest B. HttpServletResponse C. ServletConfig D. ServletContext

b

5. The sendRedirect method defined in the HttpServlet class is equivalent to invoking the setStatus method with the following parameter and a Location header in the URL. Select the one correct answer. A. SC_OK B. SC_MOVED_TEMPORARILY C. SC_NOT_FOUND D. SC_INTERNAL_SERVER_ERROR E. ESC_BAD_REQUEST

b

A JSP page called test.jsp is passed a parameter name in the URL using http://localhost/test.jsp?name="John". The test.jsp contains the following code. <%! String myName=request.getParameter();%> <% String test= "welcome" + myName; %> <%= test%> A. The program prints "Welcome John" B. The program gives a syntax error because of the statement <%! String myName=request.getParameter();%> C. The program gives a syntax error because of the statement <% String test= "welcome" + myName; %> D. The program gives a syntax error because of the statement <%= test%>

b

A JSP page uses the java.util.ArrayList class many times. Instead of referring the class by its complete package name each time, we want to just use ArrayList. Which attribute of page directive must be specified to achieve this. Select the one correct answer. A. extends B. import C. include D. package E. classpath

b

Action <jsp:setProperty> has the ability to match request parameters to properties of the same name in a bean by specifying "*" for attribute property. A. False B. True

b

Assume that you need to write a JSP page that adds numbers from one to ten, and then print the output. <% int sum = 0; for(j = 0; j < 10; j++) { %> // XXX --- Add j to sum <% } %> // YYY --- Display ths sum Which statement when placed at the location XXX can be used to compute the sum. Select the one correct statement A. <% sum = sum + j %> B. <% sum = sum + j; %> C. <%= sum = sum + j %> D. <%= sum = sum + j; %>

b

Consider the following java code: //in file Book.java package com.bookstore; public class Book { private long isbn; public BookO{ isbn = 0;} public long getlsbn(){ return isbn;} public void setlsbn(long value){ this.isbn = value;} } Code for browse.jsp: <jsp:useBean class="com.bookstore.Book" id="newbook"/> LINE 1: <jsp:setProperty name="newbook" property="isbn" value="1000"/> Which of the following statements are correct? A. The isbn property of new book will be set to 1000 if nbsp;nbsp;'value' attribute of 'setProperty' tag is given as: value=1000 B. The isbn property of newbookwill be set to 1000. C. It will not compile.

b

Given the following JSP and Tag handler code,what is the result of accessing the JSP ? JSP Page Source <html> <body> <%@taglib uri = "test_taglib" prefix = "myTag"%> <% session.setAttribute("first", "first");%> <myTag:TestTag/> <br> <%=session.getAttribute("second")%> </body> </html> Tag Handler Code for <myTag:TestTag/> pakage examples; import java.io.*; import javax.servlet.jsp.*; import javax.servlet.jsp.tagext.*; public class TestTag extends TagSupport { private PageContext pageContext; public void setPage(PageContextpage){ this.pageContext=page; } public int doStartTag() throws JspException { try{ String first = pageContext.getSession().getAttribute("first").toString(); pageContext.getOut().write(first); pageContext.setAttribute("second", "second", PageContext.PAGE_SCOPE); } catch(IOException) { throw new JspException(i.getMessage()); } return SKIP_BODY; } public int doEndTag() throws JspException{ return EVAL_PAGE; } public void release(){} } Assume *.tld and web.xml files are correct. [A] second first [B] first second [C] first null [D] second null

b

Is the following JSP code legal? Select the one correct statement. <%@page info="test page" session="false"%> <%@page session="false"%> A. Yes. This is legal JSP syntax. B. No. This code will generate syntax errors

b

Is the statement true or false. The deployment descriptor of a web application must have the name web.xml.In the same way the tag library descriptor file must be called taglib.xml [A] True [B] False

b

JDBC supports ______ and ______ models. Chọn một câu trả lời a) Three-tier and four-tier b) Two-tier and three-tier c) None of the other choices d) Single-tier and two-tier

b

Message-driven beans do not have any return value [A] True [B] False

b

Name the http method used to send resources to the server. Select the one correct answer. A. FTP methodd B. PUT method C. WRITE method D. COPY method

b

Name the implicit variable available to JSP pages that may be used to access all the other implicit objects. A. page B. pageContext C. context D. object E. jspPave

b

To send binary output in a response, the following method of HttpServletResponse may be used to get the appropriate Writer/Stream object. Select the one correct answer. A. getStream B. getOutputStream C. getBinaryStream D. getWriter

b

URL referring to databases use the form: Chọn một câu trả lời a) protocol:subprotocol:datasoursename b) jdbc:odbc:datasoursename c) protocol:datasoursename d) jdbc:datasoursename

b

When implementing a tag, if the tag does not include the body ,then the tag handler lass must extend the BodyTagSupport class. Is this statement true or false. [A] True [B] False

b

Which of the following correctly represents the following JSP statement. Select the one correct answer. <%=x%> A. <jsp:expression=x/> B. <jsp:expression>x</jsp:expression> C. <jsp:statement>x</jsp:statement> D. <jsp:declaration>x</jsp:declaration> E. <jsp:scriptlet>x</jsp:scriptlet>

b

Which of the following is not a valid HTTP/1.1 method. Select the one correct answer. A. CONNECT method B. COMPARE method C. OPTIONS method D. TRACE method

b

Which of the following statement is correct? A. Data Integrity means that the data cannot be viewed by anybody other than it's intended recepient B. Authentication means determining whether one has access to a particular resource or not C. Data Integrity means that the data is not modified in transit between the sender and the receiver.

b

Which statements are BEST describe class attribute of <jsp:useBean class=_.. /> Action? A. The name of a bean that can be used with method instantiate of class java.beans.Beans to load a JavaBean into memory. B. The fully qualified class name of the Java object C. The name used to manipulate the Java object with actions <jsp:setProperty> and <jsp:getProperty>. A variable of this name is also declared for use in JSP scripting elements. The name specified here is ca D. The type of the JavaBean. This can be the same type as the class attribute, a superclass of that type or an interface implemented by that type. The default value is the same as for attribute class.

b

The page directive is used to convey information about the page to JSP container. Which of these are legal syntax of page directive. Select the two correct statement A. <% page info="test page" %> B. <%@ page info="test page" session="false"%> C. <%@ page session="true" %> D. <%@ page isErrorPage="errorPage.jsp" %> E. <%@ page isThreadSafe=true %>

bc

Which of the following are potential legal of JSP source ? (choose 2) [A] <jsp:useBean id = "beanName1" class="a.b.MyBean"type="a.b.Myinterface"/> [B] <% String myValue = "myValue";%> <jsp:setProperty name ="beanName1" property="soleProp" value ' "<%=myValue%>"/> [C] <%String className = "a.b.MyBean";%> <jsp:useBean id = "beanName2" class="<%=className>"/> [D] <%String propName = "soleProp"; %> <jsp:getProperty name = "beanName1" property="<%=propName>" /> [E] <%String beanName = "beanName3"; %> <jsp:useBean id = "<%=beanName3%>" class="a.b.MyBean" />

bc

Which of the following represents a correct syntax for usebean. Select the two correct answers. A. <jsp:usebean id="fruit scope ="page"/> B. <jsp:usebean id="fruit type ="String"/> C. <jsp:usebean id="fruit type ="String" beanName="Fruit"/> D. <jsp:usebean id="fruit class="Fruit" beanName="Fruit"/>

bc

2. Name the method defined in the HttpServletResponse class that may be used to set the content type. Select the one correct answer. A. setType B. setContent C. setContentType D. setResponseContentType

c

4. The sendError method defined in the HttpServlet class is equivalent to invoking the setStatus method with the following parameter. Select the one correct answer. A. SC_OK B. SC_MOVED_TEMPORARILY C. SC_NOT_FOUND D. SC_INTERNAL_SERVER_ERROR E. ESC_BAD_REQUEST

c

A bean with a property color is loaded using the following statement <jsp:usebean id="fruit" class="Fruit"/> What happens when the following statement is executed. Select the one correct answer. <jsp:setProperty name="fruit" property="*"/> A. This is incorrect syntax of <jsp:setProperty/> and will generate a compilation error. Either value or param must be defined. B. All the properties of the fruit bean are initialized to a value of null. C. All the properties of the fruit bean are assigned the values of input parameters of the JSP page that have the same name. D. All the properties of the fruit bean are initialized to a value of *.

c

Name the location of compiled class files within a war file? Select the one correct answer. A. /META-INF/classes B. /classes C. /WEB-INF/classes D. /root/classes

c

Now consider the same JSP example as last question. What must be added at the location YYY to print the sum of ten numbers. Select the one correct statement A. <% sum %> B. <% sum; %> C. <%= sum %> D. <%= sum; %>

c

Study the statements: 1)When a JDBC connection is created, it is in auto-commit mode 2)Once auto-commit mode is disabled, no SQL statements will be committed until you call the method commit explicitly Chọn một câu trả lời a) Only statement 2 is true b) Both 1 and 2 are not true c) Both 1 and 2 are true d) Only statement 1 is true

c

The ______ class is the primary class that has the driver information. Chọn một câu trả lời a) None of the other choices b) Driver c) DriverManager d) ODBCDriver

c

The _______ class makes every entity bean different [A] bean key [B] bean ID [C] primary key [D] key

c

To send text outptut in a response, the following method of HttpServletResponse may be used to get the appropriate Writer/Stream object. Select the one correct answer. a) getOutputStream b) getBinaryStream c) getWriter d) getStream

c

What gets printed when the following is compiled. Select the one correct answer. <% int y = 0; %> <% int z = 0; %> <% for(int x=0;x<3;x++) { %> <% z++;++y;%> <% }%> <% if(z<y) {%> <%= z%> <% } else {%> <%= z - 1%> <% }%> A. 0 B. 1 C. 2 D. 3 E. The program generates compilation error.

c

Which are the correct lines of code to get information in the following<context-param> tag in the web.xml fi Assume that response and request refer to HttpServletResponse and HttpServletRequest respectively. A. response.getParameter('machineName'); B. requestgetParameter( machineName'); C. ServletContextsc = getServletContextO; String serverName = sc.getlnitParameter("machineName"); D. ServletConfigsc = getServletConfigO; String serverName = sc.getlnitParameterfmachineName"); -------------------------- <web-app> <concexc-param> <parair - narr.e >mach i neN ame < / p a r air - name > <parair.-value>cms-server</parair.-value> </context-parair.> </web-app>|

c

Which is correct sequence for a JDBC execution? Chọn một câu trả lời a) Connection -> Load Driver -> Statement -> ResultSet b) Load Driver -> Statement -> ResultSet -> Connection c) Load Driver -> Connection -> Statement -> ResultSet d) Statement -> Connection -> ResultSet -> Load Driver

c

Which of the following files is the correct name and location of deployment descriptor of a web application. Assume that the web application is rooted at \doc-root. Select the one correct answer a) \doc-root\dd.xml b) \doc-root\WEB-INF\dd.xml c) \doc-root\WEB-INF\web.xml d) \doc-root\web.xml e) \doc-root\WEB_INF\dd.xml

c

Which of the following represents the XML equivalent of this statement <%@ include file="a.jsp"%> . Select the one correct statement A. <jsp:include file="a.jsp"/> B. <jsp:include page="a.jsp"/> C. <jsp:directive.include file="a.jsp"/> D. There is no XML equivalent of include directive.

c

Which of these is true about deployment descriptors. Select the one correct answer Chọn một câu trả lời a) The servlet-mapping element, if defined, must be included within the servlet element. b) The web-app element must include the servlet element c) The order of elements in deployment descriptor is important. The elements must follow a specific order d) The elements of deployment descriptor are case insensitive

c

Which three digit error codes represent an error in request from client? Select the one correct answer. A. Codes starting from 200 B. Codes starting from 300 C. Codes starting from 400 D. Codes starting from 500

c

which is not the role of EJB Deployer? [A] Securing the deployment with a firewall [B] Performance-turning the system [C] Write the code that calls on components supplied by bean providers [D] Choosing hardware that provides the required level of performance

c

Which of these are legal attributes of page directive. Select the two correct answers. A. include B. scope C. errorPage D. session E. debug

cd

3. Which of the following statement is correct. Select the one correct answer. A. The response from the dedicated server to a HEAD request consists of status line, content type and the document. B. The response from the server to a GET request does not contain a document. C. The setStatus method defined in the HttpServletRequest class takes an int as an argument and sets the status of Http response D. The HttpServletResponse defines constants like SC_NOT_FOUND that may be used as a parameter to setStatus method.

d

A JSP file that uses a tag library must declare the tag library first. The tag library is defined using the taglib directive <%@taglib uri = "..." prefix="..."%> Which of the following specifies the correct purpose of prefix attribute.SELECT the one correct answer. [A] The prefix defines the name of the tag that may be used for a tag library. [B] The prefix attribute defines the location of the tag library descriptor file [C] The prefix attribute should refer to the short name attribute of the tag library file that is defined by the uri attribute of taglib directive [D] The prefix attribute is used in front of a tag defined within the tag library

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

d

A ____ subscription to a topic means that a JMS subscriber receives all message even if the subscriber is inactive [A] temporary [B] nondurable [C] persistent [D] Durable

d

A bean with a property color is loaded using the following statement <jsp:usebean id="fruit" class="Fruit"/> Which of the following statements may be used to print the value of color property of the bean. Select the one correct answer. A. <jsp:getColor bean="fruit"/> B. <jsp:getProperty id="fruit" property="color"/> C. <jsp:getProperty bean="fruit" property="color"/> D. <jsp:getProperty name="fruit" property="color"/> E. <jsp:getProperty class="Fruit" property="color"/>

d

Identify the method used to get an object available in a session. (Choose one) A. get of Session B. getValue of HttpSession C. getAttribute of Session D. getAttribute of HttpSession

d

Identify the technique that can be used to implement 'sessions' if the client browser does not support cookies.(Choose one) A. It cannot be done without cookie support B. Using Http headers. C. URL Writing D. Hidden form fields.

d

JSP pages have access to implicit objects that are exposed automatically. One such object that is available is request. The request object is an instance of which class? A. HttpRequest B. ServletRequest C. Request D. HttpServletRequest

d

Name the default value of the scope attribute of <jsp:useBean> A. request B. application C. session D. page

d

Select the correct JMS programming model [A] Locate the JMS Driver -> Create a JMS connection -> Create a JMS session -> Locate the JMS destination -> Create a JMS producer or a JMS consumer -> Send or receive message [B] Locate the JMS Driver ->Create a JMS session ->Create a JMS connection ->Locate the JMS destination ->Create a JMS producer or a JMS consumer -> Send or receive message [C] Locate the JMS Driver ->Create a JMS connection -> Locate the JMS destination ->Create a JMS producer or a JMS consumer -> Send or receive message [D] Locate the JMS Driver ->Create a JMS connection ->Create a JMS session ->Create a JMS producer or a JMS consumer -> Send or receive message

d

Study the statements: 1) The special directory/WEB-INF/lib contains Java class files—servlets and supporting code. 2) The special directory /WEB-INF/classes contains JAR files with supporting libraries of code. A. Only statement 1 is true B. Only statement 2 is true C. Both 1 and 2 are true D. Both 1 and 2 are not true

d

The ________ supplies business components,or enterprise beans [A] Tool vendor [B] Application assembler [C] Deployer [D] Bean provider

d

The exception-type element specifies an exception type and is used to handle exceptions generated from a servlet. Which element of the deployment descriptor includes the exception-type as a sub-element. Do not include the element in enclosing parenthesis a) error b) exception c) exception-page d) error-page

d

To send text output in a response, the following method of HttpServletResponse may be used to get the appropriate Writer/Stream object. Select the one correct answer. A. getStream B. getOutputStream C. getBinaryStream D. getWriter

d

What gets printed when the following JSP code is invoked in a browser. Select the one correct answer. <%= if(Math.random() < 0.5) %> hello <%= } else { %> hi <%= } %> A. The browser will print either hello or hi based upon the return value of random. B. The string hello will always get printed. C. The string hi will always get printed. D. The JSP file will not compile.

d

When using HTML forms which of the folowing is true for POST method? Select the one correct answer. A. POST allows users to bookmark URLs with parameters. B. The POST method should not be used when large amount of data needs to be transferred. C. POST allows secure data transmission over the http method. D. POST method sends data in the body of the request.

d

Which is correct JDBC-ODBC driver name? Chọn một câu trả lời a) jdbc.odbc.sun.JdbcOdbcDriver b) sun.driver.jdbc.odbc c) jdbc.odbc.sun.driver d) sun.jdbc.odbc.JdbcOdbcDriver

d

Which of the following are correct. Select the one correct answer. A. JSP scriptlets and declarations result in code that is inserted inside the _jspService method. B. The JSP statement <%! int x; %> is equivalent to the statement <jsp:scriptlet>int x;</jsp:scriptlet%>. C. The following are some of the predefined variables that maybe used in JSP expression - httpSession, context. D. To use the character %> inside a scriptlet, you may use %\> instead.

d

Which of the following is legal JSP syntax to print the value of i. Select the one correct answer A. <%int i = 1;%> <%= i; %> B. <%int i = 1; i; %> C. <%int i = 1%> <%= i %> D. <%int i = 1;%> <%= i %> E. <%int i = 1%> <%= i; %>

d

Which of these is true about include directive. Select the one correct answer. A. The included file must have jspf extension. B. The XML syntax of include directive in <jsp:include file="fileName"/> . C. The content of file included using include directive, cannot refer to variables local to the original page. D. When using the include directive, the JSP container treats the file to be included as if it was part of the original file.

d

_____ sends a request to an object and includes the result in a JSP file. [A] include directive [B] import directive [C] <jsp:forward> [D] <jsp:include>

d

______includes a static file in a JSP file, parsing the file's JSP elements A. <jsp:forward> B. <jsp:useBean> C. import directive D. include directive E. <jsp:include>

d

ejbCreate() method of entity bean class returns ______ [A] remote object [B] null [C] home object [D] primary key

d

Which jsp tag can be used to set bean property? A. jsp:property B. jsp:useBean.setProperty C. jsp:useBean D. jsp:useBean.property E. jsp:setProperty

e

Which of the following JSP variables are not available within a JSP expression. Select the one correct answer. A. out B. session C. request D. response E. httpsession F. page

e

Which of the following correctly represents the following JSP statement. Select the one correct answer. <%x=1;%> A. <jsp:expression x=1;/> B. <jsp:expression>x=1;</jsp:expression> C. <jsp:statement>x=1;</jsp:statement> D. <jsp:declaration>x=1;</jsp:declaration> E. <jsp:scriptlet>x=1;</jsp:scriptlet>

e


संबंधित स्टडी सेट्स

Unit 3- NCLEX- Therapeutic Diets/Nutrition/Elimination

View Set

HTML programming: Chapter 1: The Internet and World Wide Web Part 2

View Set

COM 1100 Chapter 11 Review Questions

View Set

ECON 320 - Ch.4: Monetary System HW

View Set