This action might not be possible to undo. Are you sure you want to continue?
SAMPLE TEST QUESTION & ANSWER (LATEST UPDATED 2012 – 84 QUESTIONS)
Question: 1 Which view best displays the list of all callers and callers of a selected method? A. Call Hierarchy B. Hierarchy C. Outline D. Package Explorer
Question: 2 When creating a session bean, the default selection for the session bean is to create a remote client view instead of a local client view. This is because: A. Even though a local client view is available, it is a best practice to never use a local client view in a session bean. B. Session beans are normally used to implement facades, and as such, require remote interfaces as opposed to local interfaces. C. A remote client view is easier to use. D. Local client view for session beans has been deprecated.
Question: 3 A developer has closed a view in the Java perspective in the workbench. What can the developer select to recover the original Java perspective layout? A. Window > Delete Perspective B. Workbench > Use Defaults C. Window > Reset Perspective D. File > Recover Defaults
Question: 4 What can a developer manage using Rational Application Developer? A. A single workspace per workbench B. Multiple workspaces per workbench by switching between workspaces C. Multiple workspaces per workbench by organizing them as views D. Multiple workspaces per workbench with additional licenses
Question: 5 A developer has made multiple changes to a Java file. How can the developer switch back to an earlier version of the file? A. Context pop-up menu > Compare with > Local history B. Context pop-up menu > Edit > Reset C. Context pop-up menu > Replace With > Local history D. File > Replace with Previous
Question: 6 A developer has deleted a file from a Java package in a workspace and would like to recover it. What must the developer do after selecting the Java package? A. Use the context pop-up menu option "Restore from Local History" B. Use the context pop-up menu option "Recover from File System" C. Click File > Deleted files and select the file D. Click File > Undo
Question: 7 What are three methods of importing a file from the file system to a Java package in the workbench? (Choose three.) A. Drag and drop the file from the file system to the package in the workbench B. Use the Import wizard from the File menu in the workbench C. Use the context pop-up menu on the package in the workbench and select Import D. Select Search > File in the workbench and then use the Import tab E. Use the context pop-up menu on the file in the file system and select Import to Workbench
Question: 8 How many perspectives can a developer interact with at a time in each workbench window? A. As many as needed if the perspectives are organized as Views B. As many as needed by selecting File > Switch Perspective C. Only one D. One per View
Question: 9 Which application development framework is used to develop highly available, reliable, scalable, and secure Web and client-server applications in Java? A. Hypertext Transfer Protocol (HTTP) B. Standard Widget Toolkit (SWT) C. JavaEnterprise Edition (JavaEE) D. Java Naming and Directory Interface (JNDI)
Question: 10 Which statement is true about the Software Analysis feature? A. It provides a runtime environment to test web resources. B. It is used to debug a wide range of applications. C. It assists in gathering data and metrics on applications that are running. D. It can perform automated code reviews without executing applications.
Question: 11 What is a design pattern in software development? A. A software development methodology which focuses on creating models B. An object modeling and specification language used in software engineering C. A cyclic and incremental software development process D. A proven solution to a common problem within a given context
Question: 12 Which Rational Application Developer feature provides guidance on software development best practices? A. Model driven development B. Process advisor C. Portal development wizards D. Web tooling
Question: 13 A company is looking to implement a software application in which the user interface can be changed frequently without impacting the business layer. Which pattern should be proposed as the BEST solution? A. Model-View-Controller B. Iterator C. Observer D. Session Faade
Question: 14 Which statement best defines a Java project in Rational Application Developer? A. There is only one Java project in a workspace. B. It is defined in the Java Standard Edition specification. C. It contains source code needed to create a Java application. D. It is used to create and maintain Enterprise JavaBeans.
Question: 15 What does the light bulb icon indicate in the Java Code Editor? A. A break point for debug has been defined. B. An error has been discovered, and a quick fix is available. C. A task item has been added. D. A line of code is associated to a bookmark.
Question: 16 Which statement is true about the Create Java Project Wizard? A. It helps create new Java classes with methods and attributes. B. It provides an easy way to deploy Java applications on a specific application server. C. It offers the option to choose between the default JRE or a project specific JRE. D. It automatically creates a user interface to interact with your Java project.
Question: 17 What does the Organize Import feature do when applied to a source code? A. Removes import statements if Theydon belong to java.* or javax.* packages B. creates javadoc for the source code and saves it to a file C. Adds any missing import statements and removes unused imports statements D. Creates getter and setter methods for Java attributes in the source code
Question: 18 Which three automated functions are provided by the Refactor feature? (Choose three.) A. Build project B. Rename C. Add breakpoint D. Move E. Extract Interface F. Create Web service
Question: 19 Which statement BEST describes the Scrapbook feature in Rational Application Developer? A. It shows the output of a process and allows keyboard input to a process. B. It lists all the breakpoints set in the workbench projects. C. It manages the debugging or running of a program in the workbench. D. It is used to quickly run and evaluate a Java expression without creating an executable.
Question: 20 What is the purpose of the UML tools in Application Developer? A. To create all the diagrams defined in the UML specification B. To create UML class diagrams and sequence diagrams C. To visualize UML diagrams but not to create them D. To perform automated UML model analysis
Question: 21 What is the purpose of the Static Method Sequence Diagram? A. To generate Java code from an existing Java code B. To change the qualifier of a method to make it static C. To create a class diagram to visualize Java code D. To visualize existing Java code of a method in a sequence diagram
Question: 22 What is the best course of action if a class in Project A depends on classes in Project B? A. Copy all the classes of Project B in Project A B. Change the Builders property for Project A C. Add Project B in the Java Build Path of Project A D. Remove the dependency between the two projects
Question: 23 Which statement is true about Application Developer Dynamic Web Projects? A. They can only contain HTML files that will be changed frequently. B. They contain resources like servlets, JavaBeans, and HTML. C. They are specifically used to create Enterprise JavaBeans. D. They must be a member of an Enterprise Application project (EAR).
Question: 24 Which file maintains the configuration information for a Web application, such as servlets, filters, or references? A. The Web Deployment Descriptor (weB.xml) B. The Struts configuration file (struts-config.xml) C. thejavadoc file (javadoc.xml) D. The Bindings file (ibm-ejb-jar-bnd.xmi)
Question: 25 What do Project Facets define? A. The build and runtime dependencies between projects B. The format to apply to source code elements in the projects C. The technical characteristics and requirements for a project D. The location of the projects Javadoc documentation
Question: 26 In a Web project, what must the Web Content folder contain? A. Only the static files like images or CSS files B. The source code of the Enterprise JavaBeans C. All the files that are deployed with the Web application D. The source code for Java classes
Question: 27 Which tool should a specialist recommend to visualize and modify the flow of a dynamic Web application based on frameworks like Struts or JSF? A. The Web Site Designer B. The Web Diagram Editor C. The HTML Editor D. The Ant Editor
Question: 28 A company is looking to implement a Web solution in which each incoming and outgoing HTTP request is intercepted. Which implementation should a developer propose as the BEST solution? A. A session faade B. A life-cycle listener C. A servlet filter D. A servlet caching
Question: 29 What is a life-cycle listener in a Web application? A. A Java object compiled as a servlet to create dynamic Web pages B. A proprietary WebSphere extension to allow the Web container to serve static content C. A runtime environment integrated into the workbench for testing Web applications D. An event listener invoked when servlets are created, destroyed, or modified
Question: 30 Which statement is true about the Preview tab in the Page Designer Editor? A. It shows how static information is likely to look when viewed in an external Web browser. B. It displays static and dynamic elements of the page as they will appear in a Web browser. C. It is used to preview the result of a change before it is committed to a repository. D. It gives direct access to the Java source code of the page.
Question: 31 Which action is required to activate the Application Developer JSF tools and wizards? A. Add a Java EE target runtime reference to the web project B. Postfix each web page _JSF C. Enable the Web Developer capability in the workspace properties D. Add the JSF facets to the project
Question: 32 Which two statements are true about Page Templates? (Choose two.) A. They provide a common look and feel for a Web project. B. Changes to the page template are reflected in pages that use that template. C. Page templates are stored as Enterprise JavaBeans. D. Only one Page Template per Web application is allowed. E. Page templates are static pages only.
Question: 33 Which three statements are true about creating an EJB project and enabling the creation of a separate EJB client project? (Choose three.) A. The client project holds the home and component interfaces of the enterprise beans. B. The resulting jar file from the EJB client project can be deployed together with a client application that accesses the EJBs. C. The EJB client project depends on the resulting EJB project, but the EJB project does not depend on the EJB client project. D. The resulting jar file from the EJB client project is added to the containing enterprise application (EAR) as a utility jar.
Question: 34 What must be created when creating an entity bean with container managed persistence? A. A local client view B. A remote client view C. At least one container managed persistence attribute D. A bean super type
Question: 35 Which two mapping options are available when mapping entity CMP beans to a relational database if you have an existing database schema? (Choose two.) A. Top-down B. Bottom-up C. Meet-in-the-middle D. Custom
Question: 36 Rational Application Developer needs the details of the database schema to perform entity CMP bean to relational database mappings. What are two ways to accomplish this task? (Choose two.) A. Import a physical data model by reverse engineering a database schema by connecting to a live database B. Import a physical data model by reverse engineering a logical data model expressed in UML C. Import a physical data model by reverse engineering a database schema file D. Importing a physical data model as described by an ERD diagram.
Question: 37 Which EJB types can be tested with the Rational Application Developer Universal Test Client? A. Local session and entity EJBs B. Local and remote session EJBs only C. Local and remote entity and session EJBs D. Message driven EJBs only
Question: 38 Rational Application Developer provides code snippets to make EJB programming easier. What are two results of invoking the Call an EJB find method snippet? (Choose two.) A. A new EJB reference is added to your EJB. B. A new entity EJB is added to your EJB project. C. The find method of the EJB being referenced is implemented. D. The serviceLocatorMgr.jar file is added to the enterprise application that includes your EJBproject.
Question: 39 A developer creates Web services from JavaBeans using JAX-RPC runtime. Which two java types in the JavaBean can be used for code generation? (Choose two.) A. Java.math.BigDecimal B. Java.util.ArrayList C. Int D. Org.w3c.dom.Element
Question: 40 What are three options for the encoding styles in the Web Service Java Bean Identity page when generating Web services from a JavaBean? (Choose three.) A. RPC/encoded B. RPC/literal C. Document/literal D. Document/encoded
Question: 41 What is the recommended Web service development approach when developing a Web service from scratch? A. Top-down B. Bottom-up C. Meet-in-the-middle D. Round-trip
Question: 42 Which four methods can be used to launch the Web Service Explorer? (Choose four.) A. Launch the Web Services Explorer using the Web Services Wizard B. Right-click the WSDL and choose Web Services > Test with Web Services Explorer C. Launch the Web Services Explorer from the main toolbar D. In the J2EE perspective, click Run > Launch the Web Services Explorer E. File > New > Other > Web services > Launch the Web Services Explorer
Question: 43 Which generated artifact is used to invoke the Web service after the Web service client code generation using the Web service wizard? A. The *Proxy class B. The *Service class C. The *SoapBindingStub class D. The *Service Information class
Question: 44 Which generated class is used to fill in the Web service implementation when Web services are created from a WSDL document? A. The *Service class B. The *Impl class C. The *PortType class D. The *Bean class
Question: 45 A developer adds a new WSDL operation to an existing valid WSDL in the WSDL editor. What's the next step to finish the editing? A. Regenerating a port type B. Regenerating a port C. Regenerating a binding D. Regenerating a service
Question: 46 A developer has been using Application Developer on the same machine for some time and across several workspaces. When starting up the test application server, error messages appear in the SystemOut.log for applications which do not exist in the current workspace and which are no longer required. What is the best way to stop these errors from occurring? A. Use the Add and Remove application options from the servers view and remove the applications which are no longer required B. Remove the workspace from which the applications were originally published C. Edit the Server configuration and remove references to them D. Open the administration console and select Uninstall application for the application no longer required
Question: 47 A team is developing a set of related enterprise applications which run on the same application server and use the same set of third party java library. During testing they discover that the java library is very large, causing the Web Sphere Application server to run out of heap space. What is the best solution to this problem? A. Remove the Jar from each EAR, add the jar file to its own Enterprise Application project, and deploy this application separately to the same application server B. Optimize the JVM settings within the Administration Console to increase the maximum and minimum amount of heap size and increase the frequency of garbage collection C. Include the library in the enhanced EAR description of the Enterprise Application projects from Application Developer D. Remove the Jar from each EAR and add the jar file as a shared library in the Administration Console
Question: 48 A developer has added a Message Driven Bean to an EJB project which already has session beans working. Which additional resources must be configured for the server to make the Message Driven Bean work successfully? A. Database connections for the database resources used by the bean B. Security roles for the actions resources available from the bean C. Jms settings for the queues used by the bean D. Additional shared library resources for the activities performed by the bean E. Transactional support across several calls by the bean
Question: 49 An application is being run in Application Developer and needs some resources from the local Web Sphere Application Server. Which four resources can be configured as application resources from the Administration console? (Choose four.) A. Data sources B. Shared java libraries C. JAVA Messaging Services (JMS) configuration D. WEB application URLs available to security roles E. Groups from an LDAP server which map to security roles
Question: 50 A developer is creating a J2EE Application Client which calls a method on an EJB which is running on a Web Sphere Application Server v6.1 server. Which of the following actions are performed in the Java code of the client application? (Choose three.) A. Initialize the machine name and port of the server where the EJB is running B. Use a JNDI String look up the EJB home interface from the Initial Context reference C. Call the create() method on the home reference bean D. call the business method on the bean sub
Question: 51 What information is collected when Execution Time Analysis is chosen as a Profiling Analysis Type in Rational Application Developer? A. How many classes are loaded, how many objects are active, and how much memory is used by each class B. Which areas of the code are not exercised by a particular scenario C. How many times each method is called and the average time each call takes D. The time the application takes to run and the amount of time spent waiting for other systems or in third party libraries
Question: 52 Which definition best describes the activities of an Agent Controller when performing profiling on a remote server? A. A software process running on the development machine which sends commands and processes responses from the remote server B. A software process on the remote server which allows external systems to interact with the profiling Process C. Also on the remote server D. A software process on the remote server which directly interacts with the application server processes by executing the commands received from the development machine E. A software process on the remote server which gathers variables and information about the current code context by monitoring the heap and the Java process information and sends it back to the development machine
Question: 53 Which four views are available by default when profiling an application deployed to an application server within Rational Application Developer and running in the Profiling and Logging perspective? (Choose four.) A. Object References B. Execution Flow C. Variables D. Method Invocation E. Memory Statistics
Question: 54 An application developer is using Enhanced EAR functionality to simplify configuration of the application in test environments. Which of the following can be configured in an Enhanced EAR? (Choose three.) A. Data sources to an SQL Server database B. JVM parameters for the Application Server process C. Login configuration to be used to contact a JAAS enabled server D. The location of shared java libraries which could be used by all deployed applications
Question: 55 Which type of breakpoint executes a set number of times? A. Recursive Breakpoint B. Hit Count Breakpoint C. Method Breakpoint D. Conditional Breakpoint
Question: 56 Which method can be used to determine any excessive object creation in a Java application? A. Automated code review B. Application profiling using TPTP C. application prototyping using TPTP D. Performance testing using TPTP
Question: 57 What is the purpose of the step bug command during a debugging session? A. To execute the next line of code or statement B. To execute the currently selected line of code or statement C. To suspend the currently selected line of code or statement D. To step to the next line of code or statement
Question: 58 You are debugging a dynamic JSP application. How do you view performance and statistical data about the code you are working on? A. Use the Log Navigator view B. Install Rational Performance Tester C. Use the Profiling Monitor view D. Open the problems view
Question: 59 What comprises a test unit when testing an application using JUnit? A. One JSP page B. A single application to be tested C. The smallest testable part of an application D. A single Java class
Question: 60 You are recording an automated TPTP test case against a Web project. What should you do first to ensure that your test is correctly recorded? A. Restart your browser session B. Clear your browsing history C. Create a fresh Java project D. Clear your browser cache
Question: 61 What is compared with the Compare function in the workbench? A. files B. views C. workspaces D. projects
Question: 62 A customer wants to adopt a recognized software development best practice by conducting performance analysis on its applications. Which feature Rational Application Developer can be used by developers to collect runtime data and detect application problems such as memory leaks and performance bottlenecks? A. Profiling B. Portal development C. Refactoring D. automated code review
Question: 63 What can a developer do using the Declaration view? A. view the source code of a referenced type or method within a class B. view a list of all the breakpoints set in the workbench C. modify Java classes and add new code D. view the hierarchy of a type (subtypes and supertypes)
Question: 64 What is the easiest and most effective way to promote an EJB method to the local interface? A. invoke the “Promote to Local Interface” action from the Enterprise Bean menu in the Java editor B. invoke the “Promote to Local Interface” action from the Enterprise Bean menu in the Outline view C. hand-code the EJB method signature in the local interface D. update the method signature in the EJB implementation class to automatically update the local interface signature
Question: 65 What are two purposes of an EJB diagram? (Choose two.) A. to visualize the details of an EJB without the use of a code editor B. to modify the details of an EJB, such as create a new method or create an EJB relationship C. to understand all files included in the implementation of an EJB D. to view an EJB’s deployment descriptor details
Question: 66 What is the Web service client deployment descriptor when a JAX-RPC 1.1 Web service client is generated? A. webservices.xml B. webserviceclient.xml C. weB.xml D. web-service-client.xml
Question: 67 Which four types of client projects can be used when a Web service client is generated from a WSDL? (Choose four.) A. Dynamic Web project B. EJB project C. Java Utility project D. Application client project E. Plug-in Project
Question: 68 The Enhanced EAR functionality allows a developer to include some application configuration properties and configurations in an EAR file to simplify deployment. Where in Application Developer can the developer configure data sources that will be available to the EAR? A. from the Deployment tab when viewing the application deployment descriptor in the default editor within RAD7 B. from the Extensions tab when viewing the Web deployment descriptor in the default editor within RAD7 C. from the Administration Console, navigate to the target server, select data-sources, and define a new configuration D. from the “Create tables and data sources” option from the context menu on the servers tab
Question: 69 What is stored in a CAR archive file? A. Application Server configuration B. J2EE client application C. Enterprise JavaBean application and associated configuration D. Java EE Connector Architecture (JCA. Application) E. static Web application
Question: 70 Using Application Developer the lead developer of a small team has created a standard server configuration. How can the developer share the configuration among the team during the development process to ensure they use a consistent server? A. use the “Export server configuration to server” option from the context menu on the servers view and distribute the archive file B. use the “Import server configuration from server” option from the context menu on the servers view and distribute the archive file C. create a servers project which stores the configuration and check it into source control D. create an enhanced EAR file for the enterprise application under development and include all the required server resources before distributing the EAR among the team
Question: 71 You wish to analyze a set of code against the seven rule category for Java code best practice. Which rule set should you use to run an automated code review? A. Java Globalization Code Review B. J2EE Best Practice Code Review C. Java Complete Code Review D. J2SE Best Practice and Performance Code Review
Question: 72 What is used to create a breakpoint that suspends when a value changes? A. Recursive Breakpoint B. Hit Count Breakpoint C. Method Breakpoint D. Conditional Breakpoint
Question: 73 A Dynamic Web project is created with the name of projectName, the context root of rootName, and the project location of C:\workspaceName\projectName. An index page is created at WebContent\index.html. When the project is deployed on the default Server, what is the URL address for accessing the index page? A. http://localhost.9080/rootName/index.html B. http://localhost:9080/rootName/WebContent/index.html C. http://localhost:9080/WebContent/Index.html D. http://localhost:9080/projectName/Index.html E. http://localhost:9080/workspacename/projectName/WebContent/index. html
Question: 74 A Dynamic Web project has a dependency on a third-party JAR file. This Web project is the only project in the Enterprise Application project that requires these classes. Which of the following is the BEST way to make these classes available to the Web project? A. Import the JAR file into a Java project. Add the Java project as a Web Library Project in the WAR. B. Import the JAR file into a Java project. Add the Java project as a Project Utility JAR in the EAR and create a JAVA JAR Dependency in the WAR. C. Import the JAR into the WebContent/Web-INF/lib folder of the Dynamic Web project. D. Import the JAR into the Enterprise Application project and create a Java JAR Dependency in the WAR.
Question: 75 Which of the following editors has been designed to edit an XML document that defines the Action Mappings for a Struts application? A. Web Deployment Descriptor editor B. Application Deployment Descriptor editor C. Java Visual editor D. Struts Configuration File editor
Question: 76 A developer configures Servlet1 with a load-on-startup value of 1 and Servlet2 with a load-onstartup value of 2. What is the effect of this? A. Servlet1 will load, Servlet2 will load, Servlet1 init(),Servlet2 init() B. Servlet2 will load, Servlet1 will load, Servlet2 init(),Servlet1 init() C. Servlet1 will load, Servlet1init(), Servlet2 will load,Servlet2 init() D. Servlet2 will load, Servlet2 Init (), Servlet1 will load,Servlet1 init()
Question: 77 A developer wants to open the Java Browsing perspective in the workbench. Why might they not find the perspective in the "Window > Open Perspective" menu? A. The perspective has to be created by selecting the desired views. B. The perspective needs to be imported from the Workbench Perspective Repository. C. The perspective is not included with the workbench. D. The perspective can be found by selecting the "Other" option.
Question: 78 A company wants to implement a software application in which they hide the complexity of the business layer (EJBs) to the front-end layer. Which pattern should a developer propose as the BEST solution? A. Command B. Session Faade C. Singleton D. Data Access Object
Question: 79 Within Page Designer, what are the three representations of a page? A. Page, View, and Run B. Page, View, and Execute C. Design, Source, and Execute D. Design, Source, and Preview
Question: 80 Which TWO of the following can be configured from the Servlets Page of the Web Deployment Descriptor editor? A. Load on Startup B. Web Servlets Binding C. Tag Lib References D. URL Mappings
Question: 81 Which statement best defines the Code and Content Assist feature? A. It detects performance problems in Java applications. B. It is available for Java code only. C. It provides suggestions to complete a code statement. D. It is triggered when the F1 key is pressed
Question: 82 What is the Page Designer Editor in a Web project? A. an HTML and JSP editor for developing Web pages both visually and textually B. an HTML and JSP runtime environment C. an HTML and JSP editor with Debug, Analysis, and Quick Fixes tabs D. an HTML and JSP online help
Question: 83 A company wants to implement a Web solution based on the JavaServer Faces (JSF) technology. Which type of project is the BEST solution to develop new JSF components? A. Enterprise JavaBean project B. Static Web project C. Data Development project D. Dynamic Web project
Question: 84 Which of the following JavaServer Faces development tasks is NOT supported by Rational Application Developer? A. Bind a JSF UI component to a JavaBean B. Create Faces tables within another Faces table C. Use JSTL with JSF D. Add a custom UI component to the Palette view
This action might not be possible to undo. Are you sure you want to continue?
We've moved you to where you read on your other device.
Get the full title to continue reading from where you left off, or restart the preview.