|
Question 1. A JSP needs to setup a resource once in its lifecycle. This is BEST done by: A. overriding init () in a JSP declaration B. overriding jsp init () in a JSP declaration C. writing code in a script let D. adding a default constructor Answer: B Question 2. A developer wishes to create a JSP custom tag with a parameter, called sate. The value of the date parameter is used to look up news items for a specific date, so that these can be used in the JSP. Which of the following MUST the developer do in order to get access to the date parameter in the tag implementation class? A. Provide a public instance variable of type java.util.Date.called date. B. Provide a method with the signature: public void set Date (java.util.Date) C. Provide a method with the signature: public void set Sate (Java.lang.String). D. Use the get Parameter method of the Tag Context object to get the date. E. Use the get Attribute method of the Tag Data object to get the date. Answer: C Question 3. A customer's enterprise application is developed with a strong focus on performance and scalability on IBM Web Sphere Application Server V.5 several database vendors have to be supported. The enterprise developer decides to encapsulate calls to entity beans by façade session beans. Which design for the entity beans would fit BEST? A. CMP entity beans providing local interfaces B. CMP entity bean providing remote interfaces C. BMP entity beans providing local interfaces D. BMP entity beans providing remote interface Answer: A Question 4. While testing the create method of a CMP entity bean using the Universal Test Client of IBM Web Sphere Studio Application Developer, the following exception is thrown: Exception: COM, ibm db2.jdbc.DB2Exception:[IBM][CLI Driver][DB2/NT] SQL0803N one or more value in the INSERT statement, UPDATE statement, or foreign key update caused by a DELETE statement are not valid because the primary key, unique constraint or unique index identified by "1" CONSTRAINS TABLE "library. patron" FROM HAVING DUPLICATE ROWS FOR THOSE COLUMNS. Sql state = 23505 Which of the following should the developer suspect? A. The Data source in the Server Configuration is wrong. B. The ejb Create method has a bug. C. The create method has a bug D. The ejb Post Create method has a bug Answer: B Question 5. A IBMBankOnline.com customer with multiple accounts can transfer funds from one account to another. When transferring funds, source and destination accounts cannot be the same .Assuming the Account object is uniquely identifiable by the customer number and account type, what task should NOT be performed to complete this requirement? A. Define a serializable Account key class. B. Declare the two fields that uniquely identify an account as public members of the Account key class. C. Implement the equals and hash code methods on the Account key class. D. Override the EJB Object's is identical method in the Account bean class. Answer: D Question 6. While testing an enterprise application using the Universal Test Client of IBM Web Sphere Studio, an exception is thrown. The developer sets breakpoints in the suspected code, and finds that the exception is thrown at 'A' //Handle cart Handle=...;//deserialize from a file... Cart cart = (Cart)cart Handle.get EJB Object(); // <..."A" Cart. purchase(); Cart. remove(); Which of the following lines of code will help correct this exception? A. (EJB Object) javax.rml. Portable Remote Object. Narrow (cart Handle.get EJB Object (), Cart. class) B. (EJB Object) (cart Handle.get EJB Object() C. Javax. rml. Portable Remote Object. Narrow (cart Handle.get EJB Object(), Cart. class) D. (Cart) javax.rmi. Portable Remote Object. narrow (cart Handle.get EJB Object (), Cart. class) Answer: D Question 7. After creating a message-driven bean (MDB) in a new workspace, a developer codes the business logical for the bean. How can the developer proceed to test the function of the MDB? (Assume server configuration is correct and server has started.) A. Select the MDB and from it's context menu select Run on Server. B. Use the EJB test client to call the on Message method of the bean. C. Use the EJB test client to place a message on the listener port for the MDB. D. Develop a Java Client application that uses JMS to place a message on the MDB's destination. Answer: D Question 8. A developer has designed entity beans based on the domain model and needs to map the persistent fields with an existing legacy database. Which technique is BEST when using Web Sphere studio Application Developer? A. top-down mapping B. meet-in-the-middle mapping C. bottom-up mapping D. FIELDS-TO-COLUMNS MAPPING Answer: B Question 9. An enterprise application is located on a server machine and is performing poorly. The servlets are accessing entity beans on the server. The server load is heavy and database activity is moderate. To BEST improve the application's performance the developer should: A. Create more indexes on the database. B. Use client - side transactions in the application. C. Use session beans on the server to apply multiple changes at a time. D. Add memory to the server. Answer: C Question 10. After creating a message-driven bean (MDB) what configuration setup MUST be performed on a new test server before the MDB can be tested? A. Create a JMS connection Factory and destination B. Set Web Sphere MQ start when the test server starts C. Create a JAAS authentication alias D. Create the listener port E. Set any necessary message selectors for the MDB Answer: A, D Question 11. When using container-managed relationship between entity beans which type of the relation would require a cascading delete to be declared? A. association B. composition C. ejb-relation D. bidirectional Answer: B Question 12. Which of the following statements are True for EJB Query Language (QL) as defined by the EJB 2.0 specification? A. EJB QL queries can be used with BMP entity beans B. EJB QL applies to CMP entity beans only C. The ejb Select method can return local EJB objects. D. The entity beans must provide a local interface Answer: B, C Question 13. When developing EJB 2.0 applications which of the following guidelines should be followed? A. Use a session faced as the entry point for business logical B. Local interfaces are recommended to take advantage of RMI/IIOP. C. Use static instance variables on EJB to maintain state. D. Generally entity beans should use container-managed persistent Answer: A, D Question 14. Exhibit: Refer to the exhibit to answer the question. Which categories of EJB might A and B belong to? Select the NEST match. 1. Stateless session bean 2. Stateful session bean 3. Message-drive bean 4. CMP ENTITY BEAN 5. BMP entity bean A. A-1,2,5,B-5 B. A-1,2,3,4,B-2,5 C. A-1,3,B-2,5 D. A-1,2,3,B-2 E. A-2,3,B-1 Answer: D
|
Question 1. When working with DUOS, it is important to handle the Save Dialog message appropriately. The user has a record displayed on the screen and they make a change to that record. What next action would cause the save dialog to appear? Choose the 3 that apply. A. Clicking on the Save Button B. Clicking on the Browse Buttons C. Clicking on the Lookup Button and selecting another record D. Closing the window Answer: B, C, D Question 2. You’re created some VBA customizations and are ready to distribute them to the end users. What is the recommended way to distribute customizations and which file will you give to the end users? A. Package tile B. Forms.dic C. Reports.dic D. Dynamics.vba Answer: A Question 3. Using VBA, what type of events exist for Microsoft Dynamics GP reports? Choose the 3 that apply. A. Start Events B. End Events C. Band Events D. Field Events Answer: A, B, C Question 4. When working with multiple VBA projects, what needs to be done in order to reference fields from one project to another? Choose the 2 that apply. A. Mark a circular reference between the projects B. The same object must be added to each project C. Mark a reference from one project to another D. When referencing the object in the code window, the object must be fully qualified Answer: C, D Question 5. If DUOS tables were used in the VBA project, when distributing, where do the DUOS tables need to exist? A. In the same location as the Dynamics.dic B. In the same location as the Dynamics set file C. In the same location as the System files D. In the same location as the Company files Answer: D Question 6. You have customized a Microsoft Dynamics GP window using Modifier and VBA on a workstation. You would like to use the customizations on another workstation so you create a package file which includes only the customizations you made. What will be affected when the package file is imported on another workstation? Choose the 2 that apply. A. Dynamics.vba B. Reports.dic C. Security D. Forms.dic Answer: A, D Question 7. In VBA what needs to be done in order to use DUOS methods and properties? Choose the 2 that apply. A. Declare the collection B. Declare the object C. Mark the Required Declaration Option D. Mark a reference to the DUOS tables Answer: A, B Question 8. When working with DUOS objects, what would the “for” and “next” statement do? A. Change multiple objects in the DUOS table B. Change one object in the DUOS table C. Change multiple objects in the collection D. Change one object in the collection Answer: C Question 9. In Report writer, which field type has the suffix FREQ appended to it when added to the VBA project? A. Control Count B. Count C. Sum D. Average Answer: B Question 10. What code would be used to update the DUOS table with the value of the Email Address field on the window? A. CustomerObject.Properties (“Email Address”) = EmailAddress B. CustomerObject.Properties (EmailAddress) = “Email Address” C. EmailAddress = CustomerObject.Properties (“Email Address”) D. “Email Address” = CustomerObject.Properties (EmailAddress) Answer: A
Copyright © 2004 CertsBraindumps.com Inc. All rights reserved.