您的位置:首页 > 其它

山东大学IBM WebSphere认证课自拟题

2015-12-03 09:47 337 查看
QUESTION 1

A Dynamic Webproject is created with the name of projectName, the context root

Of rootName, andthe project location of C:\workspaceName\projectName.An index

page is createdat 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

Answer: A

QUESTION 2

A Dynamic Webproject has a dependency on a third-party JAR file. This Web

project is theonly project in the Enterprise Application project that requires these

classes. Which ofthe following is the BEST way to make these classes available to

the Web project?

A. Import the JARfile into a Java project.Add the Java project as a Web Library Project

in the WAR.

B. Import the JARfile into a Java project. Add the Java project as a Project Utility JAR

in the EAR andcreate a JAVA JAR Dependency in the WAR.

C. Import the JARinto the WebContent/Web-INF/lib folder of the Dynamic Web project.

D. Import the JARinto the Enterprise Application project and create a Java JAR

Dependency in theWAR.

Answer: C

QUESTION 3

Which of thefollowing editors has been designed to edit an XML document that

defines theAction Mappings for a Struts application?

A. Web DeploymentDescriptor editor

B. ApplicationDeployment Descriptor editor

C. Java Visualeditor

D. StrutsConfiguration File editor

Answer: D

QUESTION 4

A developerconfigures Servlet1 with a load-on-startup value of 1 and Servlet2 with

a load-on-startupvalue of 2. What is the effect of this?

A. Servlet1 willload, Servlet2 will load, Servlet1 init(),Servlet2 init()

B. Servlet2 willload, Servlet1 will load, Servlet2 init(),Servlet1 init()

C. Servlet1 willload, Servlet1init(), Servlet2 will load,Servlet2 init()

D. Servlet2 willload, Servlet2 Init (), Servlet1 will load,Servlet1 init()

Answer: C

QUESTION 5

A developer isusing the Web Diagram editor to create a Struts enabled application.

A connectionbetween objects in the editor represents:

A. ResourceArchive files.

B. Resource thatinherit from each other

C. A one-to-oneor one-to-many relationship mapping

D. A data orlogic flow.

Answer: D

QUESTION 6

Which of thefollowing Link Validation options is available through the properties

of a Dynamic Webproject?

A. Automaticallyrename links to files which have been moved or renamed

B. Stop linkvalidation while offline

C. Set up Proxyserver attributes

D. Validate linksin Workspace only, ignore external links.

Answer: A

QUESTION 7

How can adeveloper create a new Web project with Struts support?

A. Select Web-> Struts Project from the new Project wizard.

B. Select Web-> Dynamic Web Project from the New Project wizard, and check Struts

under Web ProjectFeatures

C. Select Web-> Static Web Project from the New Project wizard, and check Struts

under Web ProjectFeatures

D. Create a newDynamic Web Project, in its Deployment Descriptor, switch to the

Extensions tab,select Add Struts Support.

E. Create a newStatic Web Project, in its Properties dialog select Add Struts Support

Answer: B

QUESTION 8

Which of thefollowing JavaServer Faces development tasks is NOT supported by

RationalApplication Developer?

A. Bind a JSF UIcomponent to a JavaBean

B. Create Facestables within another Faces table

C. Use JSTL withJSF

D. Add a customUI component to the Palette view

Answer: D

QUESTION 9

Within PageDesigner, what are the three representations of a page?

A. Page, View,and Run

B. Page, View, andExecute

C. Design,Source, and Execute

D. Design,Source, and Preview

Answer: D

QUESTION 10

Which TWO of thefollowing can be configured from the Servlets Page of the Web

DeploymentDescriptor editor?

A. Load onStartup

B. Web Servlets Binding

C. Tag LibReferences

D. URL Mappings

Answer: A,D

QUESTION 11

Which TWO of thefollowing views are available to assist composing Web pages in

the default Webperspective using Page Designer?

A. Palette

B. Quick Edit

C. Hierarchy

D. Types

Answer: A,B

QUESTION 12

A databaseaccessed by an existing database connection has changed. How can a

developer makesure that the connection displays the correct information?

A. Expand theconnection, select the table which changed and click Refresh from the

context menu.

B. Select theconnection and click Refresh from the context menu.

C. Expand theconnection, select the database and click Refresh from the context menu.

D. Expand theconnection, select the schema and click Refresh from the context menu

Answer: B

QUESTION 13

When using theNew SQL Statement wizard, which of the following is NOT a valid

option forcreating the statement?

A. Let the wizardguide you through creating the SQL statement

B. Use the SQL Builder

C. Create the SQLstatement from an existing JavaBean

D. Manually typein the SQL statement

Answer: C

QUESTION 14

A developer hasbeen sampling the contents of a table repeatedly to view the results

of running anapplication. To view previous results, the developer should:

A. Scroll up inthe Console view to see the previous results

B. Right-clickthe table and select Compare With -> Local History

