Deck 3: Using Gui Objects and the Visual Studio Ide

Full screen (f)
exit full mode
Question
____ are rectangular GUI objects that provide an interface for collecting, displaying, and delivering information.

A) Label s
B) TextBox es
C) Button s
D) Form s
Use Space or
up arrow
down arrow
to flip the card.
Question
You cannot relocate a control on a Form once you have added it.
Question
You can change the appearance, size, color, and window management features of a Form by setting its ____.

A) namespace
B) environment
C) properties
D) name
Question
The environment the user sees is a program's ____.

A) interface
B) implementation
C) event
D) source code
Question
If you change a Form 's Name , you will notice differences in the visual design.
Question
If a Button 's name is reportButton , then the default name of its Click() method is ____.

A) reportButton_Click()
B) reportButton.Click()
C) report_Click()
D) report.Click()
Question
Form s almost always include ____, which are devices such as labels, text boxes, and buttons that users can manipulate to interact with a program.

A) controls
B) widgets
C) elements
D) IDEs
Question
Professional programmers usually do not retain the default names for Form s and controls.
Question
The property names generally appear in alphabetical order in the Properties window. A notable exception is the ____ entry.

A) Text
B) Size
C) Name
D) BackColor
Question
Adding functionality to a Button is easy when you use the IDE. After you have dragged a Button onto a Form , you can ____ it to create a method that executes when the user clicks the Button .

A) select
B) double-click
C) click
D) delete
Question
The ____ in the Visual C# IDE main window lies horizontally across the top of the window and includes a File menu from which you open, close, and save projects.

A) Toolbox tab
B) menu bar
C) Form Designer
D) Solution Explorer
Question
So much code is needed to create even the simplest of GUI programs that it is far more practical to develop the user interface visually in an IDE.
Question
To change the size of a button on a Form , you can drag the button's ____.

A) text
B) handles
C) nodes
D) controls
Question
When you create a Windows Forms project, Visual C# adds a form to the project and calls it ____.

A) button1
B) Form1
C) form1
D) Window1
Question
One of the key features of the Visual C# IDE is the ____, which is used for viewing and managing project files and settings.

A) Properties
B) Toolbox tab
C) Solution Explorer
D) Form Designer
Question
The Form class contains approximately ____ properties.

A) 10
B) 30
C) 100
D) 300
Question
You can change a Label 's ____ property to display any string of text.

A) Name
B) Size
C) Random
D) Text
Question
A Form 's ____ is what appears in its title bar, and it can be any string.

A) Name
B) property
C) Text
D) label
Question
You are not required to create a Click() method for a Button .
Question
A ____ is a control that is used to display text such as a prompt or a result of some computation.

A) Form
B) Button
C) Label
D) TextBox
Question
If you make a change to a program and try to rerun it, you get an error message that starts with "Could not copy...". The solution is to ____ and then try again.

A) close the IDE
B) press F1
C) reinstall Visual Studio
D) close the previous execution
Question
____ are controls through which a user can enter input data in a GUI application.

A) Button s
B) TextBox es
C) Label s
D) Form s
Question
Explain how to add functionality to a Button on a Form .
Question
What are TextBox es and how do you use them?
Question
Name and describe some of the properties of Button s.
Question
What conventions are usually applied when naming Form s and controls?
Question
How do you use the Toolbox to add a control to a Form ?
Question
A Button 's ____________________ property indicates whether the button is visible.
Question
____ is the process of changing a program's internal structure without changing the way the program works.

A) Editing
B) Code generation
C) Code modification
D) Code refactoring
Question
What are Label s and how do you use them?
Question
The order in which controls receive focus from successive Tab key presses is their ____.

A) focus order
B) TabIndex
C) tab order
D) view order
Question
After you have dragged a Button onto a Form , you can ____________________ it to create a method that executes when the user clicks the button.
Question
When a user types a value into a TextBox in an executing program, it becomes the value for the ____ property of the TextBox .

A) Text
B) String
C) Label
D) Name
Question
How do you create a Form visually using the Visual Studio C# IDE?
Question
When deciding which interface to use, pick the ____ interface if you want your application to look snazzy.

