Deck 14: Windows Forms Gui: a Deeper Look

Full screen (f)
exit full mode
Question
To add a control,the user must write the code that instantiates the control object from a class.
Use Space or
up arrow
down arrow
to flip the card.
Question
The form acts as a container for components and controls.
Question
A(n)_________ is a component with a graphical part.

A)Interface
B)Component
C)Form
D)Control
Question
The benefit of using a ComboBox is to:

A)combine two controls together to get the benefits of both
B)create a combination of events to occur when normally only one would
C)have a drop-down box
D)All of the above
Question
Events in Visual Basic can be:

A)generated within the code of the program
B)started with a click on a button,or other control
C)generated by keyboard input
D)All of the above
Question
The active window is the one that has the focus.
Question
A component is an instance of a class that inherits from a form.
Question
A Panel is used to:

A)group or store components
B)display text
C)create a border around components
D)add style to a form
Question
Custom controls can be created but cannot be inserted into the toolbox.
Question
Many of the components used for Windows apps in Visual Basic are defined in namespace:

A)System
B)System.Windows.Forms
C)System.Windows.UI
D)System.Web.UI
Question
Events occur when the user clicks the mouse,types on the keyboard or interacts with controls.
Question
Users can input and display dates through:

A)the MonthCalendar control
B)the DateTimePicker control
C)the CalendarTime control
D)a and b
Question
A GUI allows the user to interact with a program visually.
Question
An example of a component would be:

A)a button
B)a timer
C)a form
D)All of the above
Question
Labels allow input to be typed into them.
Question
ListBoxes and ComboBoxes are identical other than the fact that ComboBoxes have a drop-down list.
Question
All of the Visual Basic controls and components can be found in the tool box.
Question
Delegates act as:

A)ways of sorting events
B)a go-between for objects raising events and the methods that handle the events
C)masks for methods that handle events
D)a way to call many methods at once
Question
A ComboBox can display info and also have user-input info.
Question
LinkLabels are used to:

A)organize a group of labels
B)bring the user to a desired location
C)allow multiple labels to be modified during runtime all at once
D)All of the above
Question
Docking and anchoring accomplish the same task.
Question
You can use the TabIndex property to determine the order in which tabbing will occur.
Question
_____________ causes controls to remain at a fixed distance from the sides of the container even when the control is resized.

A)Anchoring
B)Docking
C)Focusing
D)None of the above
Question
Once an event is raised,every method referenced by the delegate is called.
Question
The correct syntax for an event handler is eventName_controlName.
Question
The Form class defines the methods that handle each event within the Form class.
Question
Which of the following does not describe an event where the user interacts with the GUI?

A)booting up a machine
B)scrolling through a document
C)closing a window
D)clicking on a file
Question
By looking up a control's class and clicking the events section,you can determine all the events and the arguments that a control has.
Question
_____________ can set the dimensions of a control to the dimensions of the parent container at all times.

A)Anchoring
B)Docking
C)Focusing
D)None of the above
Question
The Enabled property does not allow the control to perform actions when it's set to false.
Question
The Padding property specifies the distance between the docked control and the Form edges.
Question
Docking and anchoring are easy ways to:

A)allow a form to change sizes without altering the layout too much.
B)prevent users from changing the layout of the window.
C)prevent a user from resizing the form.
D)All of the above
Question
The _____ key can be pressed to transfer the focus between several controls quickly.

A)Tab
B)Shift
C)Ctrl
D)Alt
Question
Most of the code to create a GUI is written by the programmer.
Question
Many controls already have predefined delegates corresponding to every event they can generate.
Question
Property Anchor allows you to prevent form alterations by the user.
Question
How should the event-handler method for the control OutputLabel and the event Click be named?

A)OutputLabel_Click
B)Click
C)OutputLabel.Click
D)None of the above.
Question
How can event handlers be generated?

A)by double-clicking on components
B)explicitly writing the code for the event
C)using the Properties window
D)All of the above
Question
Each event is allowed only one event handler method.
Question
An active control is one that:

A)can move about the screen.
B)is most commonly clicked by the user
C)has the focus
D)changes,whether it is color or another property,on an event.
Question
When adding a ToolTip component from the Toolbox,it appears on an arbitrary location on the Form in Design view.
Question
Panels have the ability to have scrollbars should their contents get too large.
Question
Visual Studio provides snap lines to help align controls.
Question
What does the InitialDelay property of the ToolTip determine?

