You are on page 1of 20

1. What does NOT apply when this script executes? (Choose 2) myapp.

SetTransPool(
12,16,10)
Up to 16 database connections will be supported by myapp
12 database connections will be kept open once successfully connected
X Each DISCONNECT physically terminates a database transaction
X If all connections are in use, the application will wait 10 seconds and
try again
Each DISCONNECT logically terminates the database connections and commit
s any database changes, but does not physically remove them.
1. Using the local variable ls_fname, which is the CORRECT syntax?
X Select firstname into :ls_fname from Employee using SQLCA;
Select firstname into ls_fname from Employee using SQLCA;
Select firstname from Employee into ls_fname using SQLCA;
Select firstname from Employee into :ls_fname using SQLCA;
2. In the DEBUG mode, you can set the breakpoint at a particular line in the scr
ipt by using the _________ view.
source
source history
X source browser
call stack
watch
2. When execution of the debugger is suspended at a breakpoint, what are you abl
e to do? (Choose 3)
Add a new variable.
Change PowerScript code.
X Change the values of variables.
X Examine the values of variables.
X Examine the properties of objects in memory
3. The CloseQuery event of a Window object:
is not executed if the window is closed using the Window close box (x)
returns a 1 if the intent is to close the window
X is executed immediately before the close Window event
is executed immediately after the Close Window event
3. Which of the following statements are TRUE? (Choose 2)
If a Close() is coded in a Response window, the code will not compile.
If a Close() is coded in a Response window, the code will compile but a
run-time error will occur.
X A Response window may be closed via either Close() or CloseWithReturn().
X If a CloseWithReturn() is coded in a non-Response window, the window wil
l not be closed.
3. Which of the following targets cannot be used when creating components?
x JSP
EAServer Component
Automation Server
COM/COM+ Component
Web Service Proxy Wizard
3. The Open PowerScript function can be used to open (Choose 3)
X a window
X an OLE object
a datawindow
X a trace file
an userobject
4. Which of the following is true with respect to the Application s Label Font, He
ader Font and Column Font properties?
They override any default table and column font settings for new DataWin
dow objects created after setting the application defaults.
They are used as defaults for any new tables and columns created after s
etting the application defaults.
X They establish only the defaults for the DataWindow painter and are not
used for any new DataWindow objects.
4. Identify the INCORRECT statements regarding the WindowType property for a win
dow? (Choose 2)
Can be changed at design time
x Can be changed dynamically at run time
Cannot be changed dynamically at run time
x Can be changed at both the design time and also dynamically at run time
4. Which of the following is NOT tab on the System Tree tabs?
Workspace
X Target
Components
Page
Language
4. Which of the following built-in global reference variables are pre-declared a
nd available in all PowerScript targets? (Choose 3)
Connection object
X Error object
X Message object
OLEObject object
X Transaction object
Profiling object
4. Which of the following can be accomplished through the Application s CommandLin
e Argument? (Choose 2)
To override the library search path used to instantiate the application.
X To provide a login id and password.
X To specify the application s INI file.
To specify that the application be run in PBDEBUG mode.
4. Which of the following targets cannot be used when creating components?
X JSP
EAServer Component
Automation Server
COM/COM+ Component
Web Service Proxy Wizard
5. Which of the following statements are TRUE? (Choose 2)
If a Close() is coded in a Response window, the code will not compile.
If a Close() is coded in a Response window, the code will compile but a
run-time error will occur.
X A Response window may be closed via either Close() or CloseWithReturn().
X If a CloseWithReturn() is coded in a non-Response window, the window wil
l not be closed.
5. Which of the following events are NOT associated with the Application Object?
(Choose 3)
Open
X Activate
SystemError
X Error
X Constructor
Idle
5. Which of these CANNOT be inherited in PowerBuilder? (Choose 3)
Pipeline
X Application
Menus
X Datawindow Object
X Global Functions
Transaction
5. RuntimeError class is inherited from the _____________ class?
exception
x throwable
nonvisualobject
powerobject
5. Which of the following statements are true with respect to window properties?
(Choose 2)
The Resizable property may ONLY be set in the painter, and only for non-
Response windows.
The Resizable property may be set through PowerScript, but only for non-
Response windows.
X The Resizable property may be set through PowerScript for any type of wi
ndow.
X The Window Type property may only be set in the painter.
The Window Type property may be set through PowerScript, but only for no
n-MDI Frame windows.
5. window lw_win open(lw_win, w_emp ) If w_emp does not exist, then
script will not compile
script will compile and open a blank window at run-time
script will compile, but will generate a run-time error Object Not Found a
nd return to the application
X The script will compile but will generate a run-time error and terminate
the application.
6. The File -> Run / Preview option can be used to preview which objects? (Choos
e 2)
X Window
Tab Control
Menu
X DataWindow
Custom Visual UserObject
6. Which of the following statements are TRUE about the CloseWithReturn() functi
on? (Choose 2)
X Stores the return value in the message object
X Is valid only if used with a Response window
Is valid only if used with a Popup window
Used instead of the CloseQuery() event
6. After executing the following script, which object is the parent of w_popup2?
w_sheet w_sheet1, w_sheet2 w_popup w_popup1, w_popup2 Open(w_sheet1) Open(w_she
et2) Open(w_popup1) Open(w_popup2)
w_sheet2
X w_popup1
w_sheet1
w_sheet2 s MDI parent
6. The CloseQuery event of a Window object:
is not executed if the window is closed using the Window close box (x)
returns a 1 if the intent is to close the window
X is executed immediately before the close Window event
is executed immediately after the Close Window event
6. Identify the INVALID statements regarding the CloseQuery event? (Choose 3)
x is executed immediately after the close event of the window object
x is executed immediately before the close event of the application object
is executed immediately before the close event of the window
is executed if the window is closed using the window s close box
x returns 0 to prevent the object from closing
6. The following PowerBuilder preferences can be set on the GENERAL tab of the S
ystem Options. They are saved and used the next time you open PowerBuilder. (Cho
ose 3)
X Just In Time Debugging
X Enable PBDebug Tracing
Free Database Driver Libraries on Disconnect
X Reopen Workspace on startup
Enable Tracing
Prompt for Overwrite
(*) PB12 vs Free Database Driver in PB12
7. Which of the following statements are TRUE with respect to Response windows?
(Choose 2)
Response windows may NOT be resized in code.
A Response window s Resizable property may be changed through PowerScript,
allowing it to be resized by the user.
X A Response window s Resizable property may be changed through PowerScript,
allowing it to be resized using PowerScript.
If a window of type Response is opened via OpenSheet(), it will behave a
s a Response window, that is, it will remain the active window until closed.
If a window of type Response is opened via OpenSheet(), it will behave a
s a normal sheet window except that it may not be resized.
X If a window of type Response is opened via OpenSheet(), its behavior wil
l be unpredictable.
7. Identify the INVALID statements regarding the CloseQuery event? (Choose 3)
X is executed immediately after the close event of the window object
X is executed immediately before the close event of the application object
is executed immediately before the close event of the window
is executed if the window is closed using the window s close box
X returns 0 to prevent the object from closing
8. Which of the following tasks can be performed when building a DataWindow XML
Export template? (Choose 2)
Add an XSL Stylesheet
x Add a DataWindow expression
x Add an attribute to an element
Add an object function
8. In a DataWindow control, what are the values in the original source used for?
To restore the DataWindow values on a Rollback
To restore the DataWindow values on a ResetUpdate()
X To be used in the where clause on an Update()
To restore a column value after a failed validation
8. Identify the CORRECT statements with regard to computed field and computed co
lumns. (Choose 3)
When a DW is exported, the computed fields definition is NOT exported wi
th the DW source
X When a DW is exported, the computed column definition is exported with t
he DW source
Computed fields are calculated at the server after the data is retrieved
but before it is displayed.
X Computed columns are calculated at the server when the data is retrieved
.
X Computed fields are calculated at the client after the data is retrieved
but before it is displayed
8. Which is NOT an option for exporting data from a DataWindow into XML?
Using the SaveAs method of a DataWindow Control
X Using the Export/Import Template > XML menu item in the DataWindow paint
er
Describing the DataWindow.Data.XML dot notation in PowerScript
Using the Save Rows As menu item in the DataWindow painter
9. Which of the following combinations of DataWindow update properties is least
likely to result in Row changed between retrieve and update errors?
x Use Delete then Insert Where Clause: Key Columns
Use Update Where Clause: Key and Modified Columns
Use Delete then Insert Where Clause: Key and Updateable Columns
Use Update Where Clause: Key and Updateable Columns
9. Which of the following ways can be used to assign an XML template to a DataWi
ndow? (Choose 2)
On the HTML Generation Tab of the properties pane in the DataWindow Pain
ter, use the drop down to set the value of the UseTemplate property
X In PowerScript, use dw_address.Object.DataWindow.Export.XML.UseTemplate
= t_employee
. In PowerScript, use dw_address.Object.DataWindow.Data.XMLDTD = t_employ
ee
. In PowerScript, use dw_address.Object.DataWindow.Export.XML.Template[1
].Name = t_employee
X On the Data Export Tab of the properties pane in the DataWindow Painter,
use the drop down to set the value of the UseTemplate property
9. Which of the following statements are TRUE with reference to Query Mode and P
rompt for Criteria? (Choose 3)
X Using query mode, you can let the user specify sort criteria.
Query Mode can be used for any of the following presentation styles: N-U
p, Label, Crosstab, RichText, and Graph.
X Using Prompt for Criteria, you can limit the number of columns for which
the users can specify criteria
X Prompt for Criteria automatically generates a drop down listbox for colu
mns that have a code table
Using Prompt for Criteria mode, you can let the user specify sort criter
ia
After the user specifies retrieval criteria in Prompt for Criteria mode,
subsequent calls to Retrieve always uses the same criteria
9. Identify the options that are NOT valid when an Add Child option is selected
for the root element in the Export / Import template pane of the DataWindow pain
ter? (Choose 2)
Processing Instruction
CDATA section
X Cascading Style Sheets ( CSS )
DataWindow Control reference
X HTML
9. Which DataWindow row status would generate INSERTs on Update()?
DataModified!
New!
NotModified!
X NewModified!
10. Which Datawindow update property can be used to ensure that no two users are
updating the same column and row in a database table at the same time? (Choose
2)
Key Columns
x Key and Modified Columns
Use Delete then Insert
x Key and Updateable Columns
10. Identify the VALID datatypes that can be used to define retrieval arguments
for a DataWindow (Choose 2)
X Datetime array
Decimal
X Number
Double array
Boolean
11. Which of the following are NOT views in the DataWindow painter? (Choose 2)
Control List
Design
Preview
X Update properties
Properties
X Retrieve
11. Which of the following tasks can be performed when building a DataWindow XML
Export template? (Choose 2)
Add an XSL Stylesheet
X Add a DataWindow expression
X Add an attribute to an element
Add an object function
11. In what window event would you check for unsaved Datawindow changes?
UpdateStart
Deactivate
X CloseQuery
Other
12. Which is NOT an option for exporting data from a DataWindow Object into XML?
Using the SaveAs method of a DataWindow Control
X Using the Export/Import Template > XML menu item in the DataWindow paint
er
Using the describe function to capture DataWindow.Data.XML property
Using the Save Rows As menu item in the DataWindow painter
12. If you add a column to one of the underlying tables of an existing DataWindo
w Object, what must you do to ensure that the data is entered and saved to the n
ew column in the table? (Choose 2)
X Add the column to the SQL Select statement
Enable the column s Edit-Required property
Set the tab order for the column to 0 (zero)
X Add the column as an Updatable Column in the Update Properties
12. What properties of the Pipeline Object can be accessed via PowerScript? (Cho
ose 3)
X RowsInError
X DataObject
X RowsWritten
PipeMeter
12. What setting in the DataWindow update properties will provide the maximum co
ncurrency checking?
Key columns
X Key and Updateable columns
Key and Modified columns
The Identity property
13. Which of the following templates types can be defined using the DataWindow p
ainter? (Choose 2)
X XHTML
XSL
X XML
HTML
CSS
13. Which of the following styles may NOT have STATIC code table items defined?
(Choose 2)
RadioButton
X CheckBox
DropDownListBox
X DropDownDataWindow
Edit
13. Which Update Property generates the most restrictive SQL WHERE clause on Upd
ate?
Key Columns
X Key and Updateable Columns
Key and Modified Columns
Use Delete then Insert
14. In the ItemError event of a datawindow control, what return value will rejec
t the changes made to a column, but will allow focus to change?
0
1
2
X 3
14. What DataWindow functions when called can cause the DBError event to fire? (
Choose 2)
X Update()
DeleteRow()
X Retrieve()
InsertRow()
14. Data when displayed in the Data Window control is always from the:
Delete Buffer
Original Source
X Primary Buffer
Filter Buffer
15. Custom class user object u_custom_desc is inherited from u_custom. Both user
objects were created with the defaults provided by the painter. The u_custom ob
ject declares an instance variable ii_num of type integer. Both objects have an
identical event named ue_event that returns an integer, and has the following co
de: ii_num++ return ii_num The following code is in a window script. After this
code executes what is the value of li_num? u_custom_desc my_custom integer li_nu
m my_custom = CREATE u_custom_desc li_num = my_custom.event ue_event()
0
1
X 2
4
16. For a class data type passed ReadOnly as a method argument, which of the fol
lowing are TRUE? (Choose 2)
X The method body may change the value of properties of the referenced ins
tance, subject to access restrictions.
The method body may change the value of properties of the referenced ins
tance, regardless of access restrictions.
The method body may change the reference to point to a different instanc
e.
The method body may pass the reference to another method by value, which
in turn passes it by reference to a third method, thereby allowing the referenc
e to be changed.
The method body may Destroy the instance and may Create a new instance i
n its place.
X The method body may Destroy the instance, but may NOT Create a new insta
nce in its place.
15. In the migration of a PowerBuilder 8 Web DataWindow application to PowerBuil
der 10, it is necessary to:
rewrite the application to use EAServer
use JSP s
X change the HTML Generator PowerBuilder 8 component to HTML Generator Pow
erBuilder 10 version
use PowerBuilder Foundation Class
16. Using Code Generation Option of Machine Code instead of PCode ________
X speeds up execution of complex mathematical expressions and looping cons
tructs
creates DLL, which is platform independent
Compiles faster
Produces smaller executable
16. Migration Assistant (Choose 2)
replaces obsolete syntax in PowerBuilder code with current syntaxes
upgrades PBDs to version 9
X checks PowerBuilder code for current syntaxes
X performs custom searches using a text file to define the search and repl
acement strings
17. The Migration Assistant tool will perform which of the following actions?
Migrate an application to a new version of PowerBuilder
X Report on migration issues on an application
List all deprecated functions for a specified version of PowerBuilder
Regenerate objects checking for new key words
17. Custom class user object u_custom_desc is inherited from u_custom. Both user
objects were created with the defaults provided by the painter. The u_custom ob
ject declares an instance variable ii_num of type integer. Both objects have an
identical event named ue_event that returns an integer, and has the following co
de: ii_num++ return ii_num The following code is in a window script. After this
code executes what is the value of li_num? u_custom_desc my_custom integer li_nu
m my_custom = CREATE u_custom_desc li_num = my_custom.event ue_event()
0
1
X 2
4
17. Which class is the ancestor of all exceptions?
Exception
RuntimeError
X Throwable
CorbaUserException
15. Which of these are TRUE regarding functions? (Choose 3)
X Can be declared using commandbutton as the return type
Can be declared using structure as the return type
Can return multiple values to the calling function / event
X Can return only one value to the calling function / event
X Object functions can be called dynamically or statically
15. Using the throw keyword in a function s code means what?
The SystemError event will be triggered.
X The function has encountered said exception.
The function may throw said exception(s).
The function will cause the Error event to be triggered.
18. Which of these are TRUE with regards to User Objects? (Choose 3)
X Visual user objects can be of type standard, custom, and external.
Class user objects can be of type standard, custom, and external.
X An external user object is not the same as an OCX, which you can put in
an OLE control.
Custom class user objects can be used to build a customized transaction
object.
X Custom visual user object is most useful if you frequently group control
s together in a window.
Standard visual user object is used when you have a custom DLL.
18. The default events for a Custom Class user object are:
idle and systemerror
activate and deactivate
open and close
X constructor and destructor
20. A Custom Visual User Object
always consists of one visual control with associated events and functio
ns.
inherits its definition from a standard class user object.
X can inherit its definition from another custom visual user object.
inherits its definition from multiple standard class user objects.
20. A Custom Visual User Object
always consists of one visual control with associated events and functio
ns.
inherits its definition from a standard class user object.
X can inherit its definition from another custom visual user object.
inherits its definition from multiple standard class user objects.
21. Identify the correct way to obtain the number of tab pages on a Tab control.
integer li_count tab ltab_tab userobject luo_TabPage
li_count = ltab_tab.SelectedTab
li_count = UpperBound(luo_TabPage.Control)
X li_count = UpperBound(ltab_tab.Control)
li_count = Count(luo_TabPage)
22. Which of these are NOT the valid events for a TreeView control? (Choose 2)
ItemCollapsed
X ItemChanged
ItemExpanded
ItemPopulate
X ItemActivate
23. UserObject type for creating a control combining several other controls is _
__________
Standard Visual
X Custom Visual
Standard Class
External Visual
24. Which of these are NOT the valid properties of the TreeViewItem object? (Cho
ose 2)
Children
Selected
Expanded
X ItemExpanded
X Parent
25. You need a popup context menu for your TreeView control. In which TreeView e
vent should you put the code to show it?
rbuttonup
rbuttondown
X rightclicked
clicked
26. Which of the following DataWindow control functions will cause database acti
vity to occur?(Choose 3)
X Retrieve()
SelectRow()
X ReselectRow()
X Update()
DeleteRow()
SetRow()
26. Data is being shared by a combination of DataStores and DataWindow controls
whose DataWindow objects have identical result set descriptions. Which of the fo
llowing methods are redirected to the primary when invoked on the secondary? (Ch
oose 3)
X Retrieve
SetTransObject
SelectRow
X InsertRow
SetRow
X Filter
27. The DataWindow Control function SetColumn may trigger which of these events
? (Choose 3)
X ItemChanged
RowFocusChanged
X ItemFocusChanged
LoseFocus
X ItemError
Scrollhorizontal
27. Which of the these statuses are applicable ONLY for rows in a DataWindow obj
ect? (Choose 2)
X New!
NotModified!
DataModified!
X NewModified!
27. What value should be returned from the itemerror event of a DataWindow contr
ol so as to reject the entered data and also prevent the default error messagebo
x from being displayed?
0
X 1
2
4
31. Which of the following would prevent a DropDownDataWindow from being retriev
ed, when the parent DataWindow is retrieved? (Choose 3)
Unchecking the Always Show List option in the DropDownDataWindow edit styl
e.
X Unchecking the AutoRetrieve option in the DropDownDataWindow edit style.
X Retrieving rows into the DropDownDataWindow prior to retrieving the pare
nt DataWindow.
X Inserting a row into the DropDownDataWindow prior to retrieving the pare
nt DataWindow.
Setting the lines in DropDown to 0 prior to retrieving the parent DataWi
ndow.
29. When a DataWindow object associated with a DataWindow control is changed dyn
amically, you must ___________________ prior to retrieval of data
X issue a SetTransObject() call to rebind the database
disconnect and then connect to the database to re-establish the connecti
on
check the SQLCode of the transaction object to verify operation success
issue a SetTransPool() call to rebind the DataWindow to the database
30. What will be the status of a newly inserted row if the value of a column in
the newly inserted row is changed?
New!
NotModified!
DataModified!
X NewModified!
29. Which of the these statuses are applicable ONLY for rows in a DataWindow obj
ect? (Choose 2)
x New!
NotModified!
DataModified!
x NewModified!
31. Select the TRUE statements about the function GetFullState() (Choose 2)
Creates a live connection between a DataStore and DataWindow Control
X Assigns all formatting, data and status flags of a DataWindow Object to
a blob
X Is compatible with CORBA architecture
Can only be used in distributed environments
31. Which Powerscript functions are NOT common to both Datawindow controls and D
atastore objects? (Choose 2)
X Clear()
IsSelected()
PasteRTF()
SelectRow()
X Undo()
32. Which of these methods trigger the DataWindow control s SQLPreview event? (Cho
ose 2)
InsertRow()
x Retrieve()
DeleteRow()
x ReSelectRow()
33. Where can the value of a variable be changed if it is declared as: protected
privatewrite string is_label
Through the script of either the object in which it is declared or the d
escendant object.
X Only through the script of the object in which it has been declared
Only through the script of the descendant object.
Once the initial value is assigned, it cannot be changed anywhere in the
application.
The object in which it is declared, only has read access to this variabl
e.
33. ______________ is an Object Oriented Concept , which bundles related propert
ies and methods in a class.
Overriding
Overloading
Polymorphism
X Encapsulation
Inheritance
33. Classname() function
determines the scope of the variable declared in the class
determines the name of the shared object in a remote server
determines the name of the parent object
X determines the class of an object or the datatype of a variable
34. The class that gets instantiated is called _______________.
x Concrete Class
Base Class
Super Class
Object Class
Abstract Class
35. n_businsess is a custom class user object. n_business autoinstantiate setting
is set to FALSE. Which snippets of code successfully instantiate an instance of
the user object? (Choose 2)
n_business lnv_business
n_business lnv_business lnv_business = create nonvisualobject
x n_business lnv_business lnv_business = create n_business
n_business lnv_business n_business = create lnv_business
x n_business lnv_business lnv_business = create using n_business
34. CommandButton system class is the immediate descendant of ________.
X DragObject
UserObject
Window
GraphicObject
PowerObject
35. Which Object Oriented term refers to a programming language's ability to pro
cess objects differently depending on their datatype or class?
Abstraction
Inheritance
Aggregation
X Polymorphism
36. Where can the value of a variable be changed if it is declared as: protected
privatewrite string is_label
Through the script of either the object in which it is declared or the d
escendant object.
X Only through the script of the object in which it has been declared
Only through the script of the descendant object.
Once the initial value is assigned, it cannot be changed anywhere in the
application.
The object in which it is declared, only has read access to this variabl
e.
37. Assume the following: Ancestor window w_a with the function Set(integer). De
scendant window w_a_dec has two functions Set(integer) and Set(string). In Power
script, open the ancestor window w_a. Which function call will compile correctly
?
x w_a.Set(1)
w_a.Set( Hello World )
w_a_dec.Set( Hello World )
w_a.DYNAMIC Set( Hello World )
38. Which of the following are valid techniques for inheriting from an ancestor
class? (Choose 3)
x Click File and then Inherit from the menu, then select the appropriate a
ncestor library and class in the Inherit From Object dialog.
x Right-click any class in the libraries displayed by the System Tree and
click Inherit from the pop-up menu.
Right-click any class in the Object Browser and click Inherit from the p
op-up menu.
Open the desired ancestor class and click File and then Inherit from the
menu.
x Click the Inherit toolbar button, then select the appropriate ancestor l
ibrary and class in the Inherit From Object dialog
39. How do you call the event ue_foo( ) asynchronously?
X EVENT POST ue_foo( )
POST ue_foo( )
EVENT DYNAMIC ue_foo( )
EVENT STATIC ue_foo( )
41. How can you asynchronously call the event ue_test()? (Choose 2)
PostEvent ue_test()
x Event Post ue_test()
x Post Static Event ue_test()
Post ue_test()
40. ______________ reference is used to call the functions of the ancestor objec
t from a descendant object.
Parent
ParentWindow
This
X Super
AncestorReturnValue
41. Encapsulation is referred to as _______________.
Polymorphism
X Information Hiding
Object Orientation
Multiple Inheritance
Inheritance
42. What occurs when you deploy an EAServer Component Project? (Choose 2)
The pb.ini file that describes the properties of the EAServer component
is updated.
X The CORBA IDL that describes the nonvisual objects being deployed is gen
erated.
An executable file is created for the deployed component.
X One or more PBD files are generated for the deployed component.
42. Which of the following statements regarding properties are TRUE? (Choose 2)
If a component supports Instance Pooling, it should NOT have Automatic D
emarcation set.
If a component supports Instance Pooling, it should NOT have Bind Thread
set.
x If a component supports Instance Pooling, it should reinitialize its pro
perties in the activate event.
When a component Supports Transactions and has Automatic Demarcation set
to TRUE, all operations are atomic.
A component with Automatic Demarcation set should not participate in a l
arger transactional state.
x A component with Automatic Demarcation set may participate in a larger t
ransactional state.
42. _____________ architecture standard is used for invoking methods remotely; b
oth language and platform independent
DCOM
X CORBA (Common Object Request Broker Architecture)
IIOP
JavaRMI
HTTP
42. Which of the following methods is used to instantiate a specified Java class
within the client application s process?
X EJBConnection object s CreateJavaInstance method
EJBConnection object s Lookup method
Connection object s CreateInstance method
Connection object s Lookup method
a proxy object s Create method.
42. In an EAServer Component, the Activate event is mapped to which event id?
pbm_activate
pbm_bind
pbm_clicked
X pbm_ComponentActivate
43. What method of the Connection object is used to obtain a reference to an EJB
Home Interface?
Lookup
GetContextService
CreateInstance
GetServerInfo
42. Which is correct about the Bind Thread property of an EAServer component?
Always needs to be true
Only set true for a stateless component holding data in a DataStore betw
een method invokation
X Only set true for a component making external function calls to non-thre
adsafe methods
Never set true
Only applies in a Unix environment
42. An EAServer shared component (Choose 3)
X lets you work with persistent data.
X provides a way to cache relatively static data.
supports instance pooling.
X provides access to common data.
is always loaded at EAServer start up time.
43. With respect to an EAServer PB component, which of these data types can NOT
be used in a function signature? (Choose 2)
Custom Class User Object
X Any
LongLong
Structure
X Window
43. Which of the following are true while considering component lifecycles? (Cho
ose 2)
X Deactivation only occurs automatically for stateless components, and nev
er automatically for statefull components
Deactivation only occurs automatically for statefull components, never f
or stateless components
Automatic deactivation always occurs regardless of the component state;
statefull or stateless
X Deactivation can occur when SetComplete() or SetAbort() is called by a s
tatefull component
43. The _____________ event on an EAServer component can be used to check for In
stance Pooling
Destructor
Constructor
Activate
X CanBePooled
Deactivate
43. Which of these are INVALID return types from a method in an EAServer compone
nt? (Choose 2)
TabularResults
X DataStore
Structure
X Any
DateTime
44. 4GL web pages provide additional functionality compared to non-4GL. What fun
ctionality is added? (Choose 2)
X Binding controls to data
Client scripting for controls
X Server scripting for controls
Page parameters
46. In which scriptlet symbol set would you enclose a Java expression outputting
a dynamic string value on a JavaServer Page?
<@= @>
<% %>
<%! %>
X <%= %>
44. Server-side events on a 4GL JSP Page must be coded using which language?
X Java
JavaScript
PowerScript
C++
45. Which DataWindow object presentation style is NOT supported by the Web DataW
indow Generator?
Label
Grid
? N-Up
Tabular
Rich Text
45. Which of the following client-side Web DataWindow methods will POST the page
to the Web Server causing it to be reloaded in the browser? (Choose 3)
X InsertRow
X DeleteRow
AcceptText
X Sort
GetItem
SetItem
46. 4GL JSP pages can be deployed to which of the following?
X any JSP 1.2 compliant application server that supports command line depl
oyment
EAServer application server only
TOMCAT application servers only
APACHE servers only
PowerDynamo and EAServer application servers only
48. In a 4GL Web Page, you may not bind a control, i.e. a Text Control, to which
of the following entities? (Choose 2)
X Component property
Form
Another control
X Session Variable
45. Which of these events are NOT present in a Web DataWindow in a JSP?
ButtonClicked
RowFocusChanged
X EditChanged
ItemError
UpdateStart
46. A Web Target can contain which of the following items? (Choose 3)
x Cascading Style Sheet
x GIF file
x HTML Page
User Object
DataWindow
47. " ValueIsHTML DataWindow property
puts the start and closing tags around the value.
X interprets the value as containing an HTML tag when displayed on the Web
.
makes the DataWindow a Web DataWindow.
converts the column values to type String.
48. Which of these events are NOT present in a Web DataWindow in a JSP?
ButtonClicked
RowFocusChanged
X EditChanged
ItemError
UpdateStart
47. Which of the following are events for the PSWebDataWindowClass? (Choose 3)
x OnDBError
GenerateXMLWeb
x Validate
Generate
x BeforeRetrieve
48. Which of these are correct about the JavaScript language? (Choose 2)
x Case Sensitive
x Object Based
Object Oriented
Compiled
Strongly Typed
48. Which client side events are present on the 4GL Web DataWindow? (Choose 2)
X UpdateStart
Validate
BeforeUpdate
X ItemError
49. XML / XHTMLTemplates are __________________
not specific to any DataWindow object
X specific to a DataWindow object
associated with multiple DataWindow objects
global in scope and can be used across all objects
49. How is XML different from HTML? (Choose 2)
parsing rules are loose
X data centric
the document is organized as a hierarchy of elements
X allows user-defined tags
each element is demarcated by angle brackets
49. Which of the following expressions can be used to extract XML from a DataWin
dow dw_1?
dw_1.Object.DataWindow.Data.XMLDTD
dw_1.Object.DataWindow.Export.XML.MetaDataType
dw_1.Object.DataWindow.Import.XML.UseTemplate
X dw_1.Object.DataWindow.Data.XML
dw_1.Object.DataWindow.Export.XML.SaveMetaData
50. What class is the root of all PBDom classes?
pbdom_document
pbdom_doctype
pbdom_comment
X pbdom_object
49. The pbdom_object getName() returns which of the following?
X An element (or tag) name
An XML document name
The name of a DTD
The data value of the element
49. What is the datatype of the array that is passed to the GetContent() functio
n?
PBDOM_BUILDER
PBDOM_ATTRIBUTE
x PBDOM_ELEMENT
PBDOM_CDATA
49. Which is the base class of the PBDOM class hierarchy?
pbdom_document
pbdom_element
x pbdom_object
pbdom_builder
51. Which of the following validates and loads XML documents?
HTMLGenerator100
XMLGenerator100
PBDOM100
X Parser
51. Which PBDom class has a method to create an XML document from a datastore?
pbdom_datastore
pbdom_document
X pbdom_builder
pbdom_data
50. Which of the following can be modified in an XHTML template? (Choose 2)
X Style rules
Data
Server-side processing
X Attributes
51. Which of the following is the base PowerScript class that represents an XML
DOM node in PowerBuilder?
X PBDOM_ELEMENT
PBDOM_COMMENT
PBDOM_OBJECT
PBDOM_ATTRIBUTE
PBDOM_DOCUMENT
51. Which of these functions create web output using template instructions? (Cho
ose 2)
Generate()
X GenerateXMLWeb()
GenerateResultSet()
X GenerateXHTML()
SaveDocument()
52. UDDI browser is incorporated in which of the following wizards? (Choose 2)
X JSP Web Service Proxy wizard
COM/COM+ Component Wizard
EJB Client Proxy Wizard
X Web Service Proxy wizard
UDDI = Universal Description Discovery and Integration
52. PowerBuilder 10 includes a plug-in that provides the _________ functionality
of the PowerDesigner OOM directly inside the PowerBuilder design environment.
Use Case diagram
Object diagram
X Class diagram
Component diagram
Deployment diagram
53. Which of these is a new DLL that must be deployed into every PB10 runtime en
vironment?
PBVM100.DLL
x PBSHR100.DLL
PBDWE100.DLL
LIBJCC.DLL
53. What is TRUE when communicating with a UDDI registry using the Inquiry URL c
ategory? (Choose 2)
The Inquiry URL uses a secure mode of communication.
X The Inquiry URL does not uses a secure mode of communication.
Only a registered user can access published information.
X No authorization token is needed when using inquiry APIs.
53. Which of the following are the valid categories into which UDDI APIs can be
classified? (Choose 2)
Browsing
X Publishing
Registering
X Inquiry
54. Which of the following can be used to create a EAServer Deployment project?
(Choose 2)
X EAServer Component
X EAServer Component Wizard
EAServer Proxy Wizard
Automation Server
54. If you use the PowerDesigner Plug-in s Reverse Engineering feature, which of t
he following PowerBuilder types are fully mapped? (Choose 3)
Menu
DataWindow Object
x Window
x UserObject
x Proxy
55. Which *.pbd s are required in a PowerBuilder Web Service client application?
PBVM100
SOAPCONNECTION
SOAPEXCEPTION
X PBSOAPCLIENT100
55. What does the EAServer repository contain for a deployed PowerBuilder compon
ent? (Choose 3)
x PBD
PBL
Server log file
x Component properties file
HTMLGenerator
x Component IDL
57. What new window controls were added in PB 10.0? (Choose 2)
UDDI Browser
X MonthCalendar
PowerDesigner Plugin
X Animation
57. A UDDI provides what functionality? (Choose 2)
Web Page directories
x Web Service search abilities
The endpoint for a web service
x A WSDL repository
58. The SoapConnection class is used to create a proxy object for a specific Web
service and set options for the connection. The three methods of the SOAPConnec
tion class are: (Choose 3)
x CreateInstance()
Generate()
x SetProxyServerOptions()
GetMessage()
x SetOptions()
59. WSDL is a(n):
x An XML-based language for describing Web Services and how to access them
An HTML language for describing Web Services protocols used by them
rich text document describing the SOAP architecture
an HTML translation of an XML document
59. Which of the following allows publishing and browsing of Web service referen
ces via SOAP and HTTP interfaces?
UDDI proxy
X UDDI registry
WSDL
UDDI Browser
Web Service Proxy Wizard
60. Which PowerBuilder objects have minimal PowerDesigner mapping? (Choose 2)
Window
x Query
UserObject
Function
x Project