Euxx's pages / Test 282, IBM VisualAge for Java, Professional Edition V3
Euxx's pages / Test 282, IBM VisualAge for Java, Professional Edition V3
Code Assist can be thought of as a tool to: /2
help find classes, methods and fields you are looking for without having to refer to class library reference information
list the methods and fields available for an object or class
generate code from the specifications of the Composition Editor
generate code from the bean-info page of a Class Browser
Which of the following can be exported into a VisualAge for Java repository file? /2
Open editions of entire projects or individual packages
Individual classes or interfaces
Individual methods
Versioned editions of entire projects or individual packages
Which of the following can be contained in a JAR file: /2
.mf (manifest) file
.gif files
.class files
.java files
Which of the following are valid VisualAge for Java connections in the Composition Editor? /2
Event-to-method
Event-to-code
Event-to-breakpoint
Parameter-from-code
Bean property editors: /2
should be implemented as classes with the name format XYZPropertyEditor, where XYZ represents the name of the class for which the Property Editor provides custom editing
may provide a getTags() method which returns an array of String values representing the values that a property may take
must implement the java.beans.PropertyEditor Interface
may provide a public Component getCustomEditor() method which returns a complete GUI component with which to customize the property.
In VisualAge for Java, Professional Edition, the default character that is used to indicate that a particular edition/version is loaded is: /1
*
=
#
@
A project is represented by a: /1
blue circle with a "P" in it
blank sheet of paper
yellow box
manila folder
The Beans List Window is available from the: /1
pop-up menu of an JApplet
Tools menu of the Visual Composition editor
pop-up menu of a JTextField
pop-up menu of a JPanel
Which of the following statements are true with respect to VisualAge for Java, Professional Edition code management? /2
When a method is deleted, it is deleted from the Workspace and the code repository.
When a class is versioned, its methods are automatically given the same name.
When an edition of a program element is replaced, VisualAge also replaces the editions of the program elements that it contains.
When an edition of a program element is replaced, the replaced program element is no longer in the workspace (although it is still in the repository).
The RMI registry: /2
must be run on the 1099 port number
can be started automatically when VisualAge for Java is launched
provides access to remote server objects
is a Visual Bean
The Select Data Access Bean: /2
provides an execute() method
implements the TableModel interface
requires a database connection
is a Visual Bean
In VisualAge for Java, the developer is allowed to select Inspect code within a: /2
Scrapbook
method definition pane
Debugger
class definition pane
A breakpoint: /1
will be cleared automatically after the code is run
can be placed on a variable declaration
will be cleared automatically if the method in which it was inserted is changed in any way
when inserted, is placed on the nearest statement that can have a breakpoint
According to the Servlet Interface (javax.servlet.Servlet), which of the following methods MUST be implemented by a servlet (or one of its superclasses): /2
init( )
service( )
doGet( )
doPost( )
The typical deployment of a servlet involves which of the following: /1
The servlet must be registered with the Servlet Engine before it can be found by a URL used in a web browser.
The servlet's class file is placed in one of the directories in the CLASSPATH of the Servlet Engine
The Servlet Engine must be stopped and then restarted before the new servlet can be loaded.
The servlet is serialized and placed in the root directory of the Servlet Engine.
How can multiple copies of a bean be added to the free-form surface? /2
use the duplicate option
use the Sticky option (by holding the Ctrl key while selecting the item)
copy the bean and paste it multiple times
use the copy multiple option
Given the following method signatures implemented by a class, select which bean features will be automatically recognized by Bean introspection: public String getAccountNumber(); protected void setAccountNumber(String); public boolean isOverdrawn(); public void setOverdrawn(boolean); /2
Readable/Writeable overdrawn property
Readable/Writeable accountNumber property
Read only accountNumber property
Read only overdrawn property
Write only overdrawn property
The Beans List Window: /2
must be manually updated when JavaBeans are moved
will display a '+' sign next to the Java Bean if it contains other JavaBeans
can be used to select a bean that is difficult to directly select in the Composition Editor
allows JavaBeans in the list to be selected and opened
Which statements about VisualAge for Java connections are true? /2
Properties of connections cannot be changed
Event-to-code and Parameter-from-code connections enable the developer to connect to non-public methods of the composition JavaBean
A connection has a source and a target
Connections can be used to connect properties of JavaBeans.
If the intent was to create a CustomerInfoView bean that could be reused by adding it to other JPanels, which of the following would be the MOST appropriate way to enable other beans to get and set the values of the name and phoneNumber properties? /1
Promote the this property of both JTextFields to the CustomerInfoView bean interface
Promote the text property of both JTextFields to the CustomerInfoView bean interface
Create public static methods in CustomerInfoView that are responsible for getting and setting the values in the JTextFields
Promote the required properties of the variable bean (that represents the Customer bean) to the CustomerInfoView bean interface
VisualAge for Java uses visual connections to: /2
connect features of JavaBeans
change JavaBean properties based on some event
model JavaBean relations as UML
create new bean features
When creating a method with a SmartGuide: /2
the return type may be specified
it is not possible to create a constructor
access modifiers may be specified
exceptions that the method throws may be specified
it is possible to specify the method as abstract
A JAR file that contains an Applet: /2
is the only way to distribute Java code to web browsers
is specified in the ARCHIVE parameter of the APPLET tag
cannot contain resources, such as .gif files
is downloaded as a single unit from the Web Server
Which of the following statements are true about VisualAge for Java connections? /2
Connections are not part of the Java specification
User defined code cannot be included in methods generated by VisualAge for connections
Connections have properties that can be changed
Events are usually the target of a connection
When developing an application window, the initial values of its attributes may need to be set. This is BEST done by using the: /1
Visual Composition Editor to create connections to attributes of its beans
property sheet of the beans in the Visual Composition Editor.
class library editor
class library settings in the Workbench Options
Property-to-property connections: /2
can be unidirectional
must be between beans of the same type
synchronize attribute values
link events or methods of property beans
The Data Access Beans can be used to access: /2
database views
analysis and design documentation
database queries which use SQL statements
database tables
SQLJ statements: /2
can contain only dynamic SQL statements
are specified by preceding a valid SQL statement with the #sql token
may be embedded into source code via a VisualAge for Java Source pane
can be used in conjunction with JDBC statements
True or False: The Workbench window allows Java code to be highlighted and executed. /1
True
False
Multiple errors have been detected while saving a method in a Class Browser. Which of the following may assist in resolving the errors? /2
After saving the method with errors, go to the All Problems page on the Workbench and use the previous and next problem arrows to highlight and view error descriptions
The suggested corrections provided by the VisualAge with the associated errors can be applied
After saving the method with errors, use the previous and next problem arrows in the Class Browser to highlight and view error descriptions
Use the inspect feature of the debugger to determine the location of the errors
Options available in the debugger include: /2
step over
step into
step around
run to return
Which of the following are true about the Beans List window in the Composition Editor? /2
It is not possible to open a bean's property sheet
Beans in the list will be reordered if the tabbing order of the beans is changed
It is possible to make bean connections using the Beans List window
Beans in the list can be reordered by dragging and dropping
In VisualAge for Java, bookmarks: /2
have hover help to indicate where they are pointing
are discarded by selecting the Remove Bookmark option on their pop-up menu
can be set to any Project, Package, Class, Method, or Field
can only be used in the Projects page
What is added to the Visual Composition Editor free-form surface as a result of tearing off a color property of a bean? /2
A copy of the property
A property-to-property connection
A ColorEditor bean
A variable
What is the MOST common reason for promoting a bean property in the Composition Editor? /1
To add the property to the preferred features list for the bean
To promote the property to the bean's superclass
To enable the property to be utilized by another bean during visual composition
To place the bean on the bean palette
When creating a version of multiple classes: /2
alphanumeric version names are not permitted
a version name can be supplied, but it must end with a number
a version name can be supplied
all of the classes can be given the same version name
the system can automatically generate a name
True or False: Only program elements that are in the workspace can be changed. /1
True
False
Which of the following actions will cause something to be stored in the repository? Each time a: /2
project is created
package is created
method is saved
class is created
breakpoint is inserted or removed
By default, code written in the Scrapbook runs in the context of which class: /1
java.util.Hashtable
java.lang.Object
java.util.Date
java.io.FileOutputStream
java.awt.Frame
When importing a JAR file into a Project, VisualAge extracts any resource files and places them in the: /1
Scrapbook
current working directory
Project's resource directory
IBMVJava root directory
Workbench
Which of the following can be exported into .class files? /2
Individual packages
Individual classes
Individual methods
Entire projects
The public interface of a JavaBean includes: /2
Properties
Methods
Events
Actions
Constrained Bean properties: /1
fire propertyChanged events before and after the property is modified
must provide an addVetoableChangeListener() method
cannot have changes vetoed by a listener
cannot be bound
A disabled breakpoint is represented by: /1
a red diamond
a blue ball
a grey ball
a yellow diamond
When using a bean's property sheet to edit the properties for a bean in the Composition Editor: /2
properties can be arranged by type in order to easily locate similar properties
the act of selecting the value field for a property can result in the display of a drop-down list that provides a list of values from which to select
expert properties cannot be displayed on the property sheet
curly braces ('{ }') in the value field of a property indicate that there is no property editor for that property
A new event (AlarmBellEvent) related to alarms needs to be implemented. The event will be used to signal alarms which occur inside buildings. This new event should contain information indicating the time, floor location, and type of alarm (fire, flood, etc.) that has occurred. Which of the following statements are true concerning a typical implementation: /2
AlarmBellEvent should implement the java.util.EventListener interface
The constructor for AlarmBellEvent should require parameters for the building which raised the alarm, the alarm type, the time, and the floor location.
AlarmBellEvent should provide public getters for alarm type, time and floor
AlarmBellEvent must extend the java.awt.AWTEvent class
When promoting JavaBean features in VisualAge, which of the following are true? /2
Other beans can now make connections to the promoted feature
Feature promotion can be performed from the Beans List window in the Composition Editor
It is common practice to promote all public methods
It is possible to promote JavaBean properties, methods and events
Which of the following statements are true? /2
Parameter-from-property connections connect a parameter to a connection property
Event-to-code connects a JavaBean event to a method in the current JavaBean being edited in the composition editor
Parameter-from-method uses the result of a method to connect to a connection parameter
Parameter-from-property connections connect a property to a connection parameter
Which of the following are true when using RMI? /2
Server objects are registered with the RMI Registry
Client objects are registered with the RMI Registry
The stub is on the client side and the skeleton is on the server side
The skeleton is on the client side and the stub is on the server side
Which of the following are true with respect to configurations of Java solutions that allow many individual clients to access a database on a centralized host computer: /2
a web browser can utilize a Servlet which in turn can access the database through a database driver.
a web browser can run an Applet which in turn can access the database through a database driver.
an Applet must go through a Servlet to gain access to a database.
a Servlet should use the Java Native Interface (JNI) to gain access to a database.
Which of the following statements are true in regards to tearing off JavaBean properties in the Composition Editor? /2
Tearing off a property can be necessary when a property is itself a JavaBean and you want to connect to one of its features
The Data Access beans do not provide support for tearing off properties
The result produces a property-to-property connection with a variable bean that represents the torn-off property
Tearing off a property and placing it on a JPanel with result in the display of a Quick Form (a default GUI) for the property
Examples of visual JavaBeans are: /2
Stack
Button
TextField
Window
Bound properties for a JavaBean: /2
require the bean to provide a addPropertyChangeListener() method
indicate properties which signal when changes to the property occur
cannot be derived, i.e. they must be stored in fields
may be determined by Introspection
Which of the following are available from the Window pull-down menu: /2
Log
Scrapbook
Debugger
Class Browser
In which window would the output from the following source code be displayed? System.out.println("some output"); /1
System
Log
Scrapbook
Console
In IBM VisualAge for Java, unresolved problems in a saved method are represented by: /2
A gray X next to the class
A red dot in the method source
A red X next to the method
A log entry
Which of the following is true about Quick Forms? /1
They can be used only on a parent that has a null layout since Quick Forms themselves provide no support for layout managers
They are available only for those properties whose type is one of the base Java data types (e.g. - int, boolean, etc.)
A custom composite visual bean can be registered as a Quick Form for use with properties that have an object type
All properties are assigned a default Quick Form
Remote Method Invocation: /2
is supported by the VisualAge for Java IDE
includes the rmic and RMI registry tools
provides access to SQL databases
is IBM's proprietary Object Request Broker (ORB) implementation