A) User
B) GUI
C) Console
D) Jazz
Question
How do you delete an unwanted event-handling method?
Question
The period during which you design a program is called design time. The period during which you execute a program is called ____________________.
Question
Almost all Form s contain ____________________, which you can drag wherever you think they will be most useful.
Question
When opened, the ____________________ provides lists of controls you can drag onto a Form so that you can develop programs visually, using a mouse.
Question
Explain how to refactor your code to fix problems after renaming a Button that already had a Click() method.
Question
Match between columns
Provides lists of controls that can be dragged onto a Form so that you can develop programs visually
Form s
Provides lists of controls that can be dragged onto a Form so that you can develop programs visually
focus
Provides lists of controls that can be dragged onto a Form so that you can develop programs visually
menu bar
Provides lists of controls that can be dragged onto a Form so that you can develop programs visually
Toolbox tab
Provides lists of controls that can be dragged onto a Form so that you can develop programs visually
Form Designer
Provides lists of controls that can be dragged onto a Form so that you can develop programs visually
node
Provides lists of controls that can be dragged onto a Form so that you can develop programs visually
AcceptButton
Provides lists of controls that can be dragged onto a Form so that you can develop programs visually
click event
Provides lists of controls that can be dragged onto a Form so that you can develop programs visually
access specifier
Lies horizontally across the top of the IDE window, and includes submenus that list additional options
Form s
Lies horizontally across the top of the IDE window, and includes submenus that list additional options
focus
Lies horizontally across the top of the IDE window, and includes submenus that list additional options
menu bar
Lies horizontally across the top of the IDE window, and includes submenus that list additional options
Toolbox tab
Lies horizontally across the top of the IDE window, and includes submenus that list additional options
Form Designer
Lies horizontally across the top of the IDE window, and includes submenus that list additional options
node
Lies horizontally across the top of the IDE window, and includes submenus that list additional options
AcceptButton
Lies horizontally across the top of the IDE window, and includes submenus that list additional options
click event
Lies horizontally across the top of the IDE window, and includes submenus that list additional options
access specifier
An icon that appears beside a list or a section of code and that can be expanded or condensed
Form s
An icon that appears beside a list or a section of code and that can be expanded or condensed
focus
An icon that appears beside a list or a section of code and that can be expanded or condensed
menu bar
An icon that appears beside a list or a section of code and that can be expanded or condensed
Toolbox tab
An icon that appears beside a list or a section of code and that can be expanded or condensed
Form Designer
An icon that appears beside a list or a section of code and that can be expanded or condensed
node
An icon that appears beside a list or a section of code and that can be expanded or condensed
AcceptButton
An icon that appears beside a list or a section of code and that can be expanded or condensed
click event
An icon that appears beside a list or a section of code and that can be expanded or condensed
access specifier
A Form property that gets or sets the button on the form that is clicked when the user presses the Enter key
Form s
A Form property that gets or sets the button on the form that is clicked when the user presses the Enter key
focus
A Form property that gets or sets the button on the form that is clicked when the user presses the Enter key
menu bar
A Form property that gets or sets the button on the form that is clicked when the user presses the Enter key
Toolbox tab
A Form property that gets or sets the button on the form that is clicked when the user presses the Enter key
Form Designer
A Form property that gets or sets the button on the form that is clicked when the user presses the Enter key
node
A Form property that gets or sets the button on the form that is clicked when the user presses the Enter key
AcceptButton
A Form property that gets or sets the button on the form that is clicked when the user presses the Enter key
click event
A Form property that gets or sets the button on the form that is clicked when the user presses the Enter key
access specifier
The event generated when a user clicks a control in a GUI program
Form s
The event generated when a user clicks a control in a GUI program
focus
The event generated when a user clicks a control in a GUI program
menu bar
The event generated when a user clicks a control in a GUI program
Toolbox tab
The event generated when a user clicks a control in a GUI program
Form Designer
The event generated when a user clicks a control in a GUI program
node
The event generated when a user clicks a control in a GUI program
AcceptButton
The event generated when a user clicks a control in a GUI program
click event
The event generated when a user clicks a control in a GUI program
access specifier
The area where you design applications visually
Form s
The area where you design applications visually
focus
The area where you design applications visually
menu bar
The area where you design applications visually
Toolbox tab
The area where you design applications visually
Form Designer
The area where you design applications visually
node
The area where you design applications visually
AcceptButton
The area where you design applications visually
click event
The area where you design applications visually
access specifier
A control that has this can receive keyboard input
Form s
A control that has this can receive keyboard input
focus
A control that has this can receive keyboard input
menu bar
A control that has this can receive keyboard input
Toolbox tab
A control that has this can receive keyboard input
Form Designer
A control that has this can receive keyboard input
node
A control that has this can receive keyboard input
AcceptButton
A control that has this can receive keyboard input
click event
A control that has this can receive keyboard input
access specifier
GUI objects that provide an interface for collecting, displaying, and delivering information
Form s
GUI objects that provide an interface for collecting, displaying, and delivering information
focus
GUI objects that provide an interface for collecting, displaying, and delivering information
menu bar
GUI objects that provide an interface for collecting, displaying, and delivering information
Toolbox tab
GUI objects that provide an interface for collecting, displaying, and delivering information
Form Designer
GUI objects that provide an interface for collecting, displaying, and delivering information
node
GUI objects that provide an interface for collecting, displaying, and delivering information
AcceptButton
GUI objects that provide an interface for collecting, displaying, and delivering information
click event
GUI objects that provide an interface for collecting, displaying, and delivering information
access specifier
A keyword in a method header (for example, the keyword private ) that dictates which classes can use the method
Form s
A keyword in a method header (for example, the keyword private ) that dictates which classes can use the method
focus
A keyword in a method header (for example, the keyword private ) that dictates which classes can use the method
menu bar
A keyword in a method header (for example, the keyword private ) that dictates which classes can use the method
Toolbox tab
A keyword in a method header (for example, the keyword private ) that dictates which classes can use the method
Form Designer
A keyword in a method header (for example, the keyword private ) that dictates which classes can use the method
node
A keyword in a method header (for example, the keyword private ) that dictates which classes can use the method
AcceptButton
A keyword in a method header (for example, the keyword private ) that dictates which classes can use the method
click event
A keyword in a method header (for example, the keyword private ) that dictates which classes can use the method
access specifier
Question
Compare GUI and console applications. How would you choose which is more appropriate for a given task?
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/42
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 3: Using Gui Objects and the Visual Studio Ide
1
____ are rectangular GUI objects that provide an interface for collecting, displaying, and delivering information.