A)The amount of time that the tool tip appears while the mouse is over a control.
B)The amount of time that a mouse must hover over a control before a tool tip appears.
C)The amount of time between which two different tool tips appear.
D)The amount of time in which the tool tip is hidden for.
Question
When parent containers are resized,all anchored controls within the containers maintain their relative position to their anchored sides.
Question
Because of the nature of a GUI,a form cannot be set to a fixed size.
Question
GroupBoxes have a text display and can have scrollbars inserted into them.
Question
The Button property is used to determine which mouse button is clicked: left,middle,right or none.
Question
GroupBoxes and Panels are used to:

A)bundle controls into one container
B)allow more than one RadioButton to be true at the same time if the RadioButtons are on different GroupBoxes or Panels
C)organize the form in a more orderly fashion
D)All of the above
Question
While a ToolTip is being displayed,it's appearance remains the same.
Question
Which of the following events is triggered when the mouse is moved downward?

A)MouseHover
B)MouseDown
C)MouseMove
D)All of the above.
Question
Panels or GroupBoxes may not be embedded within one another.
Question
Mouse interaction with the GUI is limited to click,press,and move.
Question
To insert a control into a Panel or GroupBox in Design mode you must:

A)manually create the control inside the Panel or GroupBox
B)create a control and then drag it into the Panel or GroupBox
C)create a control and then set it as inside the Panel or GroupBox
D)group several controls and set their MainControl property to the Panel or GroupBox
Question
You can use control properties to disable a control or to hide the control from the user.
Question
The AutoScroll property will cause a Panel to scroll to the bottom if the controls displayed are too large.
Question
What is a tool tip useful for?

A)the tip of the mouse blinks while hovering over an item in a GUI
B)the tip of the mouse is highlighted while hovering over an item in a GUI
C)helpful text appears while hovering the mouse over an item in a GUI
D)All of the above
Question
MouseUp and MouseDown events are used when the mouse is moved up or down.
Question
When using mouse coordinates, (0,0)is located in the:

A)bottom left
B)bottom right
C)top left
D)top right
Question
When obtaining the coordinates of the mouse they

A)are always taken from the main form of the program
B)are relative to the control that caused the event
C)are taken from the center of the form
D)none of the above
Question
To set an underline shortcut in a Menu the programmer uses the tilde key (~).
Question
What is the event raised when a new date is selected with the MonthCalendar control?

A)NewDate
B)ModifiedDate
C)ChangedDate
D)DateChanged
Question
The Shortcut property is used to set which key combination can be used instead of clicking on a menu item.
Question
The Clicks property of class MouseEventArgs is used to determine the number of times a mouse button was clicked.
Question
KeyPress events do not handle modifier keys.
Question
Visual Basic also has the capacity for submenus.
Question
In order to find out which key the user is pressing,one should use the:

A)KeyChar property
B)Key property
C)KeyPress property
D)GetKey property
Question
Creating a window menu is mostly done through programming in the form load event.
Question
A separator bar can be inserted in a menu with which of the following characters?

A)-
B)&
C)_
D)/
Question
Whenever the mouse moves,the system raises a MouseMove event at a rate predetermined by the operating system.
Question
The _________ event can be used to determine if non-ASCII keys have been pressed.

A)KeyPress
B)KeyDown
C)KeyChar
D)None of the above.
Question
In order to use modifier keys,you should:

A)use the ModifierKey event.
B)use the KeyData property.
C)use the ModifierKeyHandler.
D)modifier keys are handled by the operating system.
Question
Pressing Enter to press a GUI button is not a key event;it's set in the control's properties.
Question
KeyPress events and one KeyDown event are generated when a key on the keyboard is pressed down.
Question
The KeyData property returns a key enumeration with no information about modifier keys.
Question
Menus are ways of grouping similar commands and preventing GUI clutter.
Question
ASCII does not support function keys or modifier keys.
Question
The KeyPress event is triggered when:

A)Any key is pressed.
B)A modifier key is pressed.
C)A key representing an ASCII character is pressed.
D)None of the above.
Question
Which of the follow statements are true about menus created through Visual Basic?

A)They provide groups of related commands for Windows apps.
B)They organize commands without cluttering the GUI
C)They have the capacity to create shortcuts for the menu commands
D)All of the above
Question
What does the MonthCalendar allow for?

