Deck 15: GUI With Windows Forms: Part 2

Full screen (f)
exit full mode
Question
Creating a window menu is mostly done through programming in the form load event.
Use Space or
up arrow
down arrow
to flip the card.
Question
Menus group similar commands and prevent GUI clutter.
Question
What event occurs when a new date is selected

A) NewDate
Question
LinkLabels are used to:

A) organize a group of labels
B) bring the user to a desired location
C) allow many labels to be modified during runtime all at once
D) All of the above
Question
Only one date can be selected at a time in the MonthCalendar control.
Question
The ShortcutKeys property is used to set which key combination can be used instead of clicking on a menu item.
Question
For a selection,the user must type the desired date.
Question
Shortcuts to LinkLabels can also be created using the ampersand key (&)when the feature is enabled.
Question
To set an underline shortcut in a Menu,you use the tilde key (~).
Question
LinkLabels appear as Buttons that bring a user to another location.
Question
Custom controls can be created but cannot be inserted into the toolbox.
Question
LinkLabels are used to open up a web page or other desired location.
Question
The LinkVisited property is used to:

A) determine if a link has be visited by the user previously
B) set what the color will be for an already visited link
C) set the link color to the VisitedLinkColor as opposed to the LinkColor
D) change the destination of the link
Question
What does the MonthCalendar allow for

A)time selection
B)date selection
C)a and b
D)None of the above
Question
The Format property specifies the user's selection options using the DateTimePickerFormat enumeration.
Question
Which of the following statements are true about menus created through C#

A)Provide groups of related commands for Windows apps.
B)Organize commands without cluttering the GUI
C)Have the capacity to create shortcuts for the menu commands
D)All of the above
Question
What does the DateTimePicker allow for

A)time selection
B)date selection
C)a and b
D)None of the above
Question
Menus are used to offer several organized choices for the user.
Question
What is the event when a value is selected

A) ValueChanged
Question
Users can input and display dates and times through:

A) the MonthCalendar control
B) the DateTimePicker control
C) the CalendarTime control
D) a and b
Question
If you want a user to select several choices you should use:

A) a ListBox
B) a CheckListBox
C) either a ListBox or a CheckedListBox
D) neither a ListBox or a CheckedListBox
Question
To add an item to a ListBox use the Add method of the Items property.
Question
The MaxDropDownItems property

A) sets the maximum number of items the list can hold
B) creates a scrollbar on the list after it exceeds the set max
C) creates a max to how many items the user can add to the list
D) can be set from 1 to 1000
Question
The UseMnemonic property indicates that ampersand (&)should be interpreted as a shortcut rather than an actual character.
Question
A ComboBox is a TextBox with a drop-down list.
Question
Class CheckedListBox derives from class ListBox and contains similar properties.
Question
In order to have a program close use:

A) the reserved word exit
B) the reserved word unload
C) Application.Exit()
D) Application.Unload()
Question
The ItemCheck event occurs when an item is either checked or unchecked.
Question
The syntax for adding a new item to a ListBox is:

A) ListBox.Items.Add("item")
B) ListBox.Add("item")
C) ListBox.Items.Insert("item")
D) ListBox.Insert("item")
Question
If the user has not selected any items from the ListBox then SelectedIndex returns 0.
Question
By default,ListBox items cannot be changed by the user.
Question
The DropDownList style of a ComboBox prevents the user from entering items.
Question
The GetItemChecked method returns the last item that was checked by the user.
Question
In a ComboBox only the programmer can enter items to the list.
Question
There are three selection modes for a ListBox;none,one,or multi.
Question
To add an item to a CheckedListBox use:

A) the Add method
B) the AddRange method
C) the String Collection Editor
D) All of the above
Question
To remove an item from a ListBox,use the Delete method of the Items property.
Question
In order to clear a ListBox's items,the syntax is:

A) ListBox.Items.Clear()
B) ListBox.Items.DeleteItem.All()
C) ListBox.Clear()
D) ListBox.Items.DeleteAll()
Question
Setting the SelectionMode property to SelectionMode.One allows only one checkbox to be checked at once.
Question
The SelectedIndex property returns the index of the selected item.
Question
The Activation property of a ListView can be set to:

A) OneClick
B) TwoClick
C) Standard
D) All of the above
Question
Windows within windows are called the sub-windows of the original windows.
Question
An example of a ListView is the right side of windows explorer.
Question
The GetDirectories method of class Directory will return an array of sub-directories of the given directory.
Question
In order to have a tree,you must first make a root node that acts as the base for all the other nodes in the tree.
Question
The SelectedIndexChanged occurs when the user selects a different item from the list.
Question
What event is generated when an MDI child is closed or activated

A) MdiChildStatusChanged
B) MdiChildActivate
C) MdiChildModified
D) MdiChildCA
Question
The View property can be changed to LargeIcon,SmallIcon,List or Details.
Question
The ItemSize property is used to determine

A) how big controls on each TabPage can be
B) the actual size of each TabPage
C) the size of the tab for each TabPage
D) there is no ItemSize property
Question
The Exists method of class Directory is used to:

