Top 50+ Solved Window Programming MCQ Questions Answer

From 16 to 30 of 39

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

  • 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

  • a. is executed when a window is becom- ing visible or is being hidden

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

  • c. this event is executed when the user switches to another window of the same application

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

  • b. when a window is being disabled or en- abled 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

  • 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

  • a. the window wants to know what cursor it must display for the mouse pointer

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

  • b. the mouse is moved over a window

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

  • c. when a mouse button is pressed this event is executed

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

  • 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

  • a. a mouse button was double clicked

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

  • b. the user clicks on a window

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

  • c. a key on the keyboard is pressed

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

  • b. a key on the keyboard is released

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

  • a. during the processing of a key this event is executed with the ASCII value of the key pressed

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

  • b. a menu command was selected
Subscribe Now

Get All Updates & News