A)time selection
B)date selection
C)a and b
D)None of the above
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/124
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 14: Windows Forms Gui: a Deeper Look
1
To add a control,the user must write the code that instantiates the control object from a class.
False
2
The form acts as a container for components and controls.
True
3
A(n)_________ is a component with a graphical part.

A)Interface
B)Component
C)Form
D)Control
D
4
The benefit of using a ComboBox is to:

A)combine two controls together to get the benefits of both
B)create a combination of events to occur when normally only one would
C)have a drop-down box
D)All of the above
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
5
Events in Visual Basic can be:

A)generated within the code of the program
B)started with a click on a button,or other control
C)generated by keyboard input
D)All of the above
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
6
The active window is the one that has the focus.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
7
A component is an instance of a class that inherits from a form.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
8
A Panel is used to:

A)group or store components
B)display text
C)create a border around components
D)add style to a form
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
9
Custom controls can be created but cannot be inserted into the toolbox.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
10
Many of the components used for Windows apps in Visual Basic are defined in namespace:

A)System
B)System.Windows.Forms
C)System.Windows.UI
D)System.Web.UI
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
11
Events occur when the user clicks the mouse,types on the keyboard or interacts with controls.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
12
Users can input and display dates through:

A)the MonthCalendar control
B)the DateTimePicker control
C)the CalendarTime control
D)a and b
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
13
A GUI allows the user to interact with a program visually.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
14
An example of a component would be:

A)a button
B)a timer
C)a form
D)All of the above
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
15
Labels allow input to be typed into them.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
16
ListBoxes and ComboBoxes are identical other than the fact that ComboBoxes have a drop-down list.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
17
All of the Visual Basic controls and components can be found in the tool box.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
18
Delegates act as:

A)ways of sorting events
B)a go-between for objects raising events and the methods that handle the events
C)masks for methods that handle events
D)a way to call many methods at once
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
19
A ComboBox can display info and also have user-input info.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
20
LinkLabels are used to:

A)organize a group of labels
B)bring the user to a desired location
C)allow multiple labels to be modified during runtime all at once
D)All of the above
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
21
Docking and anchoring accomplish the same task.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
22
You can use the TabIndex property to determine the order in which tabbing will occur.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
23
_____________ causes controls to remain at a fixed distance from the sides of the container even when the control is resized.

A)Anchoring
B)Docking
C)Focusing
D)None of the above
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
24
Once an event is raised,every method referenced by the delegate is called.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
25
The correct syntax for an event handler is eventName_controlName.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
26
The Form class defines the methods that handle each event within the Form class.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
27
Which of the following does not describe an event where the user interacts with the GUI?

A)booting up a machine
B)scrolling through a document
C)closing a window
D)clicking on a file
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
28
By looking up a control's class and clicking the events section,you can determine all the events and the arguments that a control has.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
29
_____________ can set the dimensions of a control to the dimensions of the parent container at all times.

A)Anchoring
B)Docking
C)Focusing
D)None of the above
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
30
The Enabled property does not allow the control to perform actions when it's set to false.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
31
The Padding property specifies the distance between the docked control and the Form edges.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
32
Docking and anchoring are easy ways to:

A)allow a form to change sizes without altering the layout too much.
B)prevent users from changing the layout of the window.
C)prevent a user from resizing the form.
D)All of the above
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
33
The _____ key can be pressed to transfer the focus between several controls quickly.

A)Tab
B)Shift
C)Ctrl
D)Alt
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
34
Most of the code to create a GUI is written by the programmer.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
35
Many controls already have predefined delegates corresponding to every event they can generate.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
36
Property Anchor allows you to prevent form alterations by the user.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
37
How should the event-handler method for the control OutputLabel and the event Click be named?

A)OutputLabel_Click
B)Click
C)OutputLabel.Click
D)None of the above.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
38
How can event handlers be generated?

A)by double-clicking on components
B)explicitly writing the code for the event
C)using the Properties window
D)All of the above
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
39
Each event is allowed only one event handler method.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
40
An active control is one that:

A)can move about the screen.
B)is most commonly clicked by the user
C)has the focus
D)changes,whether it is color or another property,on an event.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
41
When adding a ToolTip component from the Toolbox,it appears on an arbitrary location on the Form in Design view.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
42
Panels have the ability to have scrollbars should their contents get too large.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
43
Visual Studio provides snap lines to help align controls.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
44
What does the InitialDelay property of the ToolTip determine?