A) check if a given directory has sub-directories
B) check if a given directory actually exists
C) make sure that the List has a beginning and an ending
D) check for an actual list by making sure the first and last elements are not the same, meaning the list only has one item in it.
Question
TabPages can contain only buttons,checks and labels
Question
A good example of an MDI program is:

A) Notepad
B) Adobe Photoshop
C) Internet Explorer
D) All of the above
Question
Each TabPage on the form must use the same event triggers.
Question
An example of a TreeView is:

A) all of your e-mail
B) a Web site in Internet Explorer
C) the My Computer folder
D) the left side of Windows Explorer
Question
The main purpose of tabbed windows are:

A) to group controls
B) to conserve screen space
C) to organize the form
D) All of the above
Question
The MultiLine property determines whether tabs can fill more than one row or not.
Question
There is no way to expand or contract a TreeView.
Question
When adding a node to a tree use:

A) treeView.Nodes[ parentIndex ].Nodes.Add(new TreeNode(ChildLabel))
B) treeView.Node[parentIndex].Add(new TreeNode(ChildLabel))
C) treeView.Node[parentIndex].Add(ChildLabel)
D) treeView.Node[parentIndex].Nodes.Add(ChildLabel)
Question
A tree is a hierarchical collection of child and parent nodes.
Question
In order to create an MDI Form the programmer has to enable that form to be an MDI container.
Question
Timers run on an interval event,which they create themselves.
Question
The only controls available are the ones provided in C#.
Question
All controls contain the method OnPaint which is used to change the display on a control.
Question
To inherit a form you must import thedll file that is created by the form desired.
Question
Inheriting a form can be difficult in C#.
Question
Users should not create controls that:

A) extend existent controls
B) perform the same function as an existing control
C) inherit from class UserControl
D) a and c
E) b and c
Question
In visual inheritance,the System.Windows.Forms.Form class is used as the base class.
Question
Visual inheritance is used to create visual consistence and uniformity.
Question
The user can tile or cascade the open children windows.
Question
Forms can also inherit visually:

A) size
B) GUI components
C) color and font styles
D) All of the above
Question
Forms can inherit:

A) methods
B) variables
C) controls
D) All of the above
Question
In order to make a control composed of existing controls,the programmer needs to:

A) inherit the Form class
B) inherit the Object class
C) inherit the UserControl class
D) All of the above
Question
The MdiChildren property returns a list of all the created children as an array of Forms.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/73
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 15: GUI With Windows Forms: Part 2
1
Creating a window menu is mostly done through programming in the form load event.
False
entire menus can be created by just dragging and dropping and editing properties in Visual Studio.
2
Menus group similar commands and prevent GUI clutter.
True
3
What event occurs when a new date is selected

A) NewDate
D
4
LinkLabels are used to:

A) organize a group of labels
B) bring the user to a desired location
C) allow many labels to be modified during runtime all at once
D) All of the above
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
5
Only one date can be selected at a time in the MonthCalendar control.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
6
The ShortcutKeys 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 73 flashcards in this deck.
Unlock Deck
k this deck
7
For a selection,the user must type the desired date.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
8
Shortcuts to LinkLabels can also be created using the ampersand key (&)when the feature is enabled.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
9
To set an underline shortcut in a Menu,you use the tilde key (~).
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
10
LinkLabels appear as Buttons that bring a user to another location.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
11
Custom controls can be created but cannot be inserted into the toolbox.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
12
LinkLabels are used to open up a web page or other desired location.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
13
The LinkVisited property is used to:

A) determine if a link has be visited by the user previously
B) set what the color will be for an already visited link
C) set the link color to the VisitedLinkColor as opposed to the LinkColor
D) change the destination of the link
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
14
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 73 flashcards in this deck.
Unlock Deck
k this deck
15
The Format property specifies the user's selection options using the DateTimePickerFormat enumeration.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
16
Which of the following statements are true about menus created through C#

A)Provide groups of related commands for Windows apps.
B)Organize commands without cluttering the GUI
C)Have the capacity to create shortcuts for the menu commands
D)All of the above
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
17
What does the DateTimePicker allow for

A)time selection
B)date selection
C)a and b
D)None of the above
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
18
Menus are used to offer several organized choices for the user.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
19
What is the event when a value is selected

A) ValueChanged
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
20
Users can input and display dates and times through:

A) the MonthCalendar control
B) the DateTimePicker control
C) the CalendarTime control
D) a and b
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
21
If you want a user to select several choices you should use:

A) a ListBox
B) a CheckListBox
C) either a ListBox or a CheckedListBox
D) neither a ListBox or a CheckedListBox
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
22
To add an item to a ListBox use the Add method of the Items property.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
23
The MaxDropDownItems property

A) sets the maximum number of items the list can hold
B) creates a scrollbar on the list after it exceeds the set max
C) creates a max to how many items the user can add to the list
D) can be set from 1 to 1000
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
24
The UseMnemonic property indicates that ampersand (&)should be interpreted as a shortcut rather than an actual character.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
25
A ComboBox is a TextBox with a drop-down list.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
26
Class CheckedListBox derives from class ListBox and contains similar properties.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
27
In order to have a program close use:

