Sail E0 Webinar

MCQs

Total Questions : 41 | Page 3 of 5 pages
Question 21. Window class, onActivate/2, defines
  1.    is executed when a window is becoming visible or is being hidden
  2.    when a window is being disabled or enabled this event is executed
  3.    this event is executed when the user switches to another window of the same application
  4.    when a window receives the keyboard focus this event is executed
 Discuss Question
Answer: Option C. -> this event is executed when the user switches to another window of the same application
Answer: (c)
Question 22. Window class, onHScroll/3, defines
  1.    a window is moved to a new position
  2.    the user wants to view a floating popup menu for the window
  3.    an event from the vertical scrollbar of the window
  4.    an event from the horizontal scrollbar of the window
 Discuss Question
Answer: Option D. -> an event from the horizontal scrollbar of the window
Answer: (d)
Question 23. Button in window programming
  1.    displays text and can be clicked with the mouse or spacebar
  2.    a checkmark which the user can select
  3.    a list from which one item can be selected.
  4.    area in which text may be entered.
 Discuss Question
Answer: Option A. -> displays text and can be clicked with the mouse or spacebar
Answer: (a)
Question 24. Window class, onInitPopupMenu/2, defines
  1.    a window is moved to a new position
  2.    the user wants to view a floating popup menu for the window
  3.    an event from the vertical scrollbar of the window
  4.    an event from the horizontal scrollbar of the window
 Discuss Question
Answer: Option B. -> the user wants to view a floating popup menu for the window
Answer: (b)
Question 25. Window class, onMouseMove/5 , defines
  1.    the window wants to know what cursor it must display for the mouse pointer
  2.    the mouse is moved over a window
  3.    when a mouse button is pressed this event is executed
  4.    a mouse button is released
 Discuss Question
Answer: Option B. -> the mouse is moved over a window
Answer: (b)
Question 26. Window class, onCreate/1 ,defines
  1.    is executed when a visible window is being created
  2.    is executed when a window is being closed, it is possible to prevent the window from closing
  3.    when the background of a window must be erased this event is executed
  4.    when a window must be re-painted this event is executed
 Discuss Question
Answer: Option A. -> is executed when a visible window is being created
Answer: (a)
Question 27. A panel window is a window
  1.    which can only exist inside a frame window
  2.    which can not exist inside a frame window
  3.    which can exist outside the frame window
  4.    none of these
 Discuss Question
Answer: Option A. -> which can only exist inside a frame window
Answer: (a)
Question 28. Label in window programming
  1.    does nothing except draw a rectangle, it is used to visually group controls together
  2.    displays text
  3.    for input of multiple lines of text
  4.    none of these
 Discuss Question
Answer: Option B. -> displays text
Answer: (b)
Question 29. Frames is
  1.    the exterior of a window.
  2.    the interior of a frame window.
  3.    windows used for input/output that are placed on a panel window
  4.    None of these
 Discuss Question
Answer: Option A. -> the exterior of a window.
Answer: (a)
Question 30. Window class, onCommand/2, defines
  1.    during the processing of a key this event is executed with the ASCII value of the key pressed
  2.    a menu command was selected
  3.    a menu item is selected
  4.    a window was resized
 Discuss Question
Answer: Option B. -> a menu command was selected
Answer: (b)

Latest Videos

Latest Test Papers