C. Select theprevious execution in the DB Output view and select the Result tab.

D. Rollback thetransaction repeatedly to reset the table to its earlier state.

Answer: C

QUESTION 15

What steps MUSTbe performed to remove a Web project from a server?

A. Right-click onthe server and select Add and remove projects. Select an Enterprise

Applicationproject that contains the Web application from the Configured projects list

and click Remove.

B. Right-click onthe server and select Add and remove projects. Select the Web project

from theConfigured projects list and click Remove.

C. Right-click onthe Web project and select Remove from Server Configuration. Select

the desiredserver.

D. Right-click onan Enterprise Application project that contains the Web application and

select Removefrom Server Configuration. Select the desired server.

Answer: A

QUESTION 16

Resources definedusing the Deployment tab on the Application Deployment

Descriptor editorwill work on which of the following?

A. On anycompliant J2EE application server.

B. Only on IBMWebSphere Application Servers version 5 and above.

C. Only on IBMWebSphere Application Server Version 6 and above.

D. Only whilerunning the application in the Rational Application Developer test

environment.

Answer: C

QUESTION 17

A developer hasadded an Enterprise Application to the WebSphere Application

Server v6.0 testserver. The developer then makes changes to the Enterprise

Applicationproject's URL mappings. If the Webdeployment descriptor editor

Extensions pagehas reloading enabled, what action, if any, is REQUESTED for the

changes to bepublished to the server?

A. The servermust be restarted.

B. No action isrequired on the server

C. The projectmust be removed and then added to the server from the server context

menu.

D. Result theproject from the server context menu.

Answer: B

QUESTION 18

Which TWO of thefollowing actions will the Server Selection dialog box allow a

developer toperform?

A. Manuallydefine a server

B. Add and removeprojects from the server.

C. Set server asworkspace default.

D. Switch Serverto Debug mode.

Answer: A,B

QUESTION 19

A developer wantsto provide command-line arguments to a standalone Java

application. Thedeveloper should specify the arguments.

A. In theArguments tab of the Run dialog in a Launch Configuration

B. In the ProjectProperties dialog of the Java project

C. Using the RunAs option

D. Using the Runwith Arguments option

Answer: A

QUESTION 20

Which TWO of thefollowing can be set in the Properties Dialog of a Dynamic Web

Project?

A. Refreshinterval of Web contents

B. The containingenterprise application

C. Default server

D. Validationpreferences when building a project

Answer: C,D

QUESTION 21

A developer usesthe New Project Wizard to create a new Dynamic Web project,

accepting all thedefaults during the process. Where will the source and class files be

located for theproject?

A. Separately,with the source under the JavaSource directory and the class files under

the bindirectory.

B. Separately,with the source under the JavaSource directory and the class under the

WebContent\WEB-INF\class directory.

C. Together,under the WEB-INF directory.

D. They arelocated according to the options chosen by the administrator at product

installationtime.

Answer: B

QUESTION 22

Java editortemplates are used to:

A. Configure codeformatting rules

B. Provide aconsistent editor look and feel.

C. Provide aquick way to enter commonly used blocks of code

D. Set themaximum line width and tab indentation values

Answer: C

QUESTION 23

Which of thefollowing CANNOT be performed from the context of the Outline view

for a Java type?

A. Generategetters and setters

B. Applyrefactoring actions to the code.

C. Hide the type'spackage

D. Find all theoccurrences of a selected element

Answer: C

QUESTION 24

A developer plansto add a method to a Java class later in the development cycle.

Under the defaultpreferences, how can the developer keep a reminder for this task?

A. In the PackageExplorer view, from the Java source file's context menu, select Code

Review -> NewLocation

B. From the mainmenu, select Project -> Reminder, and add the comment in the Add

Reminder wizard.

C. In the Javasource file, write a comment that start with the keyword "TODO"

D. Double clickon the marker bar on the left of the source editor to add a breakpoint.

Answer: C

QUESTION 25

Code Templatesfor the Java Editor can be used to customize:

A. The colors andfonts used in the Java editor

B. The formattingrules for Java code.

C. The text inthe comments and code inserted by the code generator.

D. The maximumline width and tab indentation values for Java code.

Answer: C

QUESTION 26

A Web applicationuses two Java libraries that contain conflicting classes. To ensure

the Webapplication is compiled with the desired class, which of the following

actions should adeveloper perform?

A. Browse to JavaBuild Path in the Properties dialog of the Web project, select the

Libraries tab,and uncheck the non-desired class

B. Browse to JavaBuild Path in the Properties dialog of the Web project, select Order

and Export tab,change the order in the build path.

C. Switch to theResources perspective and edit the class file in the project root directory.

D. Move the Javalibrary with the desired class to the WebContent\Web-INF\lib directory

Answer: B

QUESTION 27

A developer needsto locate the implementation of a method in a class that is known

