Slide 1: 510-306
Powerbuilder 8.0 Developer Associate Exam: 510-306
Demo Edition
C
CERT MAGIC
1 http://www.certmagic.com
Slide 2: 510-306
QUESTION: 1 You write a script that uses dot notation to manipulate a DataWindow column property. What is the behavior when the property name is misspelled? (For example: dw_1.Object.emp_name.Visibl = "0")
A. B. C. D.
The script will not compile. The script will compile, but the code in the DBError event will execute at run time. The script will compile, but the code in the Error event for dw_1 will execute at run time. The script will compile, but the code in the ItemError event for dw_1 will execute at run time.
Answer: C
QUESTION: 2 Select three examples of script that correctly enable sharing of data among three DataWindows: the primary DataWindow that contains the data (dw_primary), and two secondary DataWindows that will display the same data (dw_secondary1 and dw_secondary2).
A. dw_primary.SetTransObject(SQLCA) dw_primary.Retrieve( ) dw_primary.ShareData( dw_secondary1 ) dw_primary.ShareData( dw_secondary2 ) B. dw_primary.SetTransObject(SQLCA) dw_primary.ShareData( dw_secondary1 ) dw_secondary1.ShareData( dw_secondary2 ) dw_primary.Retrieve( ) C. dw_primary.SetTransObject(SQLCA) dw_primary.ShareData( dw_secondary1 ) dw_primary.ShareData( dw_secondary2 ) dw_primary.Retrieve( ) D. dw_primary.SetTransObject(SQLCA) dw_primary.Retrieve( ) dw_secondary1.ShareData( dw_primary ) dw_secondary2.ShareData( dw_primary )
Answer: A, B, C
QUESTION: 3 In a DataWindow control, if the user clicks on a row other than the current row, which event should be used to determine both the current row and the new row?
A. B. C. D. E.
RowChanged ItemChanged RowFocusChanged ItemFocusChanged RowFocusChanging
2
http://www.certmagic.com
Slide 3: 510-306
Answer: E
QUESTION: 4 Which painter is used to associate a datawindow object with a datawindow control at design time?
A. B. C. D. E.
application painter datawindow painter library painter database painter window painter
Answer: E
QUESTION: 5 Which of the following Targets are considered Web Targets?
A. B. C. D.
EAServer Component Dynamo WebSite WebSite Migrate PowerSite 7.1 Project(s)
Answer: B, C, D
QUESTION: 6 For which two controls does GetItemAtPointer( ) return a reference to the item under the cursor?
A. B. C. D.
ListBox ListView TreeView DropDownListBox
Answer: B, C
3
http://www.certmagic.com
Slide 4: 510-306
QUESTION: 7 Which is NOT a built-in global variable of an application?
A. B. C. D.
SQLCA Error Transaction Message
Answer: C
QUESTION: 8 Which project is indicated for building a client application to access an EAServer component?
A. B. C. D.
Application Wizard Connection Object Wizard EAServer Component Wizard EAServer Proxy Wizard
Answer: D
QUESTION: 9 What function is called to dynamically add a tab control to a window?
A. B. C. D. E.
Show() OpenTab() OpenSheet() InsertObject() OpenUserObject()
Answer: E
QUESTION: 10 Two object-level functions with the same name but with argument lists that vary in number or in datatype are said to be _____.
4
http://www.certmagic.com
Slide 5: 510-306
A. B. C. D.
extended overlayed overridden overloaded
Answer: D
QUESTION: 11 What type of data source can be used with a DataWindow but not with a Pipeline?
A. B. C. D.
query SQL select statement external stored procedure
Answer: C
QUESTION: 12 The Timer event of a window can be initialized with which function?
A. B. C. D.
Start() Idle() Sleep() Timer()
Answer: D
QUESTION: 13 Which of following will center a main window, w_sheet, opened as a sheet within a MDI frame, w_mdi?
A. B. C. D.
At design time, select the center property checkbox of w_sheet. In the open event of w_sheet, set this.center = TRUE. In the open event of w_sheet, set w_mdi.center = TRUE. Sheets cannot be centered within an MDI frame.
5
http://www.certmagic.com
Slide 6: 510-306
Answer: B
QUESTION: 14 The Throws clause of a method signature should include:
A. B. C. D.
A list of the checked exceptions that are caught by the method. A list of the checked exceptions that may be thrown by the method. A list of the checked exceptions that are either caught or thrown by the method. A list of all exceptions that are either caught or thrown by the method, regardless of their type.
Answer: B
QUESTION: 15 Which of the following presentation styles are NOT supported by the WEB DataWindows?
A. B. C. D. E. F.
Composite Crosstab Freeform Graph Group N-Up
Answer: A, D
QUESTION: 16 If multiple sheets are open in an MDI Frame and the user selects a different open sheet, what Window event would the developer code to re-initialize any instance variables on the sheet before allowing user access?
A. B. C. D.
Show Key Activate Open
Answer: C
6
http://www.certmagic.com
Slide 7: 510-306
QUESTION: 17 Which of the following display an objects inheritance hierarchy? (choose two)
A. B. C. D. E.
Browser Library Painter System Tree Script View Debugger
Answer: A, D
QUESTION: 18 Using listbox lb_1 to show the order in which events are executed for a datawindow control, the following line of code is added to each event of the datawindow control: lb_1.AddItem(<event_name>) // where event_name is the name of the event For example, the constructor event starts with: lb_1.AddItem(constructor) Which of the following properties should also be set for the listbox control lb_1?
A. B. C. D.
Sorted = False BringToTop = False VScrollBar = True Enabled = True
Answer: A
QUESTION: 19 Examine the following code: long ll_retval ll_retval = 7 CloseWithReturn(this, ll_retval) Where is the return value after the CloseWithReturn is executed?
A. Message.WordParm B. Message.DoubleParm C. Message.StringParm
7
http://www.certmagic.com
Slide 8: 510-306
D. Message.PowerObjectParm
Answer: B
QUESTION: 20 If you code the following (given emp_id is a valid integer column name) what will happen? integer li_i li_i=dw_1.object.emp_id.selected
A. B. C. D.
This code will not compile. li_i will contain the number of rows selected. li_i will contain an array of the selected emp_id's. This code will successfully compile, but will return an error at run time.
Answer: D
8
http://www.certmagic.com