A) Label s
B) TextBox es
C) Button s
D) Form s
D
2
You cannot relocate a control on a Form once you have added it.
False
3
You can change the appearance, size, color, and window management features of a Form by setting its ____.

A) namespace
B) environment
C) properties
D) name
C
4
The environment the user sees is a program's ____.

A) interface
B) implementation
C) event
D) source code
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
5
If you change a Form 's Name , you will notice differences in the visual design.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
6
If a Button 's name is reportButton , then the default name of its Click() method is ____.

A) reportButton_Click()
B) reportButton.Click()
C) report_Click()
D) report.Click()
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
7
Form s almost always include ____, which are devices such as labels, text boxes, and buttons that users can manipulate to interact with a program.

A) controls
B) widgets
C) elements
D) IDEs
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
8
Professional programmers usually do not retain the default names for Form s and controls.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
9
The property names generally appear in alphabetical order in the Properties window. A notable exception is the ____ entry.

A) Text
B) Size
C) Name
D) BackColor
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
10
Adding functionality to a Button is easy when you use the IDE. After you have dragged a Button onto a Form , you can ____ it to create a method that executes when the user clicks the Button .

A) select
B) double-click
C) click
D) delete
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
11
The ____ in the Visual C# IDE main window lies horizontally across the top of the window and includes a File menu from which you open, close, and save projects.

A) Toolbox tab
B) menu bar
C) Form Designer
D) Solution Explorer
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
12
So much code is needed to create even the simplest of GUI programs that it is far more practical to develop the user interface visually in an IDE.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
13
To change the size of a button on a Form , you can drag the button's ____.

A) text
B) handles
C) nodes
D) controls
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
14
When you create a Windows Forms project, Visual C# adds a form to the project and calls it ____.

A) button1
B) Form1
C) form1
D) Window1
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
15
One of the key features of the Visual C# IDE is the ____, which is used for viewing and managing project files and settings.

A) Properties
B) Toolbox tab
C) Solution Explorer
D) Form Designer
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
16
The Form class contains approximately ____ properties.

A) 10
B) 30
C) 100
D) 300
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
17
You can change a Label 's ____ property to display any string of text.

A) Name
B) Size
C) Random
D) Text
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
18
A Form 's ____ is what appears in its title bar, and it can be any string.

A) Name
B) property
C) Text
D) label
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
19
You are not required to create a Click() method for a Button .
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
20
A ____ is a control that is used to display text such as a prompt or a result of some computation.

A) Form
B) Button
C) Label
D) TextBox
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
21
If you make a change to a program and try to rerun it, you get an error message that starts with "Could not copy...". The solution is to ____ and then try again.

A) close the IDE
B) press F1
C) reinstall Visual Studio
D) close the previous execution
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
22
____ are controls through which a user can enter input data in a GUI application.

A) Button s
B) TextBox es
C) Label s
D) Form s
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
23
Explain how to add functionality to a Button on a Form .
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
24
What are TextBox es and how do you use them?
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
25
Name and describe some of the properties of Button s.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
26
What conventions are usually applied when naming Form s and controls?
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
27
How do you use the Toolbox to add a control to a Form ?
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
28
A Button 's ____________________ property indicates whether the button is visible.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
29
____ is the process of changing a program's internal structure without changing the way the program works.

A) Editing
B) Code generation
C) Code modification
D) Code refactoring
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
30
What are Label s and how do you use them?
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
31
The order in which controls receive focus from successive Tab key presses is their ____.

A) focus order
B) TabIndex
C) tab order
D) view order
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
32
After you have dragged a Button onto a Form , you can ____________________ it to create a method that executes when the user clicks the button.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
33
When a user types a value into a TextBox in an executing program, it becomes the value for the ____ property of the TextBox .

A) Text
B) String
C) Label
D) Name
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
34
How do you create a Form visually using the Visual Studio C# IDE?
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
35
When deciding which interface to use, pick the ____ interface if you want your application to look snazzy.

