

MCQOPTIONS
Saved Bookmarks
This section includes 301 Mcqs, each offering curated multiple-choice questions to sharpen your Matlab knowledge and support exam preparation. Choose a topic below to get started.
1. |
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 |
Answer» B. the mouse is moved over a window | |
2. |
SizerClient in window programming ? |
A. | this type of sizer ensures that a panel window fills the complete client rect- angle 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 num- ber of pixels. |
C. | this sizer ensures that a panel window is percentage of the size of a frame win- dow. |
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 num- ber of pixels. | |
3. |
Window class, onHScroll/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» E. | |
4. |
Window class, onMove/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 | |
5. |
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 |
Answer» D. a mouse button is released | |
6. |
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» D. None of these | |
7. |
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» C. a mouse button was double clicked | |
8. |
Window class, onSize/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» E. | |
9. |
These exist ——— panel windows inside the same frame window. |
A. | Several |
B. | Only one |
C. | None |
D. | None of these |
Answer» B. Only one | |
10. |
SizerFixed in window programming |
A. | this type of sizer ensures that a panel window fills the complete client rect- angle 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 num- ber of pixels |
C. | this sizer ensures that a panel window is percentage of the size of a frame win- dow. |
D. | None of these |
Answer» C. this sizer ensures that a panel window is percentage of the size of a frame win- dow. | |
11. |
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 |
Answer» E. | |
12. |
Groupbox 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 | |
13. |
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 |
Answer» D. when a window receives the keyboard focus this event is executed | |
14. |
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 |
Answer» E. | |
15. |
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 |
Answer» C. this event is executed when the user switches to another window of the same application | |
16. |
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 |
Answer» B. the user clicks on a window | |
17. |
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» B. win.std | |
18. |
Button in window programming |
A. | displays text and can be clicked with the mouse or spacebar |
B. | a checkmark which the user can select |
C. | a list from which one item can be se- lect |
Answer» B. a checkmark which the user can select | |
19. |
Window class, onVScroll/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 | |
20. |
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» D. none of these | |
21. |
Edit in window programming |
A. | displays text and can be clicked with the mouse or spacebar |
Answer» E. | |
22. |
Combobox in window programming |
A. | displays text and can be clicked with the mouse or spacebar |
B. | a checkmark which the user can select |
C. | a list from which one item can be se- lect |
Answer» D. | |
23. |
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» C. a key on the keyboard is pressed | |
24. |
Checkbox in window programming |
A. | displays text and can be clicked with the mouse or spacebar |
B. | a checkmark which the user can select |
C. | a list from which one item can be se- lect |
Answer» C. a list from which one item can be se- lect | |
25. |
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 |
Answer» C. when a mouse button is pressed this event is executed | |
26. |
Window class, onCreate/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» B. is executed when a window is being closed, it is possible to prevent the win- dow from closing | |
27. |
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 |
Answer» B. a menu command was selected | |
28. |
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» C. windows used for input/output that are placed on a panel window | |
29. |
A panel window is a window |
A. | which can only exist inside a frame win- dow |
B. | which can not exist inside a frame win- dow |
C. | which can exist outside the frame win- dow |
D. | none of these |
Answer» B. which can not exist inside a frame win- dow | |
30. |
Window class, onEraseBackground/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 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» D. when a window must be re-painted this event is executed | |
31. |
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» C. for input of multiple lines of text | |
32. |
SizerPercent in window programming |
A. | this type of sizer ensures that a panel window fills the complete client rect- angle 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 num- ber of pixels. |
C. | this sizer ensures that a panel window is percentage of the size of a frame win- dow. |
D. | None of these |
Answer» D. None of these | |
33. |
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 |
Answer» E. | |
34. |
Window class, onInitPopupMenu/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» C. an event from the vertical scrollbar of the window | |
35. |
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 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» C. when the background of a window must be erased this event is executed | |
36. |
Window class, onMenuSelect/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 | |
37. |
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 |
Answer» B. when a window is being disabled or en- abled this event is executed | |
38. |
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 |
Answer» C. a menu item is selected | |
39. |
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» D. a key on the keyboard is released | |
40. |
‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ relationship indicates that the change to an independent thing will affect thedependent thing. |
A. | inheritance |
B. | dependency |
C. | association |
D. | aggregation |
Answer» C. association | |
41. |
‐‐‐‐‐‐‐ is the actual body of the function |
A. | Library function |
B. | Function call |
C. | Function definition |
D. | Function declaration |
Answer» D. Function declaration | |
42. |
Array indexing always starts with the number |
A. | 0 |
B. | 1 |
C. | 2 |
D. | \0 |
Answer» B. 1 | |
43. |
A private member function can be called by another function that is a member of a class iscalled |
A. | Friend function |
B. | Nesting of member function |
C. | Inline function |
D. | Static function |
Answer» C. Inline function | |
44. |
To ensure that every object in the array receives a destructor call, always delete memoryallocated as an array with operator __________ . |
A. | destructor |
B. | New[] |
C. | delete[] |
D. | Free() |
Answer» D. Free() | |
45. |
Tne multiple use of input and output operator is called ……………. |
A. | polymorphism |
B. | inheritance |
C. | cascading |
D. | none of these. |
Answer» D. none of these. | |
46. |
The empty virtual function are called |
A. | pure /donothing |
B. | virtual table |
C. | polymorphism |
D. | virtual base class |
Answer» B. virtual table | |
47. |
A static variable is initialized to ‐‐‐‐‐when the first object of its class is created. |
A. | 1 |
B. | Null |
C. | None of these |
Answer» D. | |
48. |
The indirect operator is |
A. | & |
B. | * |
C. | :: |
D. | :? |
Answer» C. :: | |
49. |
Which feature in OOP allows reusing code? |
A. | Polymorphism |
B. | Inheritance |
C. | Encapsulation |
D. | Data hiding |
Answer» C. Encapsulation | |
50. |
Which function is in the istream class |
A. | get() |
B. | put() |
C. | write |
D. | cout |
Answer» B. put() | |