Deck 3: Using Gui Objects and the Visual Studio Ide
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/40
Play
Full screen (f)
Deck 3: Using Gui Objects and the Visual Studio Ide
1
What part of a button on a form can be dragged in order to change the button's size?
A) The button's text
B) The button's handles
C) The button's nodes
D) The button's controls
A) The button's text
B) The button's handles
C) The button's nodes
D) The button's controls
B
2
Professional programmers usually do not retain the default names for Forms and controls.
True
3
If a Button's name is reportButton, what will the default name of its Click() method be?
A) reportButton_Click()
B) reportButton.Click()
C) report_Click()
D) report.Click()
A) reportButton_Click()
B) reportButton.Click()
C) report_Click()
D) report.Click()
A
4
You cannot relocate a control on a Form once you have added it.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
5
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 40 flashcards in this deck.
Unlock Deck
k this deck
6
After you have added a Button onto a form, what can you do in order to create a method that executes when the user clicks the Button?
A) You can select the Button, then create the method.
B) You can double-click the Button, and then create the method.
C) You can single click the Button, and then create the method.
D) You must delete the Button, and create the method first, then call the Button object by name.
A) You can select the Button, then create the method.
B) You can double-click the Button, and then create the method.
C) You can single click the Button, and then create the method.
D) You must delete the Button, and create the method first, then call the Button object by name.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
7
When sorting the Properties in alphabetical order in the Properties window, what entry is not in alphabetical order?
A) Text
B) Size
C) Name
D) BackColor
A) Text
B) Size
C) Name
D) BackColor
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
8
Objects such as the labels, buttons, and text boxes seen within a program's environment are all components of what part of a program?
A) The program's interface.
B) The program's implementation.
C) The program's events.
D) The program's source code.
A) The program's interface.
B) The program's implementation.
C) The program's events.
D) The program's source code.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
9
What kind of GUI object is rectangular and provides an interface for collecting, displaying, and delivering information?
A) Labels
B) TextBoxes
C) Buttons
D) Forms
A) Labels
B) TextBoxes
C) Buttons
D) Forms
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
10
What serves as 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
A) Form
B) Button
C) Label
D) TextBox
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
11
If you change a Form's Name, you will notice differences in the visual design.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
12
What name is given to the first form in a Windows Forms project within Visual C# by default?
A) button1
B) Form1
C) TopForm1
D) Window1
A) button1
B) Form1
C) TopForm1
D) Window1
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
13
Labels, text boxes, and buttons that users can manipulate to interact with a program's forms are referred to by what term?
A) controls
B) instruments
C) elements
D) IDEs
A) controls
B) instruments
C) elements
D) IDEs
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
14
Where in the Visual C# IDE main window can you find the File menu, as well as submenus for editing, debugging, and help tasks?
A) Toolbox tab
B) menu bar
C) Form Designer
D) Solution Explorer
A) Toolbox tab
B) menu bar
C) Form Designer
D) Solution Explorer
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
15
What feature in the Visual C# IDE can be used for viewing and managing project files and settings?
A) Properties
B) Toolbox tab
C) Solution Explorer
D) Form Designer
A) Properties
B) Toolbox tab
C) Solution Explorer
D) Form Designer
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
16
What Label property can be changed to display any string of text?
A) Name
B) Size
C) Random
D) Text
A) Name
B) Size
C) Random
D) Text
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
17
Approximately how many different properties exist within the Form class?
A) 10
B) 30
C) 100
D) 300
A) 10
B) 30
C) 100
D) 300
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
18
Where can the appearance, size, color, and window management features of a Form be modified?
A) In the form's namespace.
B) In the form's environment configuration file.
C) In the form's properties.
D) In the form's name sheet.
A) In the form's namespace.
B) In the form's environment configuration file.
C) In the form's properties.
D) In the form's name sheet.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
19
What form property allows you to specify the caption of the Form in the title bar?
A) Name
B) Property
C) Text
D) Label
A) Name
B) Property
C) Text
D) Label
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
20
You are not required to create a Click() method for a Button.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
21
What property can be modified to change the tab order for a GUI component?
A) TabPos
B) TabNum
C) TabIndex
D) TabPlace
A) TabPos
B) TabNum
C) TabIndex
D) TabPlace
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
22
What type of font should you use if you wish to align text values on controls?
A) proportional font
B) autospaced font
C) monospaced font
D) elongated font
A) proportional font
B) autospaced font
C) monospaced font
D) elongated font
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
23
What controls can be used to allow a user to input data in a GUI application?
A) Buttons
B) TextBoxes
C) Labels
D) Forms
A) Buttons
B) TextBoxes
C) Labels
D) Forms
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
24
What process involves the changing of a program's internal structure without changing the way the program works?
A) Editing
B) Code generation
C) Code modification
D) Code refactoring
A) Editing
B) Code generation
C) Code modification
D) Code refactoring
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
25
What are Labels and how do you use them?
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
26
After making a change to a program and attempting to re-run it, you get an error message stating that changes are not allowed.What can you do to clear the error?
A) You must close the IDE and re-open it.
B) You must press F4 to run the application.
C) The application store has been corrupted, you must reinstall Visual Studio.
D) You must close the previous execution of the program, then you can attempt to re-run.
A) You must close the IDE and re-open it.
B) You must press F4 to run the application.
C) The application store has been corrupted, you must reinstall Visual Studio.
D) You must close the previous execution of the program, then you can attempt to re-run.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
27
Compare GUI and console applications.How would you choose which is more appropriate for a given task?
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
28
How do you use the Toolbox to add a control to a Form?
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
29
When designing an application, what type of interface generally requires more time to develop?
A) User
B) GUI
C) Console
D) TUI
A) User
B) GUI
C) Console
D) TUI
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
30
After a user types a value into a TextBox in an executing program, where is the value stored?
A) In the Text property of the TextBox.
B) In the String property of the TextBox.
C) In the Label property of the TextBox.
D) In the Name property of the TextBox.
A) In the Text property of the TextBox.
B) In the String property of the TextBox.
C) In the Label property of the TextBox.
D) In the Name property of the TextBox.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
31
How do you delete an unwanted event-handling method?
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
32
What determines the order in which controls receive focus from successive Tab key presses?
A) focus order
B) TabList
C) tab order
D) view order
A) focus order
B) TabList
C) tab order
D) view order
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
33
What statement regarding the use of Designer.cs files is accurate?
A) The Windows Form Designer can't automatically add code to the file.
B) Code in the Designer.cs file represents actions that are performed when you drag and drop controls from the Toolbox.
C) Changes to this file should be done manually, to ensure accuracy.
D) The Designer.cs file is not visible within the IDE.
A) The Windows Form Designer can't automatically add code to the file.
B) Code in the Designer.cs file represents actions that are performed when you drag and drop controls from the Toolbox.
C) Changes to this file should be done manually, to ensure accuracy.
D) The Designer.cs file is not visible within the IDE.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
34
What are TextBoxes and how do you use them?
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
35
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 40 flashcards in this deck.
Unlock Deck
k this deck
36
Name and describe some of the properties of Buttons.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
37
Explain how to add functionality to a Button on a Form.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
38
What key combination can be used to run a program without debugging it?
A) Alt + F4
B) Ctrl + F5
C) Ctrl + R
D) Shift + Ctrl + 1
A) Alt + F4
B) Ctrl + F5
C) Ctrl + R
D) Shift + Ctrl + 1
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
39
What conventions are usually applied when naming Forms and controls?
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
40
How do you create a Form visually using the Visual Studio C# IDE?
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck