IFSM247 – Introduction to PowerBuilder

Quiz #3

 

 

MULTIPLE CHOICE

 

1)       Functions can be defined at which of the following levels:

a)       Application

b)       DataWindow

c)       Menu

d)       Window

 

2)       A user wants to execute the code attached to the clicked event of a command button.  The button is named cb_save.  Which of the code statements below are valid?

a)       Clicked!.cb_save.TriggerEvent()

b)       exec cb_save.TriggerEvent(Clicked!)

c)       run cb_save.TriggerEvent()

d)       cb_save.TriggerEvent(Clicked!)

 

3)       To define a menu shortcut key, you precede the shortcut letter with which symbol:

a)       ^

b)       %

c)       &

d)       -

 

 

TRUE OR FALSE

 

4)       The application open event must open a window.

 

5)       Menus are attached to a window using the menu painter.

 

6)       Functions can be attached to window controls.

 

7)       To create or edit a global function you must use the function painter.

 

8)       A function can return a visual object such as a line or rectangle.

 

9)       A function can return multiple data items.

 

10)   In PowerBuilder arguments are usually passed by reference.