This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Product and Other Certifications and the fly likes Webspere 345 exam questions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Certification » Product and Other Certifications
Bookmark "Webspere 345 exam questions" Watch "Webspere 345 exam questions" New topic
Author

Webspere 345 exam questions

Ms Natasha
Greenhorn

Joined: Jan 17, 2003
Posts: 3
Can anybody answer this questions...and post it back?.i marked some questions...please check those too...
thanks
Natasha.
-------------------------
Section / Category % of Test
1. Workbench Basics 17%
2. Java Development 23%
3. Web Development 23%
4. Running Appications 12%
5. Debugging 19%
6. Data 6%
1. In the Java perspective, which of the following CANNOT be created via its own wizard?

A. Package

B. Class

C. Method ********

D. Interface

2. What determines the order of the import statements when the Organize Imports feature for a Java class is used?

A. Alphabetic order across package name order

B. Alphabetic order within package name order

C. The order of packages listed in the project's Properties -> Java Build Path -> Order tab

D. The order of packages listed in Window -> Preferences -> Java -> Organize Imports ********
Select 2 answers.
3. Which of the following are ways to export a WAR file?

A. Select a Web Application in the J2EE view and click the Export WAR File button from the toolbar.

B. Select File -> Export -> WAR file and choose the Web module from the dropdown list of web projects. **********

C. Right-click an Enterprise Application associated with a specific server through the Server Configuration view and select Export WAR File.

D. Right-click a Web Application in the Navigator view on ANY perspective and select Export WAR File.

E. Right-click a Web module associated with a specific server through the Server Configuration view and select Export WAR File.
Select 2 answers.
4. Which of the following statements are TRUE about the Content Assist feature available in Page Designer?

A. To request content assist, press Ctrl+Space. ***********

B. Content assist can be used to complete words in the dictionary.

C. Content assist can ONLY be used on the Source page.

D. Content assist can be used to perform syntax validation of HTML pages. ********
Select 2 answers

5. After selecting a particular help topic returned from a search, a developer wants to navigate to a topic previously viewed from another search. The BEST way to do this is to:

A. Double click on the topic's title in the document view

B. Use the back button in the Help toolbar *******

C. Use the synchronize button in the Help toolbar

D. Press Left Arrow
6. A developer has performed multiple searches. The developer wants to go back to a previous search to review the results again. What is the EASIEST way to do this?

A. Go to the original object and choose the search menu option that was previously selected to populate the Search view with the results.

B. Select the Keep Search Results menu option to open a separate search results window.

C. Use the Previous Search Results drop-down on the Search view.

D. Use the Show Next Search Results icon on the Search view.
7. What view of the Web Perspective lists the files within a developer's project, the associations between these files, and the characteristics of those associations?

A. Properties

B. Links

C. Navigator ****

D. Outline
8. Under which directory are the files of a Java project located by default?

A. workspace

B. WEB-INF ****

C. webApplication

D. application
9. To specify a host variable within the SQL query builder, which syntax is correct?

A. ?

B. ?host_variable_name

C. :host_variable_name ********

D. %host_variable_name
10. A Scrapbook page can be used for which purposes?

A. Make notes and keep code snippets under version control. ****

B. Evaluate expressions and display the results. *****

C. Set breakpoints and debug code.

D. Run code and evaluate expressions in the context of a suspended thread.

