Top 50+ Solved Window Programming MCQ Questions Answer
Q. 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
Q. 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
Q. 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
Q. 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
Q. 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
Q. 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
Q. 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
Q. 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
Q. 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
Q. 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
Q. 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
Q. 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
Q. 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
Q. 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
Q. 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