A) the reserved word exit
B) the reserved word unload
C) Application.Exit()
D) Application.Unload()
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
28
The ItemCheck event occurs when an item is either checked or unchecked.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
29
The syntax for adding a new item to a ListBox is:

A) ListBox.Items.Add("item")
B) ListBox.Add("item")
C) ListBox.Items.Insert("item")
D) ListBox.Insert("item")
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
30
If the user has not selected any items from the ListBox then SelectedIndex returns 0.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
31
By default,ListBox items cannot be changed by the user.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
32
The DropDownList style of a ComboBox prevents the user from entering items.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
33
The GetItemChecked method returns the last item that was checked by the user.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
34
In a ComboBox only the programmer can enter items to the list.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
35
There are three selection modes for a ListBox;none,one,or multi.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
36
To add an item to a CheckedListBox use:

A) the Add method
B) the AddRange method
C) the String Collection Editor
D) All of the above
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
37
To remove an item from a ListBox,use the Delete method of the Items property.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
38
In order to clear a ListBox's items,the syntax is:

A) ListBox.Items.Clear()
B) ListBox.Items.DeleteItem.All()
C) ListBox.Clear()
D) ListBox.Items.DeleteAll()
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
39
Setting the SelectionMode property to SelectionMode.One allows only one checkbox to be checked at once.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
40
The SelectedIndex property returns the index of the selected item.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
41
The Activation property of a ListView can be set to:

A) OneClick
B) TwoClick
C) Standard
D) All of the above
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
42
Windows within windows are called the sub-windows of the original windows.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
43
An example of a ListView is the right side of windows explorer.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
44
The GetDirectories method of class Directory will return an array of sub-directories of the given directory.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
45
In order to have a tree,you must first make a root node that acts as the base for all the other nodes in the tree.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
46
The SelectedIndexChanged occurs when the user selects a different item from the list.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
47
What event is generated when an MDI child is closed or activated

A) MdiChildStatusChanged
B) MdiChildActivate
C) MdiChildModified
D) MdiChildCA
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
48
The View property can be changed to LargeIcon,SmallIcon,List or Details.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
49
The ItemSize property is used to determine

A) how big controls on each TabPage can be
B) the actual size of each TabPage
C) the size of the tab for each TabPage
D) there is no ItemSize property
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
50
The Exists method of class Directory is used to:

A) check if a given directory has sub-directories
B) check if a given directory actually exists
C) make sure that the List has a beginning and an ending
D) check for an actual list by making sure the first and last elements are not the same, meaning the list only has one item in it.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
51
TabPages can contain only buttons,checks and labels
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
52
A good example of an MDI program is:

A) Notepad
B) Adobe Photoshop
C) Internet Explorer
D) All of the above
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
53
Each TabPage on the form must use the same event triggers.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
54
An example of a TreeView is:

A) all of your e-mail
B) a Web site in Internet Explorer
C) the My Computer folder
D) the left side of Windows Explorer
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
55
The main purpose of tabbed windows are:

A) to group controls
B) to conserve screen space
C) to organize the form
D) All of the above
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
56
The MultiLine property determines whether tabs can fill more than one row or not.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
57
There is no way to expand or contract a TreeView.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
58
When adding a node to a tree use:

A) treeView.Nodes[ parentIndex ].Nodes.Add(new TreeNode(ChildLabel))
B) treeView.Node[parentIndex].Add(new TreeNode(ChildLabel))
C) treeView.Node[parentIndex].Add(ChildLabel)
D) treeView.Node[parentIndex].Nodes.Add(ChildLabel)
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
59
A tree is a hierarchical collection of child and parent nodes.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
60
In order to create an MDI Form the programmer has to enable that form to be an MDI container.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
61
Timers run on an interval event,which they create themselves.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
62
The only controls available are the ones provided in C#.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
63
All controls contain the method OnPaint which is used to change the display on a control.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
64
To inherit a form you must import thedll file that is created by the form desired.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
65
Inheriting a form can be difficult in C#.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
66
Users should not create controls that:

A) extend existent controls
B) perform the same function as an existing control
C) inherit from class UserControl
D) a and c
E) b and c
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
67
In visual inheritance,the System.Windows.Forms.Form class is used as the base class.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
68
Visual inheritance is used to create visual consistence and uniformity.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
69
The user can tile or cascade the open children windows.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
70
Forms can also inherit visually:

A) size
B) GUI components
C) color and font styles
D) All of the above
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
71
Forms can inherit:

A) methods
B) variables
C) controls
D) All of the above
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
72
In order to make a control composed of existing controls,the programmer needs to:

A) inherit the Form class
B) inherit the Object class
C) inherit the UserControl class
D) All of the above
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
73
The MdiChildren property returns a list of all the created children as an array of Forms.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 73 flashcards in this deck.