to be in one ofthree projects. The workspace contains a total of 20 projects. What is

the MOSTefficient way to find the method using the Java Search feature?

A. Select thethree project, and select Search from their context menu. Select Method

implementation fromthe Search Type drop-down.

B. Select thethree projects, and select Search from their context menu. Create a Working

Set that containsthe three projects. Select theMethod and implementers radio buttons.

C. Select Search-> Java from the menu. Create a Working Set that contains the three

projects. Selectthe Method and Declarations radio button.

D. Select Search-> Java from the menu. Select Workspace as the Scope. Select the

Method andDeclarations radio buttons.

Answer: C

QUESTION 28

A developer runsthe Supertype Where Possible refactoring wizard against a class

and obtains alist of results. What does this indicate?

A. The design isoptimally tuned, which has now been verified.

B. The design canbe refined at the points found, since a superclass is being referenced

where a subclasswould suffice.

C. The design canbe refined at the points found, since a subclass is being referenced

where asuperclass would suffice.

D. Design errorare identified, avoiding runtime execution bugs

Answer: C

QUESTION 29

A developer wantsto find out which classes override a method inherited from a

specificsuperclass. The developer should:

A. Open theHierarchy view on the method in the superclass and select the method.

B. Open the Hierarchyview on the method in one of the child classes, and then focus on

the method of thesuperclass.

C. Open theHierarchy view on the superclass, select the method and select the Lock

View and ShowMembers in Hierarchy toolbar button.

D. Open the Hierarchyview on any of the subclasses and select the Show Override

Members inHierarchy toolbar button.

Answer: C

QUESTION 30

If a developer isusing the NEW Java Class wizard to create a new class, but does

not enter asuperclass when creating the new class, what will happen?

A. The Finishbutton will be disabled until a superclass is selected

B. Thelast-selected class in the project will be populated in the dialog by default.

C. The java.lang.Object class will be the superclass by default

D. The class willbe created, but will have a compile error upon save.

Answer: C

QUESTION 31

Which TWO of thefollowing pieces of information about an error are displayed in

the Problemsview?

A. A detailederror description

B. A list of resourcesaffected by the error

C. Suggestions onhow to fix the error.

D. The locationof the error

E. The severityof the error

Answer: A,B

QUESTION 32

A Jva classcontains references to two utility classes, java.util.Vector and java

util.Stake, wherethe Stake class extend Vector.Assume the workspace uses the

default importpreferences. After the Organize imports command is executed, what

would the importstatements look like?

A. importjava.util.*,

B. import javautil Vector

C. import javautil.Stake, importJava.util.Vector

D. importjava,util.Stake, java .util.Vector

Answer: C

QUESTION 33

A developer isstepping through an application and encounters the following line of

code:

theAccountpostTransaction(newDepositeTransaction(500.0));

Which of thefollowing will allow the developer to execute this line of code and

proceed to thenext?

A. Click the StepOver button to execute the entire line.

B. Click the StepOver button to execute the constructor for DepositTransaction and once

again to executethe postTransaction method

C. Click theResume button to proceed to the next line.

D. Select thenext line and click the Drop to Frame button

Answer: A

QUESTION 34

A developer hascreated a JSP page and wants to uncover any compilation errors.

The developer canright click on the JSP and select.

A. Profile

B. Compile forDebugging

C. Show Errors

D. Run Validation

Answer: D

QUESTION 35

A developer maytemporarily suspend the effects of a breakpoint by.

A. SelectingDisable from the breakpoint's context menu in the editor area maker bar.

B. Folding thecode that contains the breakpoints in the java editor.

C.Double-clicking on the breakpoint in the editor area maker bar

D. SelectingDisable from the breakpoint's context menu in the Breakpoints view

Answer: A,D

QUESTION 36

A test on a Webapplication running in the WebSphere Test Environment failed

with anapplication exception. What is the easiest way to view the source of the

method that threwthe exception?

A. In the ConsoleView, right-click on the method in exception stack trace and select o

To.

B. In the ConsoleView, click on the method in the exception stack trace.

C. In the ConsoleView, right-click on the error message and select Analyze.

D. In the ConsoleView, right-click on the exception and select Analyze.

Answer: B

QUESTION 37

A developer isusing default filters during step-by-step debugging. Which of the

following willtrigger a user prompt when accessed in this situation?

A. A JSP page

B. A HTML page

C. A Strutscustom tag

D. The DeploymentDescriptor

Answer: A

QUESTION 38

When evaluatingan expression in the Display view of the debugger, which of the

followingcontext-menu commands will show the expression result?

A. Display

B. Execute

C. Inspect

D. Show

Answer: A,C

QUESTION 39

How can adeveloper add a JUnit Test Case into a JUnit Test Suite?

A. In the TestNavigator view, drag the Test Case onto the Test Suite.

B. Right-click onthe Junit Test Suite in the Pakae Explorer view, select import from the