A)The amount of time that the tool tip appears while the mouse is over a control.
B)The amount of time that a mouse must hover over a control before a tool tip appears.
C)The amount of time between which two different tool tips appear.
D)The amount of time in which the tool tip is hidden for.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
45
When parent containers are resized,all anchored controls within the containers maintain their relative position to their anchored sides.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
46
Because of the nature of a GUI,a form cannot be set to a fixed size.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
47
GroupBoxes have a text display and can have scrollbars inserted into them.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
48
The Button property is used to determine which mouse button is clicked: left,middle,right or none.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
49
GroupBoxes and Panels are used to:

A)bundle controls into one container
B)allow more than one RadioButton to be true at the same time if the RadioButtons are on different GroupBoxes or Panels
C)organize the form in a more orderly fashion
D)All of the above
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
50
While a ToolTip is being displayed,it's appearance remains the same.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
51
Which of the following events is triggered when the mouse is moved downward?

A)MouseHover
B)MouseDown
C)MouseMove
D)All of the above.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
52
Panels or GroupBoxes may not be embedded within one another.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
53
Mouse interaction with the GUI is limited to click,press,and move.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
54
To insert a control into a Panel or GroupBox in Design mode you must:

A)manually create the control inside the Panel or GroupBox
B)create a control and then drag it into the Panel or GroupBox
C)create a control and then set it as inside the Panel or GroupBox
D)group several controls and set their MainControl property to the Panel or GroupBox
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
55
You can use control properties to disable a control or to hide the control from the user.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
56
The AutoScroll property will cause a Panel to scroll to the bottom if the controls displayed are too large.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
57
What is a tool tip useful for?

A)the tip of the mouse blinks while hovering over an item in a GUI
B)the tip of the mouse is highlighted while hovering over an item in a GUI
C)helpful text appears while hovering the mouse over an item in a GUI
D)All of the above
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
58
MouseUp and MouseDown events are used when the mouse is moved up or down.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
59
When using mouse coordinates, (0,0)is located in the:

A)bottom left
B)bottom right
C)top left
D)top right
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
60
When obtaining the coordinates of the mouse they

A)are always taken from the main form of the program
B)are relative to the control that caused the event
C)are taken from the center of the form
D)none of the above
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
61
To set an underline shortcut in a Menu the programmer uses the tilde key (~).
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
62
What is the event raised when a new date is selected with the MonthCalendar control?

A)NewDate
B)ModifiedDate
C)ChangedDate
D)DateChanged
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
63
The Shortcut property is used to set which key combination can be used instead of clicking on a menu item.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
64
The Clicks property of class MouseEventArgs is used to determine the number of times a mouse button was clicked.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
65
KeyPress events do not handle modifier keys.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
66
Visual Basic also has the capacity for submenus.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
67
In order to find out which key the user is pressing,one should use the:

A)KeyChar property
B)Key property
C)KeyPress property
D)GetKey property
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
68
Creating a window menu is mostly done through programming in the form load event.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
69
A separator bar can be inserted in a menu with which of the following characters?

A)-
B)&
C)_
D)/
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
70
Whenever the mouse moves,the system raises a MouseMove event at a rate predetermined by the operating system.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
71
The _________ event can be used to determine if non-ASCII keys have been pressed.

A)KeyPress
B)KeyDown
C)KeyChar
D)None of the above.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
72
In order to use modifier keys,you should:

A)use the ModifierKey event.
B)use the KeyData property.
C)use the ModifierKeyHandler.
D)modifier keys are handled by the operating system.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
73
Pressing Enter to press a GUI button is not a key event;it's set in the control's properties.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
74
KeyPress events and one KeyDown event are generated when a key on the keyboard is pressed down.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
75
The KeyData property returns a key enumeration with no information about modifier keys.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
76
Menus are ways of grouping similar commands and preventing GUI clutter.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
77
ASCII does not support function keys or modifier keys.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
78
The KeyPress event is triggered when:

A)Any key is pressed.
B)A modifier key is pressed.
C)A key representing an ASCII character is pressed.
D)None of the above.
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
79
Which of the follow statements are true about menus created through Visual Basic?

A)They provide groups of related commands for Windows apps.
B)They organize commands without cluttering the GUI
C)They have the capacity to create shortcuts for the menu commands
D)All of the above
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
80
What does the MonthCalendar allow for?

A)time selection
B)date selection
C)a and b
D)None of the above
Unlock Deck
Unlock for access to all 124 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 124 flashcards in this deck.