300+ TOP Windows Programming MCQs and answers

Windows Programming Multiple choice Questions

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

Answer:
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

Answer:
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

Answer:
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 window

B. which can not exist inside a frame window

C. which can exist outside the frame window

D. none of these

Answer:
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

Answer:
A.Several

6. Button in window programming
A. displays text and can be clicked with the mouse or space bar

B. a check mark which the user can select

C. a list from which one item can be select

Answer:
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 check mark which the user can select

C. a list from which one item can be select

Answer:
B.a check mark which the user can select

8. Combo box in window programming
A. displays text and can be clicked with the mouse or space bar

B. a check mark which the user can select

C. a list from which one item can be select

Answer:
C.a list from which one item can be select

9. Sizer Percent in window programming
A. this type of sizer ensures that a panel window fills the complete client rectangle 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 number of pixels.

C. this sizer ensures that a panel window is percentage of the size of a frame window.

D. None of these

Answer:
C.this sizer ensures that a panel window is percentage of the size of a frame window.

10. Group box 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

Answer:
A.does nothing except draw a rectangle, it is used to visually group controls to- gether

11. 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

Answer:
B.displays text

12. 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

Answer:
C.for input of multiple lines of text

13. 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

Answer:
A.win.txt

14. Window class, on Create/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

Answer:
A.is executed when a visible window is being created

15. 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 window 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

Answer:
B.is executed when a window is being closed, it is possible to prevent the window from closing

16. Window class, on Erase Background/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 window 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

Answer:
C.when the background of a window must be erased this event is executed

17. Window class, on Paint/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 window 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

Answer:
D.when a window must be re-painted this event is executed

18. Window class, on Show/2, 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:
A.is executed when a window is becoming visible or is being hidden

19. Window class, on Activate/2, 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:
C.this event is executed when the user switches to another window of the same application

20. Window class, on Enable/1, 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:
B.when a window is being disabled or enabled this event is executed

21. Window class, on KB Focus/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:
D.when a window receives the keyboard focus this event is executed

22. Window class, on Set Cursor/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

Answer:
A.the window wants to know what cursor it must display for the mouse pointer

23. Window class, on Mouse Move/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

Answer:
B.the mouse is moved over a window

24. Window class, on Mouse Down/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

Answer:
C.when a mouse button is pressed this event is executed

25. Window class, on Mouse Up/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

Answer:
D.a mouse button is released

26. Window class, on Mouse Double Click/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

Answer:
A.a mouse button was double clicked

27. Window class, on Click/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:
B.the user clicks on a window

28. Window class, on Key Down/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:
C.a key on the keyboard is pressed

29. Window class, on Key Up/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:
B.a key on the keyboard is released

30. Window class, on Char/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

Answer:
A.during the processing of a key this event is executed with the ASCII value of the key pressed

31. Window class, on Command/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

Answer:
B.a menu command was selected

32. Window class, on Menu Select/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

Answer:
C.a menu item is selected

33. Window class, on Size/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

Answer:
D.a window was resized

34. Window class, on Move/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

Answer:
A.a window is moved to a new position

35. Window class, on Init Popup Menu/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

Answer:
B.the user wants to view a floating popup menu for the window

36. Window class, on VScroll/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

Answer:
C.an event from the vertical scrollbar of the window

37. Window class, on HScroll/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

Answer:
D.an event from the horizontal scrollbar of the window

38. Sizer Client in window programming ?
A. this type of sizer ensures that a panel window fills the complete client rectangle 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 number of pixels.

C. this sizer ensures that a panel window is percentage of the size of a frame window.

D. None of these

Answer:
A.this type of sizer ensures that a panel window fills the complete client rectangle of a frame window

39. Sizer Fixed in window programming
A. this type of sizer ensures that a panel window fills the complete client rectangle 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 number of pixels

C. this sizer ensures that a panel window is percentage of the size of a frame window.

D. None of these

Answer:
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 number of pixels

Windows Programming Objective Questions with Answers Quiz test Pdf Download

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top