Basic Window-Programming Questions and Answers

Practice Mode
Showing 10 of 42 questions
Q21
Window class, onEnable/1, defines
  • A is executed when a window is becoming visible or is being hidden
  • B when a windw is being disabled or enabled 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
Answer: Option B
Q22
Window class, onKBFOCUS/3, defines
  • A is executed when a window is becoming visible or is being hidden
  • B when a window is being disabled or enabled 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
Answer: Option D
Q23
Window class, onMouseMove/5, defines
  • A the window wants to know what cursor it must display for the mouse pointer
  • B the muse is moved over a window
  • C when a mouse button is pressed this event is executed
  • D a mouse button is released
Answer: Option B
Q24
Window class, onMouseDown/5, defines
  • A the window wants to know what cursor it must display for the mouse pointer
  • B the muse is moved over a window
  • C when a mouse button is pressed this event is executed
  • D a mouse button is released
Answer: Option C
Q25
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 presed this event is executed
  • D a mouse button is released
Answer: Option D
Q26
Window class, onMouseDoubleClick/5, defines
  • A a muse 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
Answer: Option A
Q27
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
Answer: Option B
Q28
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
Answer: Option C
Q29
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 a key on the keyboard is released
Answer: Option C
Q30
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
Answer: Option B
Questions and Answers for Competitive Exams Various Entrance Test