E. Experiment with code segments before incorporating them in a formal class method. *****
Select 3 answers.
11. When using Page Designer, what is the BEST way to ensure that all of the headings on all of the web pages in a Web Project have the same font? (Assume that the there are no styles defined within the page.

A. Manually change all of the headings.

B. Use the Heading Editor and CSS Manager.

C. Use a Cascading Style Sheet to set the font for the headings.

D. Use a Cascading Style Sheet to set the font for the headings and then apply the Cascading Style Sheet to each page. ********
12. Within the data tooling, what operations can be applied to a schema?

A. Add a new Table.

B. Delete an existing Table.

C. Apply the schema to a different database.

D. Generate DDL.

E. Rename the schema.

Select 3 answers.
13. A developer wants a JAR file to be made available to all projects in the workbench. The BEST way to do this is to:

A. Add the JAR file to the Java Build Path for each of the projects using the Libraries -> Add External JARs.

B. Add the JAR file to the Module Dependencies for each project using the Web.xml editor.

C. Import the JAR file into each of the projects using the Import wizard.

D. Create a new classpath variable for the JAR file using the Window -> Preferences -> Java -> Classpath Variables
14. If a Web project depends on an utility JAR, what within the Workbench should be modified to indicate this dependency?

A. Create a Dependent JAR project and import the utility jar into it.

B. Add the utility JAR to the Web Project's Java build path.

C. Define the utility JAR in the Web project's web.xml deployment descriptor.

D. Select the utility JAR in the "Available dependent JARs" list of the Web project's module dependencies window
Select 2 answers.
15. A developer needs to export Java classes to be included in the runtime classpath for a deployed web project. The BEST way to export these files is:

A. Use the JAR Export utility to export the Java class files to the application server.

B. Use the WAR Export utility to export the Java class files to the application server.

C. Use the HTTP Export utility to export the Java class files to the application server.

D. Use the File system Export utility to export the Java class files to the application server.
16. Loading a database catalog or metadata into a project is accomplished by:

A. selecting a database element (in DBExplorer view), and clicking the "import to folder" context menu item.

B. selecting a database element (in DBExplorer view), and clicking the "import to project" context menu item.

C. selecting a project (in Navigator view), and clicking the "import database catalog" context menu item.

D. selecting a project (in Navigator view), and clicking the "import database metadata" context menu item.
17. While debugging, a developer steps into a very long method. The developer determines that the problem is not being caused in the first half of the method. The developer would like to quickly execute to a line near the end of the method. Which is the BEST way to achieve this?

A. Click "Go to Line" and enter the line number for the desired line.

B. Set a breakpoint on the line just before the desired line and click "Resume".

C. Click on the desired line and from the context menu select "Run to Line".

D. Click "Step Over" several times until the desired line is reached.
18. A developer can use the Outline view for a class in order to sort methods and variables in:

A. one list.

B. two separate lists.

C. one list according to access modifiers.

D. two separate lists according to access modifiers.
19. While stepping through code, the debugger encounters a breakpoint and suspends the execution of the thread. The breakpoint is at the following statement:
System.out.println("Displaying employee: " + emp.getName() + "\n");
What happens when a developer "Steps Into" this line of code? (Assume the source for the class implementing "emp" is available.

A. The console shows: "Displaying employee: "

B. A dialog indicating that no source is available for java.io.PrintWriter appears

C. The debugger steps into the getName() method of emp

D. A dialog indicating that no source is available for java.lang.StringBuffer appears
20. While creating content for a Java class, what could Content Assist help complete?

A. Automatically add necessary import statements.

B. Generate matching scriptlet tags.

C. Generate ending block and parenthesis characters where needed.

D. Fill in local variable names based on the starting characters.
21. When editing the Properties dialog of a Java project, the purpose of setting the "Build output folder" field on the Source page of the Java Build Path section is to specify the:

A. default folder where the .jar file will be located when the project is built.

B. folder where the .jar file will be located when the project is built.

C. folder where the .jar file, .log file, and other build outputs will be located when the project is built.

D. folder where the class files are placed when Java source code is compiled.
22. When using the JSP ==> Insert Expression menu option, a developer selected the "Current Date and Time" option from the Library field. Which of the following represents the code that would be generated?

A. <%= new java.util.Date(); %>

B. <%= new java.util.Date() %>

C. <% new java.util.Date(); %>

D. <% out.println(new java.util.Date()); %>
23. Which of the following are TRUE regarding method entry breakpoints?

A. Thread execution will suspend before any line of code in the method is executed.

B. Breakpoints can be set from the outline view of the Java source.

C. Breakpoints can be set from the outline view of binary class file.

D. Breakpoints can be set by double-clicking on the dark column on the left side of the Java source editor.

E. Breakpoints can only be reset from the Breakpoints view.
Select 3 answers.
24. Which of the following are FALSE regarding the Display view of the Debugger Perspective: =

A. Variables in scope can be altered.

B. Variables in scope can be inspected.

C. Methods of objects in scope can be executed and their return values displayed.

D. Valid Java expressions can be constructed, executed and their results displayed.

E. Non-contiguous lines of code can be selected and executed.
Select 2 answers.
25. A developer has created a new Enterprise Application Project when importing a WAR into the workspace. Which view BEST supports identifying the modules contained in the Enterprise Application?

A. Packages

B. Navigator

C. Web

D. J2EE View
26. Which of the following session controls are available from the server configuration editor?

A. The default invalidation timeout value

B. The Enable URL rewrite option

C. The Enable protocolswitch rewrite option

D. The Enable SSL tracking option

E. The Enable cookies option
Select 2 answers.
27. Where within the Web project named "sales" should JSP files be located?

A. Sales/source

B. Sales/webApplication

C. Any user defined sub-directory of Sales/webApplication

D. Sales/webApplication/WEB-INF
Select 2 answers.
28. When stopped at a breakpoint in a JSP, which of the following statements are TRUE regarding the Variables and Debug views?

A. The Variables view displays the HTML widgets on the page and their current values.

B. The Variable view displays in scope variables for the generated servlet.

C. The Variables view displays the JSP implicit objects

D. The Debug view displays thread information of the servlet engine.

E. The Debug view shows stack trace information for the HTML stream.
Select 2 answers.
29. During a debug session, a developer makes a change that requires a server restart prior to continued debugging. Which of the following accomplish this task?

A. Reselect the component under test and click on "Run on Server".

B. From the servers view, select the test server and click on "Restart" from the context menu.

C. From the servers view, select the test server and click the "Start the server in debug mode" icon.

D. From the servers view, select the test server and click the "Restart the server" icon.
Select 2 answers.
30A developer wants to deploy a web application to a J2EE application server.
The Web application contains servlets, JSPs and static content. What types of files could the developer export?

A. A JAR file

B. An EAR file ****

C. A WAR file ****

D. Export all the files to the file system.
Select 2 answers.
31. Which of the following side effects occur as a result of creating a data source on a WebSphere Test Server (local or remote)?

A. A database is defined on the addressed database server.

B. A Connection pool is created upon starting the test server.

C. When started, an entry is added to the test server's JNDI namespace.

D. An entry is added to the local database catalog.
Select 2 answers.
32. During a local debugging session, which of the following changes to either the application or the test environment require a restart of the test server?

A. Modifying the servlet to use a different Data Source object

B. Modifying the JNDI name of the Data Source object used for connection pooling

C. Modifying the usebean tag in a JSP to use a different Java class

D. Changing Session Tracking from URL Rewrite to Cookies

E. Changing init parameters for a servlet
Select 2 answers.
33. When using the Create Database Web Pages Wizard, which of the following elements are created?

A. Front Controller - Class that invokes calls on the model and displays an appropriate view.

B. Data Access Broker - Class that encapsulates all the data access calls.

C. Master View - Displays the entire result set of an SQL query.

D. Singleton - Class for which only a single instance exists and provides access to the database
Select 2 answers.
34. A developer has created a custom perspective in order to minimize navigation between several standard perspectives during development. Which task might the developer perform in order to retain the custom perspective?

A. Perspective -> Customize and choose Save from the window.

B. Reset to save changes.

C. Perspective -> Open to create a new empty Perspective.

D. Perspective -> Save As to supply a new name to the revised Perspective.
35. A developer has conducted a search on "servlets" in the Help perspective. The result set for the search was too large for the developer to quickly browse. In which of the following ways can the developer refine the search using the Advanced options window?

A. Explicitly use the word "and" with additional keywords in the search phrase.

B. Put the search word in double quotes.

C. Search for headings only.

D. Search within results.

E. Filter search by topic groups.
For the Web Project named Sales, which folder represents the document root?

A. Sales/webApplication/web

B. Sales/webApplication

C. Sales/web

D. Sales/webApplication/WEB-INF
A developer saves a method that has coding errors. The developer notices that red "X"s appear in the left margin by some of the lines. How can the developer see the problem for a particular line?

A. Hover over the red "X".

B. Double-click on the red "X".

C. Open the Tasks view and read the corresponding error message.

D. Read the error message that appears at the end of the line of code.
Select 2 answers.
A developer is using layers in a project's software architecture, with a "higher" layer A referencing objects in a "lower" layer B. When creating project A using a wizard, how can the developer ensure that project A objects can reference project B objects?

A. Add project B source directories in the "Source" tab for project A.

B. Add project A source directories in the "Source" tab for project B.

C. Select project A in the "Projects" tab for project B.

D. Select project B in the "Projects" tab for project A.
When using the Bean Property Selection dialog browser to insert dynamic content into a JSP from within the Page Designer, which implicit objects can the developer see?

A. request

B. requestContext.

C. application

D. pageConfig
Select 2 answers.
At the time of creating a Web project, if the "Create CSS File" check box is selected, what would be the resultant directory structure of the newly created Web project?

A. /webApplication/source /webApplication/classes /webApplication/lib

B. /source /webApplication/WEB-INF/classes /webApplication/WEB-INF/lib /webApplication/theme

C. /source /webApplication/WEB-INF/classes /webApplication/WEB-INF/lib /webApplication/style

D. /webApplication/WEB-INF/classes /webApplication/lib /webApplication/css.
A developer opens the Type Hierarchy for a class which extends another class. The BEST way to determine whether a particular method overrides any of its superclasses' methods is for the developer to click:

A. Hide Fields.

B. Hide Non-Public Members.

C. Show Subtype Hierarchy.

D. Lock View and Show Members in Hierarchy.
When using the Create JavaBeans Web Pages Wizard, which of the following elements are created?

A. Front Controller - Class that invokes calls on the model and displays an appropriate view.

B. Singleton - Class for which only a single instance exists and provides access to the database.

C. View Helper - Wrappers which do the work of retrieving and displaying the SQL data.

D. Factory - Classes that create the necessary JavaBeans given the type.
Select 2 answers.
A developer is debugging a program, and the debugger has suspended at a breakpoint. The developer needs to change the value of variable "Integer i" from its current value of 10 to a new value of 15. Which of the choices below will accomplish this task?

A. On the Variables view, double-click "i", and change 10 to 15 on the edit field that opens.

B. On the Variables view, select "i". From it's context menu, select "Change Variable Value", and change 10 to 15 on the edit field that opens.

C. On the Variables view, expand "i", select "value=10", and from its context menu, select "Change Variable Value", and change 10 to 15 on the edit field that opens.

D. On the Display view, enter i = 15, select the statement, and from the context menu, select "Display".

E. On the Display view, enter i = new Integer(15), select the statement, and from the context menu, select "Display".
Select 2 answers.
The location of the .java source files can be specified on:

A. the workspace Preferences -> Source page.

B. the project Properties -> Java Build Path -> Source page.

C. individual packages using the package Properties -> Java Build Path -> Source page.

D. individual classes using the class Properties -> Java Build Path -> Source page.

What can a Java Classpath Variable represent?

A. A file, typically a .jar file.

B. The location of a Java JRE.

C. A folder on the file system.

D. Java property file.
Select 2 answers.
Which of the following can be specified or configured in the web.xml file?

A. DataSource and JDBC Driver configuration

B. HttpRequest Configuration (Such as timeouts)

C. JavaBeans References

D. Servlet and JSP URL Mappings
While stopped at a breakpoint in the Debug perspective, how can a developer find the calling sequence that led to the current execution point?

A. Examine the output on the Console view, which contains a line indicating each method entry point.

B. Examine the output on the Outline view, which shows the call sequence when a program is stopped.

C. On the Processes view, expand running threads and examine the call stack.

D. On the Debug view, expand the suspended threads and examine the call stack.

E. On the Navigator view, select the current thread, and from its context menu, select "Call Sequence".
Where can breakpoints be set in JSPs?

A. On lines containing just HTML statements

B. On lines with mixed HTML and Java scriptlets

C. On lines containing just scriptlets or expressions

D. On lines defining or using JSP Custom Tags

E. Only on lines inside the <body> ... </body> tags
Select 2 answers.
A developer has performed multiple searches. The developer wants to go back to a previous search to review the results again. What is the EASIEST way to do this?

A. Go to the original object and choose the search menu option that was previously selected to populate the Search view with the results.

B. Select the Keep Search Results menu option to open a separate search results window.

C. Use the Previous Search Results drop-down on the Search view.

D. Use the Show Next Search Results icon on the Search view.
Within the data tooling, what operations can be applied to a schema?

A. Add a new Table.

B. Delete an existing Table.

C. Apply the schema to a different database.

D. Generate DDL.

E. Rename the schema.
Select 2 answers.
A developer has conducted a search on "servlets" in the Help perspective. The result set for the search was too large for the developer to quickly browse. In which of the following ways can the developer refine the search using the Advanced options window?

A. Explicitly use the word "and" with additional keywords in the search phrase.

B. Put the search word in double quotes.

C. Search for headings only.

D. Search within results.

E. Filter search by topic groups.
Select 3 answers.
When editing the Properties dialog of a Java project, the purpose of setting the "Build output folder" field on the Source page of the Java Build Path section is to specify the:

A. default folder where the .jar file will be located when the project is built.

B. folder where the .jar file will be located when the project is built.

C. folder where the .jar file, .log file, and other build outputs will be located when the project is built.

D. folder where the class files are placed when Java source code is compiled.
 
wood burning stoves
 
subject: Webspere 345 exam questions