context menu, andchoose JUnit Test Case from the import wizard.

C. Open the TestDescriptor, switch to the Test Suites tab, select the JUnit Test Suite, and

add the desiredTest Case to its list.

D. Add code tocall the Test Case in the JUnit Test Suit's suite( ) method

Answer: D

QUESTION 40

A developer wantsto generate a random number via the "Math random ( )"

command. How canthe developer achieve this task without building a complete

Java class?

A. Open a JavaScrapbook, type "Math.random ( )" highlight the command, and select

Display from thecontext menu.

B. Open a JavaScrapbook, type "Math.random ( )" highlight the command, and select

Execute from thecontext menu.

C. Create a newJUnit Test Case, type "Math.random ( )" and click Run As -> JUnitTest

from the toolbar.

D. Create a newJUnit Test Case,type "System.out.printin(Math.random());and click

Run from the toolbar.

Answer: A

QUESTION 41

A developer isdebugging a Java application. The developer encounters the

following line ofcode while stepping through a method:

account.postTransaction(newDeposite(500.0));

How can thedeveloper step into the post Transaction method?

A. Set abreakpoint in the post Transaction method and step over the line of code.

B. Highlight onlythe post Transaction method in the line of code and click the Step into

button.

C. Highlight thedeposit constructor invocation, select Run to Line and Step Return.

D. Right clickthe post Tarnsaction method in the Outline view and select Run to Method

Answer: A

QUESTION 42

Which THREE ofthe following features are available from the Breakpoints view?

A. Set abreakpoint on a specific line of Java code.

B. Set a JavaException breakpoint

C. Remove allbreakpoints

D. Start a serverin Debug mode

E. Disable orenable breakpoints

Answer: A,B,C

QUESTION 43

A developer wantsto share an application and maintain the configuration of the

projects. WhichTWO of the following mechanisms will accomplish this?

A. Export FileSystem and import File System

B. Export EARFile and import EAR File

C. Projectinterchange

D. SCM repository

Answer: C,D

QUESTION 44

Which TWO of thefollowing are valid customization that can be applied to a

perspective?

A. Size andposition of views

B. Menu items andtoolbar button

C. Colors andfonts

D. Position ofthe tabs used to switch views

E. Keyboardshortcuts

Answer: A,B

QUESTION 45

A developer isdoing a search in the Help window. The developer is interested only

in topics relatedto Developing Web Applications. How can the developer limit the

search to displayONLY results from that section?

A. Append thephrase "Developing Web applications" to the Search field.

B. Click AdvancedSearch, select Developing Web applications in the List of Topics

C. Click Searchscope, create a scope that contains only the topic Developing Web

applications, andselect that scope for the search

D. Click theFilter icon in the window toolbar and create a filter that displays only topics

from DevelopingWeb applications.

Answer: C

QUESTION 46

A developer wouldlike to set up standard template comments for a project for

classes and methodsthat are created. Which of the following options should a

developer use?

A. Window ->Preferences -> Code Templates

B. Window ->Preferences -> Code Style-> Code Templates

C. Window ->Preferences -> Java -> Code Style -> Code Templates

D. Window ->Preferences -> Java -> Appearance -> Code Templates

Answer: C

QUESTION 47

While customizingthe java prespective, a developer manages to unintentionally

remove some ofthe views. How can the developer return the prespective to its

default state?

A. Close andreopen the Java prespective.

B. Close andrestart the Rational Application Developer program

C. Select ResetPrespective from the Window menu.

D. Use the Ctrl-Zkeystroke combination until the prespective is returned to its default

state.

Answer: C

QUESTION 48

Which of thefollowing options should a developer use to change the behavior of the

Java editor?

A. Window ->Preferences -> Editor

B. Window ->Preferences -> Java -> Editor

C. Window ->Preferences - >Workbench -> Editor

D. Window ->Preferences -> Server -> Editor

Answer: B

QUESTION 49

To quickly seedifference in a resource that exists in two different projects, a developershould;

A. Open bothresources in the Java editor and scan both for difference.

B. Use theComparison from Recent History feature of the workbench

C. Use the LocalHistory option for the version currently in test to see the changes that

have beenapplied.

D. Select bothversions of the resource and use the Compare With -> Each Option from

the context menu.

Answer: D

QUESTION 50

A developer iscurrently working in workspace "A" and wants to work in another

previouslycreated workspace "B" What is the MOST EFFICIENT WAY TO

accomplish this?

A. Use the SwitchWorkspace feature

B. Exit RationalApplication Developer and open workspace "B"

C. Attachworkspace "B" to the current workbench session

D. Open a secondRational Application Developer workbench session on workspace "B"

Answer: A

QUESTION 51

Which TWO of thefollowing methods are BEST suited for working with Dynamic

Web projectDeployment Descriptors?

A. Use the Sourcepage of the Dynamic Web project Deployment Descriptor editor

