Hi,
These are the some of the questions from IBM ICE Enterprise connectivity
test. In two sections(Assembly and deplyoment and web components developemnt) i didnt score 100%. These are my answers. Can you please guide which are wrong and what is the correct answer?
Assembly and deployment (only 1 is wrong out of 5 questions).
1) A developer buys a set of third party EJBs. Which of the following are included in the
EJB .jar file?
* a) Bean classes.
* b) Remote interfaces.
* c) Home interfaces.
d) Source code.
2) Deployment-specific information for an EJB is located in:
a) the bean class's BeanInfo class.
b) the properties variable of the home interface.
*c) an XML deployment descriptor.
d) the server's ejb.properties file.
3) Which of the following MUST be declared for a CMP Entity Bean in its deployment descriptor?
*a) Bean class.
b) Database connection factory reference.
*c) Home and remote interfaces.
*d) Primary key class.
4) Transaction isolation levels in EJBs are:
*a) set by the bean developer for bean-managed transactions.
*b) set by the deployer for container-managed transactions.
*c) specified to the method level.
d) specified to the class level only.
5) In deployment descriptors, security roles and method permissions:
a) can be shared across EJBs.
*b) can utilize wildcard characters to authorize multiple methods at one time.
*c) can be defined during deployment.
*d) are mapped to actual user groups during deployment.
Web components development(3 question are wrong in this section)
1) A
servlet counts the number of times it has been called using an incrementCount() method. During testing, the developer verifies that the servlet accurately counts the requests from a number of clients. Which of the following BEST explains this fact?
a) The web or application server supports activation and passivation of the servlet.
b) The HttpServlet class is designed to share state data across all its instances.
* c) The same servlet instance services all the requests.
d) The servlet doGet( ) method has been marked as synchronized.
2) When comparing servlets and JSPs, which of the following are true?
a) JSPs provide better performance than servlets.
b) JSPs may call servlets and servlets may also call JSPs.
* c) A
JSP must be compiled into a servlet before it can be used.
* d) Initialization and destruction behavior is supported in both servlets and JSPs.
3) Which of the following implicit page objects are available for a JSP error page, that is, one with an "isErrorPage=true" page directive?
* a) application
b) throwable
* c) exception
* d) config
4) Which of the following are true with respect to state management in a web application?
a) Type of database ( DB2 UDB, Oracle, Sybase, or InstantDB )
* b) URL Rewriting is an alternative to using cookies.
* c) URL Rewriting does not require any client side configuration.
d) HttpSession information is available to JavaScript code in a web page.
5) Implementing the SingleThreadModel interface :
a) requires all servlet methods be declared as synchronized.
* b) guarantees that synchronization problems will never occur.
c) may have a negative impact on performance.
* d) prevents multiple HTTP request threads from accessing a single servlet instance concurrently.
6) Most web applications require logic for validating form input and determining the next page to display. Given long term maintenance and reuse objectives, what is the BEST design to implement this logic?
a) A JSP that both validates form input and determines the next page.
* b) Validate form input in a JSP and determine the next page in a servlet.
c) Validate form input in a servlet and determine the next page in a JSP.
d) A servlet both validates form input and determines the next page.
Thanks in advance,
------------------
Narasimha Reddy
---------------
SCJP2
IBM OOAD with UML
IBM enterprise connectivity test
Oracle-SQL and PL/SQL.