Quiznetik
Window Programming | Set 1
1. Frames is
A. the exterior of a window.
B. the interior of a frame window.
C. windows used for input/output that are placed on a panel window
D. None of these
Correct : A. the exterior of a window.
2. Panels is
A. the exterior of a window.
B. the interior of a frame window
C. windows used for input/output that are placed on a panel window
D. None of these
Correct : B. the interior of a frame window
3. Controls are
A. the exterior of a window.
B. the interior of a frame window.
C. windows used for input/output that are placed on a panel window
D. None of these
Correct : C. windows used for input/output that are placed on a panel window
4. A panel window is a window
A. which can only exist inside a frame win- dow
B. which can not exist inside a frame win- dow
C. which can exist outside the frame win- dow
D. none of these
Correct : A. which can only exist inside a frame win- dow
5. These exist ——— panel windows inside the same frame window.
A. Several
B. Only one
C. None
D. None of these
Correct : A. Several
6. Button in window programming
A. displays text and can be clicked with the mouse or spacebar
B. a checkmark which the user can select
C. a list from which one item can be se- lect
Correct : A. displays text and can be clicked with the mouse or spacebar
7. Checkbox in window programming
A. displays text and can be clicked with the mouse or spacebar
B. a checkmark which the user can select
C. a list from which one item can be se- lect
Correct : B. a checkmark which the user can select
8. Combobox in window programming
A. displays text and can be clicked with the mouse or spacebar
B. a checkmark which the user can select
C. a list from which one item can be se- lect
Correct : C. a list from which one item can be se- lect
9. Groupbox in window programming
A. does nothing except draw a rectangle, it is used to visually group controls to- gether
B. displays text
C. for input of multiple lines of text
D. none of these
Correct : A. does nothing except draw a rectangle, it is used to visually group controls to- gether
10. Label in window programming
A. does nothing except draw a rectangle, it is used to visually group controls to- gether
B. displays text
C. for input of multiple lines of text
D. none of these
Correct : B. displays text
11. Memo in window programming
A. does nothing except draw a rectangle, it is used to visually group controls to- gether
B. displays text
C. for input of multiple lines of text
D. none of these
Correct : C. for input of multiple lines of text
12. All the classes necessary for Windows pro- gramming are in the module
A. win.txt
B. win.std
C. win.main
D. none of these
Correct : A. win.txt
13. Window class, onCreate/1 ,defines
A. is executed when a visible window is being created
B. is executed when a window is being closed, it is possible to prevent the win- dow from closing
C. when the background of a window must be erased this event is executed
D. when a window must be re-painted this event is executed
Correct : A. is executed when a visible window is being created
14. Window class, on Close/2
A. is executed when a visible window is being created
B. is executed when a window is being closed, it is possible to prevent the win- dow from closing
C. when the background of a window must be erased this event is executed
D. when a window must be re-painted this event is executed
Correct : B. is executed when a window is being closed, it is possible to prevent the win- dow from closing
15. Window class, onEraseBackground/1, de- fines
A. is executed when a visible window is being created
B. is executed when a window is being closed, it is possible to prevent the win- dow from closing
C. when the background of a window must be erased this event is executed
D. when a window must be re-painted this event is executed
Correct : C. when the background of a window must be erased this event is executed
16. Window class, onPaint/2, defines
A. is executed when a visible window is being created
B. is executed when a window is being closed, it is possible to prevent the win- dow from closing
C. when the background of a window must be erased this event is executed
D. when a window must be re-painted this event is executed
Correct : D. when a window must be re-painted this event is executed
17. Window class, onShow/2, defines
A. is executed when a window is becom- ing visible or is being hidden
B. when a window is being disabled or en- abled this event is executed
C. this event is executed when the user switches to another window of the same application
D. when a window receives the keyboard focus this event is executed
Correct : A. is executed when a window is becom- ing visible or is being hidden
18. Window class, onActivate/2, defines
A. is executed when a window is becom- ing visible or is being hidden
B. when a window is being disabled or en- abled this event is executed
C. this event is executed when the user switches to another window of the same application
D. when a window receives the keyboard focus this event is executed
Correct : C. this event is executed when the user switches to another window of the same application
19. Window class, onEnable/1, defines
A. is executed when a window is becom- ing visible or is being hidden
B. when a window is being disabled or en- abled this event is executed
C. this event is executed when the user switches to another window of the same application
D. when a window receives the keyboard focus this event is executed
Correct : B. when a window is being disabled or en- abled this event is executed
20. Window class, onKBFocus/3, defines
A. is executed when a window is becom- ing visible or is being hidden
B. when a window is being disabled or en- abled this event is executed
C. this event is executed when the user switches to another window of the same application
D. when a window receives the keyboard focus this event is executed
Correct : D. when a window receives the keyboard focus this event is executed
21. Window class, onSetCursor/3, defines
A. the window wants to know what cursor it must display for the mouse pointer
B. the mouse is moved over a window
C. when a mouse button is pressed this event is executed
D. a mouse button is released
Correct : A. the window wants to know what cursor it must display for the mouse pointer
22. Window class, onMouseMove/5 , defines
A. the window wants to know what cursor it must display for the mouse pointer
B. the mouse is moved over a window
C. when a mouse button is pressed this event is executed
D. a mouse button is released
Correct : B. the mouse is moved over a window
23. Window class, onMouseDown/5, defines
A. the window wants to know what cursor it must display for the mouse pointer
B. the mouse is moved over a window
C. when a mouse button is pressed this event is executed
D. a mouse button is released
Correct : C. when a mouse button is pressed this event is executed
24. Window class, onMouseUp/5 , defines
A. the window wants to know what cursor it must display for the mouse pointer
B. the mouse is moved over a window
C. when a mouse button is pressed this event is executed
D. a mouse button is released
Correct : D. a mouse button is released
25. Window class, onMouseDoubleClick/5, de- fines
A. a mouse button was double clicked
B. the user clicks on a window
C. a key on the keyboard is pressed
D. a key on the keyboard is released
Correct : A. a mouse button was double clicked
26. Window class, onClick/1, defines
A. a mouse button was double clicked
B. the user clicks on a window
C. a key on the keyboard is pressed
D. a key on the keyboard is released
Correct : B. the user clicks on a window
27. Window class, onKeyDown/3 , defines
A. a mouse button was double clicked
B. the user clicks on a window
C. a key on the keyboard is pressed
D. a key on the keyboard is released
Correct : C. a key on the keyboard is pressed
28. Window class, onKeyUp/3, defines
A. a key on the keyboard is pressed
B. a key on the keyboard is released
C. a mouse button was double clicked
D. the user clicks on a window
Correct : B. a key on the keyboard is released
29. Window class, onChar/3, defines
A. during the processing of a key this event is executed with the ASCII value of the key pressed
B. a menu command was selected
C. a menu item is selected
D. a window was resized
Correct : A. during the processing of a key this event is executed with the ASCII value of the key pressed
30. Window class, onCommand/2, defines
A. during the processing of a key this event is executed with the ASCII value of the key pressed
B. a menu command was selected
C. a menu item is selected
D. a window was resized
Correct : B. a menu command was selected
31. Window class, onMenuSelect/2, defines
A. during the processing of a key this event is executed with the ASCII value of the key pressed
B. a menu command was selected
C. a menu item is selected
D. a window was resized
Correct : C. a menu item is selected
32. Window class, onSize/2, defines
A. during the processing of a key this event is executed with the ASCII value of the key pressed
B. a menu command was selected
C. a menu item is selected
D. a window was resized
Correct : D. a window was resized
33. Window class, onMove/2, defines
A. a window is moved to a new position
B. the user wants to view a floating popup menu for the window
C. an event from the vertical scrollbar of the window
D. an event from the horizontal scrollbar of the window
Correct : A. a window is moved to a new position
34. Window class, onInitPopupMenu/2, defines
A. a window is moved to a new position
B. the user wants to view a floating popup menu for the window
C. an event from the vertical scrollbar of the window
D. an event from the horizontal scrollbar of the window
Correct : B. the user wants to view a floating popup menu for the window
35. Window class, onVScroll/3, defines
A. a window is moved to a new position
B. the user wants to view a floating popup menu for the window
C. an event from the vertical scrollbar of the window
D. an event from the horizontal scrollbar of the window
Correct : C. an event from the vertical scrollbar of the window
36. Window class, onHScroll/3, defines
A. a window is moved to a new position
B. the user wants to view a floating popup menu for the window
C. an event from the vertical scrollbar of the window
D. an event from the horizontal scrollbar of the window
Correct : D. an event from the horizontal scrollbar of the window
37. SizerClient in window programming ?
A. this type of sizer ensures that a panel window fills the complete client rect- angle of a frame window
B. this sizer class makes a panel ‘stick’ to one side of a frame window and the size of the panel window is a fixed num- ber of pixels.
C. this sizer ensures that a panel window is percentage of the size of a frame win- dow.
D. None of these
Correct : A. this type of sizer ensures that a panel window fills the complete client rect- angle of a frame window
38. SizerFixed in window programming
A. this type of sizer ensures that a panel window fills the complete client rect- angle of a frame window
B. this sizer class makes a panel ‘stick’ to one side of a frame window and the size of the panel window is a fixed num- ber of pixels
C. this sizer ensures that a panel window is percentage of the size of a frame win- dow.
D. None of these
Correct : B. this sizer class makes a panel ‘stick’ to one side of a frame window and the size of the panel window is a fixed num- ber of pixels
39. SizerPercent in window programming
A. this type of sizer ensures that a panel window fills the complete client rect- angle of a frame window
B. this sizer class makes a panel ‘stick’ to one side of a frame window and the size of the panel window is a fixed num- ber of pixels.
C. this sizer ensures that a panel window is percentage of the size of a frame win- dow.
D. None of these
Correct : C. this sizer ensures that a panel window is percentage of the size of a frame win- dow.