B. Edit the web.xml file directly

C. Use the pagesof the Dynamic Web project Deployment Descriptor editor (except the

Source page)

D. Expand theDeployment Descriptor entry in Project Explorer view and work directly

with the entries.

Answer: C,D

QUESTION 52

An EAR file,which contains a few utility JARs and Web applications, is imported

using theEnterprise Application import Wizard. By default, the utility JARs will beimported into;

A. The EARproject

B. A single Javaproject

C. Separateutility projects

D. Eachreferencing Web project

Answer: A

QUESTION 53

Which TWO of thefollowing statements about project creation using Rational

ApplicationDeveloper are TRUE?

A. A Dynamic Webproject must be associated to an Enterprise Application project when

it is created.

B. A Dynamic Webproject may be created without an associated Enterprise Application

project

C. An ApplicationClient project may be created without an associated Enterprise

Applicationproject.

D. A Static Webproject may be created without an associated Enterprise Application

project.

Answer: A,D

QUESTION 54

Which TWO of thefollowing options are available in the EAR Export wizard?

A. Includeproject build paths and meta-data files

B. NModifyDynamic Web module context roots

C. Select theJ2EE module in the EAR you want to export

D. Export sourcefile.

Answer: D

QUESTION 55

Dtasourcesdefined in the Application Deployment Descriptor editor can:

A. Be altered inthe WebSphere Application Server administrative console

B. Be used by allapplications running on the server

C. Be associatedwith a JAAS alias for authentication purposes

D. Only be usedin the WebSphere Test Environment

Answer: C

QUESTION 56

While debugging aJava application, the developer has stepped into a method, and

has passed thecode that needs to be inspected. To back up the application to the

desired location,the developer should:

A. Place thecursor on the desired line of code in the editor, right-click and select Run to

Line

B. Place thecursor on the desired line of code in the editor, right-click and select Rewind

to Cursor.

C. Select thestack frame of the desired method in the Debug view and click the Drop to

Frame button

D. Create a StepFilter in the Preferences dialog to filter out the current method and

return to theprevious method.

Answer: C

QUESTION 57

What is the bestpractice for a developer to group a number of JUnit test cases

together for onetest session?

A. Select Run-> Run as -> JUnit Test from the main menu, then select the Test Cases in

the Configurationscreen.

B. Open the Newwizard, select Java -> JUnit -> Test Suite, and select the Test Cases to

add to the TestSuite.

C. Create a newJunit Test Case, and create a testAll ( ) method where it makes calls to

all the otherTest Cases.

D. Create a superclass for all the Test Cases, and run the super class as a JUnit Test.

Answer: B

QUESTION 58

A developer isdebugging an application. The program is currently halted on a

method call thatreturns an object. The developer wants to see the value of one of

the fields of thereturned object before actually stepping over the line of code in the

debugger. Thedeveloper should:

A. Highlight themethod call, right-click and select Execute.

B. Highlight themethod call, right-click and select Display.

C. Highlight themethod call, right-click and select Inspect.

D. Hold thecursor over the method call and view the result as tool text

Answer: C

QUESTION 59

A developer isdebugging an application and steps into a method in a Java class for

which there is nosource code in the workspace. However, the developer has source

code for theclass in a JAR file in the local operating system. To continue debugging

this method, thedeveloper should:

A. Right-click inthe editor and select Switch View -> Show Disassembly

B. Drag the JARfile from the operating system and drop it on the current stack frame.

C. Use the StepDebug button to treat the method as compiled code.

D. Click theAttach Source button in the editor and specify the location of the source

JAR.

Answer: D

QUESTION 60

A Java method iscalled periodically from other code. Which of the following is most

efficient WAY FORA DEVELOPER TO CHECK A VARIABLE VALUE IN THE

METHOD AFTER THEMETHOD IS CALLED 12 TIMES?

A. Step throughthe code in debug mode until the method is called 12 times

B. Run the codein debug mode, enabling a breakpoint in the method, and set the Hit

Count to 12 inthe breakpoint's properties

C. Select a lineof code in the method and select Run to Line 12 times from the Java

editor

D. Invoke themethod 12 times in Display mode.

Answer: B

QUESTION 61

A developer isdebugging a JSP page in the WebSphere Test Environment. How can

the developerexamine the cookies values in the Variables view?

A. Click on theFilters button and select "Cookies"

B. Examine thecookies attribute in the context variable

C. Examine thecookies variable

D. Examine thecookies attribute in the request variable.

Answer: D

QUESTION 62

Which of thefollowing ways may a developer use to set a breakpoint in Java source

code?

A. Select Source-> Set Breakpoint from Debug Perspective's main menu bar after

highlighting theline.

B. Double-clickon the marker bar next to the source code line in the Java Editor.

C. Highlight theline of code and click on the breakpoint icon in the toolbar

D. Highlight theline of code and create a Breakpoint Task from the Task View

