Issuu on Google+

Exam 000-150 study material Made available by Testkingprep.com

Free 000-150 Exam Preparation Questions Exam 000-150: J2EE v1.4 Web Developer

For Latest 000-150 Exam Questions and study guides- visit- http://www.testkingprep.com/000-150.html


Question:1 Which two of the following are Java interfaces in javax.servlet.jsp.tagext that could be implemented by a developer creating a tag handler class? A. JspTag B. Tag C. TagSupport D. SimpleTag E. BodyTagSupport Answer: B, D Question:2 A developer wants to make use of a pre-existing tag library located at http://www.example.com/super. The tag will be used in the JSP page will appear as <super:doCount>. What directive must appear in the JSP page in order to use this tag library? A. <%@ page taglib="http://www.example.com/super"/> B. <%@ taglib url="http://www.example.com/super" prefix="super" /> C. <%@ taglib tagdir="http://www.example.com/super" prefix="super"/> D. <%@ taglib uri="http://www.example.com/super" prefix="super" /> Answer: D Question:3 Which of the following would be MOST appropriate to output the current date to a browser from a JSP page? A. <% new java.util.Date() %> B. <%= new java.util.Date() %> C. <% System.out.println(new java.util.Date()); %> D. <%= System.out.println(new java.util.Date()) %> Answer: B Question:4 Which two reasons is it important to use an alt attribute within an image tag of an HTML document? A. It allows for an alternate image to be displayed if the primary image cannot be found. B. It allows for descriptive text to be displayed when the image cannot be rendered normally. C. It allows for contents of a text file to be displayed while the mouse hovers over the image area. D. It improves accessibility by allowing an audio file to be played while the mouse hovers over the image area. E. It improves accessibility by providing text to be used by speech synthesizers. Answer: B, E Question:5 A JavaBean class called Employee exists in the session scope with name employee, and has defined the usual setters and getters for each of its properties. A developer has a goal of reducing scripting. Which of the following is considered best practice for accessing the name property of the employee bean? A. <%= employee.name %> B. <jsp:getProperty name="employee" property="name" /> C. <%= ((Employee)session.getAttribute("employee")).getName() %> D. ${ employee.name } Answer: D Question:6 Given the following traditional JSP tag: <%@page import="java.sql.*" %> Which two of the following represent complete and correct XML-based JSP tags to accomplish the same task? A. <jsp:directive.page import="java.sql.*"/> B. <jsp:directive.page import="java.sql.*">

For Latest 000-150 Exam Questions and study guides- visit- http://www.testkingprep.com/000-150.html


C. <jsp:directive.page import="java.sql.*"></jsp> D. <jsp:directive.page import="java.sql.*"></jsp:directive.page> E. <jsp:page import="java.sql.*" /> Answer: A, D

For Latest 000-150 Exam Questions and study guides- visit- http://www.testkingprep.com/000-150.html


For complete Exam 000-150 Training kits and Self-Paced Study Material Visit: http://www.testkingprep.com/000-150.html

http://www.testkingprep.com/

For Latest 000-150 Exam Questions and study guides- visit- http://www.testkingprep.com/000-150.html


Exam 000-150 preparation questions