A) User
B) GUI
C) Console
D) Jazz
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
36
How do you delete an unwanted event-handling method?
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
37
The period during which you design a program is called design time. The period during which you execute a program is called ____________________.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
38
Almost all Form s contain ____________________, which you can drag wherever you think they will be most useful.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
39
When opened, the ____________________ provides lists of controls you can drag onto a Form so that you can develop programs visually, using a mouse.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
40
Explain how to refactor your code to fix problems after renaming a Button that already had a Click() method.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
41
Match between columns
Provides lists of controls that can be dragged onto a Form so that you can develop programs visually
Form s
Provides lists of controls that can be dragged onto a Form so that you can develop programs visually
focus
Provides lists of controls that can be dragged onto a Form so that you can develop programs visually
menu bar
Provides lists of controls that can be dragged onto a Form so that you can develop programs visually
Toolbox tab
Provides lists of controls that can be dragged onto a Form so that you can develop programs visually
Form Designer
Provides lists of controls that can be dragged onto a Form so that you can develop programs visually
node
Provides lists of controls that can be dragged onto a Form so that you can develop programs visually
AcceptButton
Provides lists of controls that can be dragged onto a Form so that you can develop programs visually
click event
Provides lists of controls that can be dragged onto a Form so that you can develop programs visually
access specifier
Lies horizontally across the top of the IDE window, and includes submenus that list additional options
Form s
Lies horizontally across the top of the IDE window, and includes submenus that list additional options
focus
Lies horizontally across the top of the IDE window, and includes submenus that list additional options
menu bar
Lies horizontally across the top of the IDE window, and includes submenus that list additional options
Toolbox tab
Lies horizontally across the top of the IDE window, and includes submenus that list additional options
Form Designer
Lies horizontally across the top of the IDE window, and includes submenus that list additional options
node
Lies horizontally across the top of the IDE window, and includes submenus that list additional options
AcceptButton
Lies horizontally across the top of the IDE window, and includes submenus that list additional options
click event
Lies horizontally across the top of the IDE window, and includes submenus that list additional options
access specifier
An icon that appears beside a list or a section of code and that can be expanded or condensed
Form s
An icon that appears beside a list or a section of code and that can be expanded or condensed
focus
An icon that appears beside a list or a section of code and that can be expanded or condensed
menu bar
An icon that appears beside a list or a section of code and that can be expanded or condensed
Toolbox tab
An icon that appears beside a list or a section of code and that can be expanded or condensed
Form Designer
An icon that appears beside a list or a section of code and that can be expanded or condensed
node
An icon that appears beside a list or a section of code and that can be expanded or condensed
AcceptButton
An icon that appears beside a list or a section of code and that can be expanded or condensed
click event
An icon that appears beside a list or a section of code and that can be expanded or condensed
access specifier
A Form property that gets or sets the button on the form that is clicked when the user presses the Enter key
Form s
A Form property that gets or sets the button on the form that is clicked when the user presses the Enter key
focus
A Form property that gets or sets the button on the form that is clicked when the user presses the Enter key
menu bar
A Form property that gets or sets the button on the form that is clicked when the user presses the Enter key
Toolbox tab
A Form property that gets or sets the button on the form that is clicked when the user presses the Enter key
Form Designer
A Form property that gets or sets the button on the form that is clicked when the user presses the Enter key
node
A Form property that gets or sets the button on the form that is clicked when the user presses the Enter key
AcceptButton
A Form property that gets or sets the button on the form that is clicked when the user presses the Enter key
click event
A Form property that gets or sets the button on the form that is clicked when the user presses the Enter key
access specifier
The event generated when a user clicks a control in a GUI program
Form s
The event generated when a user clicks a control in a GUI program
focus
The event generated when a user clicks a control in a GUI program
menu bar
The event generated when a user clicks a control in a GUI program
Toolbox tab
The event generated when a user clicks a control in a GUI program
Form Designer
The event generated when a user clicks a control in a GUI program
node
The event generated when a user clicks a control in a GUI program
AcceptButton
The event generated when a user clicks a control in a GUI program
click event
The event generated when a user clicks a control in a GUI program
access specifier
The area where you design applications visually
Form s
The area where you design applications visually
focus
The area where you design applications visually
menu bar
The area where you design applications visually
Toolbox tab
The area where you design applications visually
Form Designer
The area where you design applications visually
node
The area where you design applications visually
AcceptButton
The area where you design applications visually
click event
The area where you design applications visually
access specifier
A control that has this can receive keyboard input
Form s
A control that has this can receive keyboard input
focus
A control that has this can receive keyboard input
menu bar
A control that has this can receive keyboard input
Toolbox tab
A control that has this can receive keyboard input
Form Designer
A control that has this can receive keyboard input
node
A control that has this can receive keyboard input
AcceptButton
A control that has this can receive keyboard input
click event
A control that has this can receive keyboard input
access specifier
GUI objects that provide an interface for collecting, displaying, and delivering information
Form s
GUI objects that provide an interface for collecting, displaying, and delivering information
focus
GUI objects that provide an interface for collecting, displaying, and delivering information
menu bar
GUI objects that provide an interface for collecting, displaying, and delivering information
Toolbox tab
GUI objects that provide an interface for collecting, displaying, and delivering information
Form Designer
GUI objects that provide an interface for collecting, displaying, and delivering information
node
GUI objects that provide an interface for collecting, displaying, and delivering information
AcceptButton
GUI objects that provide an interface for collecting, displaying, and delivering information
click event
GUI objects that provide an interface for collecting, displaying, and delivering information
access specifier
A keyword in a method header (for example, the keyword private ) that dictates which classes can use the method
Form s
A keyword in a method header (for example, the keyword private ) that dictates which classes can use the method
focus
A keyword in a method header (for example, the keyword private ) that dictates which classes can use the method
menu bar
A keyword in a method header (for example, the keyword private ) that dictates which classes can use the method
Toolbox tab
A keyword in a method header (for example, the keyword private ) that dictates which classes can use the method
Form Designer
A keyword in a method header (for example, the keyword private ) that dictates which classes can use the method
node
A keyword in a method header (for example, the keyword private ) that dictates which classes can use the method
AcceptButton
A keyword in a method header (for example, the keyword private ) that dictates which classes can use the method
click event
A keyword in a method header (for example, the keyword private ) that dictates which classes can use the method
access specifier
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
42
Compare GUI and console applications. How would you choose which is more appropriate for a given task?
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 42 flashcards in this deck.