Answer: B

QUESTION 63

In a JavaScrapbook page, a developer has highlighted the line

system.out.printin("helloworld"). Which of the following describes what happens

when thedeveloper selects Execute from the context menu?

A. "helloworld" is displayed in a popup window

B. "helloworld" is displayed in the Console view.

C. "helloworld" is displayed in the Scrapbook

D. "(Noexplict return value)" is displayed in the Scrapbook.

Answer: B

QUESTION 64

Under whatconditions should a developer enable step-by-step debuing?

A. When the developerwants to set breakpoint at each line in a Java project

B. When thedeveloper wants to have a step-by-step tutorial on how to use the debugger.

C. When thedeveloper wants to be prompted each time a web object is accessed.

D. When thedeveloper wants to see a slide show of how the variable values change

during the courseof the application

Answer: C

QUESTION 65

A developer istesting a web application in the WebSphere Test Environment. How

can the developerfind out the EXACT version of WebSphere being loaded?

A. At thebeginning of the log in the Console View

B. In theProperties dialog of the WebSphere Test Environment in the Servers view

C. From theServer settings in the Workbench Preferences

D. From theServer settings in the Project Properties dialog

Answer: A

QUESTION 66

When creating adatabase connection, a developer is not interested in seeing the

database tableswith a schema name starting with SYS. How can a developer

prevent thesetables from being cataloged under the connection?

A. Include the"where schema<> SYS" in the SQL statement to select the tables

B. Add an ObjectFilter with the criteria "Schema NOT LIKE SYS"

C. Add a SchemaFilter with criteria "Schema NOT LIKE SYS%

D. List theacceptable schema names in the SQL Schema entry field of the Specify

ConnectionParameters dialog

Answer: C

QUESTION 67

A developer canview the results of sampling the contents of a Cloudscape database

table by:

A. Looking in theConsole view.

B. Looking in theResults tab of the DB Output view

C. Opening theresults .sql file in the Cloudscape database folder

D. Selecting thetable and looking in the Outline view.

Answer: B

QUESTION 68

When using theNew SQL Statement wizard, which of the following is NOT a type of

statement thatcan be created?

A. SELECT

B. CREATE TABLE

C. INSERT

D. SELECT DISTINICT

Answer: B

QUESTION 69

What should bedone to prevent the Server Selection dialog box from activating

when a developerruns an Enterprise Application from its context menu?

A. Select the"Set server as project default" option from the Server Selectionwizard.

B. Select the"Do not prompt" option in the Servers view.

C. Create a newserver and select the "Set server as workspace default" option in the

Server Creationwizard

D. Add theproject to the server from the server's context menu.

Answer: A

QUESTION 70

Datasourcecreated in the Application Deployment Descriptor editor can be

accessed by:

A. Applicationsrunning on the server

B. Applicationsin the current workspace

C. Modulescontained in the EAR file where the definition is made

D. J2EEApplication client modules accessing the server

Answer: C

QUESTION 71

A developer hasimported a new EAR file into a workspace . what is the result of

selecting theEnterprise Application and choosing Run -> Run on Server from its

context menu?

A. The ServerSelection dialog box is activated.

B. The " Addand remove projects" dialog is activated

C. The ServerCreation wizard is activated

D. The EnterpriseApplication runs on the workspace default server.

Answer: A

QUESTION 72

What steps MUSTbe performed to add a Web project to server?

A. Right-click onthe Web project and select Add to Server Configuration. Select the

desired server.

B. Right-click onan Enterprise Application project that contains the Web application and

select Add toServer Configuration. Select the desired server.

C. Right-click onthe server in the Server view and select Add and remove projects.

Select the Webproject from the Available projects list and click add.

D. Right-click onthe server in the Servers view and select Add and remove projects.

Select anEnterprise Application project that contains the Web application from the

Availableprojects list and click Add.

Answer: D

QUESTION 73

A standalone Javaapplication creates a log file without specifying a path-name. The

log file will becreated in:

A. The productinstallation directory.

B. The bin subdirectoryunder the product installation directory

C. The rootdirectory of the project

D. The packagefolder in which the main Java class is located

Answer: C

QUESTION 74

Which of thefollowing can be changed using the Enterprise Application import

wizard options?

A. The EARproject name

B. The contextroots of Dynamic Web modules contained in the EAR.

C. The includeddependent JAR files in the EAR

D. The SecurityRoles defined in the EAR.

Answer: A

QUESTION 75

A Struts-enabledWeb application is created with default options. Which TWO of

the followingresources can be found in the WebContent\WEB-INF directory?

A.struts-config.xml

B.ApplicationResources.properties

C. Index.html

D. Web.xml

Answer: A,D

QUESTION 76

A developer wantsto create a Web project that will contain servlets and JSPs for an

application.Starting from a new workspace, the most efficient steps to follow would

be to:

A. Select theFile ->New -> Dynamic Web Project option from the J2EE Perspective

main menu bar,and create a new Enterprise Application Project through the wizard's

options.

B. Select theFile -> New -> Enterprise Application Project option from the main menu

bar, then createa Web Project using the File -> New -> Web Project option.

C. Select theProject -> Dynamic Web option from the Web Perspective main menu bar.

D. Select theProject -> New -> Web Project option from the main menu in any

perspective

Answer: A

QUESTION 77

Which TWO of thefollowing methods below are SAFEST when working with

ApplicationDeployment Descriptors?

A. Use the Sourcepage of the Application Deployment Descriptor editor.

B. Edit theapplication.xml file directly.

C. Use the pagesof the Application Deployment Descriptor editor (except the Source

page)

D. Expand theDeployment Descriptor entry in Project Explorer view and work directly

with the entries.

Answer: C,D

QUESTION 78

Which of thefollowing CANNOT be set using the Dynamic Web project

DeploymentDescriptor editor?

A. The reloadinterval for servlets

B. The portnumber used by the Web container

C. Whether JSPsare pre-compiled

D. The Welcomepages for the Web module

Answer: B

QUESTION 79

To maintainhistory files on a local system for two weeks and then have them

automaticallydeleted after the two weeks passes, how would a developer set the

WorkbenchPreferences?

A. "Days tokeep files" Local History value to 14

B. "FileAssociations" Local History value to 14

C. Java filesarchive value to 14

D. Server filesarchive value to 14

Answer: A

QUESTION 80

Which of thefollowing settings allows a developer to conform to best practices

prescribed by atechnical team?

A. Window - >Preferences -> Java -> Design Rules

B. Window - >Preferences -> Java -> Code Review

C. Window - >Preferences -> Java -> Best Practices -> Code Review

D. Window - >Preferences -> Project -> Design Rules

Answer: B

QUESTION 81

Which of thefollowing BEST describes perspectives within Rational Application

Developer?

A. A perspectiveis a collection of views that facilitate a particular development role.

B. A perspectivecan be customized with different editors, depending on the needs of the

developer

C. Perspectivescan contain other perspectives.

D. Perspectivesare opened as a result of launching external applications.

Answer: A

QUESTION 82

A developercustomizes the Java perspective and wants to save the changes as the

defaultperspective that is opened in the workspace. Which of the following actions

would be BEST forthe developer to perform?

A. Choose Window->Save Perspective As and name the new perspective MyJava;

Choose Window-> Preferences -> Wokbench -> Perspectives, select MyJava and click

Make Default.

B. Choose Window-> Save Perspective , Choose Window -> Preferences -> Wokbench

->Perspectives, select java and click Make Default.

C. Choose Window-> Preferences -> Wokbench -> Perspectives, select Java and click

Make Default.

D. Choose Window-> Perspective Save Current as Default

Answer: A

QUESTION 83

A developer iscurrently working in workspace "A" and wants to work in another

previouslycreated workspace "B" .What is the MOST efficient way to accomplish

this?

A. Use the SwitchWorkspace feature

B. Exit RationalApplication Developer and open workspace "B"

C. Attachworkspace "B" to the current workbench session

D. Open a secondRational Application Developer workbench session on workspace "B"

Answer: A

QUESTION 84

A developer wantsto import a zip FILE INTO A PROJECT without expanding the

contents of thefile. The Developer should use which of the following File ->import

features?

A. File System

B. Zip file

C. Resource file

D. J2EE jar file

Answer: A

QUESTION 85

While updating anexisting servlet in a Dynamic Web Project, a developer

introduces asyntax error that is difficult to fix. In order to recover the original

version of thecode, the developer should:

A. Replace theDynamic Web Project in the workspace with the workspace back up

version

B. Replace theservlet with the previous version from local history.

C. Replace theline of code by highlighting it and selecting Local History from the

context menu.

D. Replace thecode with the previous version by double clicking on the error icon in the

left hand marginof the java editor.

Answer: B

QUESTION 86

What can adeveloper do to allow quick access to a particular Help page?

A. In the mainmenu, click Help-> Bookmark to bring up a list of Help topics, browse to

the desired pageand click Add.

B. In the mainmenu, click Favorites-> Manage Favorites, and select the desired page

from the list ofHelp topics

C. In the Helpwindow, browse to the desired page, and click the Bookmark Document

icon in thetoolbar

D. In the Helpwindow, browse to the desired page, and click Favorites -> Add to

Favorites fromthe menu

Answer: C

QUESTION 87

Which TWO of thefollowing items are shown in the Problems view?

A. Debug output

B. Warningmessaes

C. Error messages

D. QuickFixsuggestions

E. Outstandingtasks

Answer: A,B

QUESTION 88

A company storesJAR files under different subdirectories in a shared directory. A

developer needsmany of the JAR files to compile an application, but the developer

does not want tonavigate to the share directory every time. Which of the following

options in theJava Build Path settings should the developer use?

A. Import

B. Add JARS

C. Add ClassFolder

D. Add Variable

Answer: D

QUESTION 89

A developer wantsto view a list of all of the methods that are available in a

particular class.The developer should:

A. Open the typein the Hierarchy view and select the Show All Inherited Members

button.

B. Open the typein the Hierarchy view and select the Show the Type Hierarchy button.

C. Open an editoron the class and look in the Outline view

D. Set the ShowInherited option in the java -> Outline page of the Preferences dialog

Answer: A

QUESTION 90

The Outline viewin the Java perspective can be used to display:

A. The outline ofthe select Java project

B. The hierarchyof the currently selected Java class on the Java editor view

C. The structuralelements of the selected Java file on the Java editor view.

D. Dependenciesbetween files in the selected Java project

Answer: C

QUESTION 91

Java editortemplates are used to:

A. Configure codeformatting rules

B. Provide aconsistent editor look and feel.

C. Provide aquick way to enter commonly used blocks of code

D. Set themaximum line width and tab indentation values.

Answer: C

QUESTION 92

While editingservlet, a developer decides to override the init (ServletConfig)

method. What isthe MOST efficient way begin this process?

A. Launch the New-> Method wizard and enter the signature for the init method.

B. From withinthe Java editor, type the new init method.

C. Use the Source-> Override/implement Methods context menu item from the Outline

view.

D. Select theSource -> Override/implement Methods context menu from within the Java

editor.

Answer: D

QUESTION 93

In the Javaeditor "folding" refers to the editor's ability to:

A. Break up lineswhich exceed a certain character length.

B. Hide the linesin a method

C. Use a splitscreen to show two parts of the file simultaneously.

D. Only work withthe source of the selected method in the Outline view.

Answer: B

QUESTION 94

How can adeveloper create a new class using the New Java Class wizard, and at the

same time, havethe class implement certain interface?

A. After creatingthe class, type Ctrl-Space to bring up a list of interfaces while editing

the source code,and then choose the desired name to add it.

B. Add an importstatement to the source code via the Organize imports feature

C. Use therefactoring features to create an interface during the class creation.

D. Click theAdd...button beside the interfaces field in the New Java Class wizard.

Answer: D

QUESTION 95

A developer canmanage the dependent JAR files of a Web application from which

TWO of thefollowing?

A. The deploymentdescriptor of the web application

B. The Java JARDependencies in the Project Properties Dialogs

C. The manifestfile of the EAR application

D. The manifestfile of the Web application

Answer: B,D

QUESTION 96

A Java classcontains references to a Date class, but does not have any Date class

among its importstatements. Assume two Date classes java.sql.Date and

java.util.Date-existon the Java Build Path. What happens when the add import

command istriggered on the class name "Date"?

A. The Add importwizard prompts the developer to choose between java.sql.Date and

java.util.Date toimport.

B. The Add importwizard ignores this class reference of the ambiguity

C. Thejava.util.Date class is imported because Java.util comes before java.sql in the

default importorder preference

D. Thejava.sql.Date class is imported because java.sql.Date is a subclass of

java.util.Dateand inherits the same method signatures

Answer: A

QUESTION 97

Which of thefollowing statements are TRUE about the refactoring capabilities

supported byRational Application Developer?

A. The resultantchanges of a refactoring can previewed before the refactoring is done.

B. The resultantchanges of a refactoring cannot all be undone after the refactoring is

done.

C. The scope ofrefactoring is restricted to one java Project at a time.

D. Refactoringcode ensure that compilation problems are resolved.

Answer: A

QUESTION 98

A developerwishes to find concrete implementations of a method that is declared in

an abstractsuperclass. What options should be selected to MOST efficiently locate

these methods?

A. Search forimplementations of the method using the Search For Method and Limit To

implementersoptions

B. Search forimplementations of the method using the Search For Method and Limit To

Declarationoptions

C. Search fortypes that extend the abstract class by using the Search For Type and Limit

To implementersoptions

D. Search fortypes that extend the abstract class by using the Search For Type and Limit

To Referencesoptions

Answer: B

QUESTION 99

Assumingdefaults, a developer can add an entry in the Tasks view using which

TWO of thefollowing options?

A. Highlight apiece of text in the source editor, select Source -> Add Task from the

context menu.

B. Add a commentof the "//TODO" in a Java source file.

C. Right clickanywhere on the Tasks view, select Add Task from the context menu.

D. From the mainmenu, select Window -> Tasks -> Add Task

Answer: B,C

QUESTION 100

In which TWO ofthe following locations can the context root of a Dynamic Web

project bechanged?

A. The Modulespage of the Application Deployment Descriptor editor.

B. The XML sourceof the application.xml file

C. From the J2EEdialog of the Properties of the Dynamic Web project

D. The source ofthe web.xml file

Answer: B,C
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: