• Home
  • Textbooks
  • Microsoft Visual C# 2017: An Introduction to Object-Oriented Programming
  • Using GUI Objects and the Visual Studio IDE

Microsoft Visual C# 2017: An Introduction to Object-Oriented Programming

Joyce Farrell

Chapter 3

Using GUI Objects and the Visual Studio IDE - all with Video Answers

Educators


Chapter Questions

00:55

Problem 1

Which of the following is a GUI object that provides an interface for collecting, displaying, and delivering information and that contains other controls?
a. Button
b. Form
c. TextBox
d. Label

Benjamin Schreyer
Benjamin Schreyer
Numerade Educator

Problem 2

In the Visual Studio IDE main window, where does the menu bar lie?
a. vertically along the left border
b. vertically along the right border
c. horizontally across the bottom of the window
d. horizontally across the top of the window

Check back soon!

Problem 3

In the IDE, the area where you visually construct a Form is the _____________________.
a. Toolbox
b. Form Designer
c. Easel
d. Sandbox

Check back soon!

Problem 4

When you create a new Windows Forms project, by default the first Form you see is named _____________________.
a. Form
b. FormA
c. Form1
d. FormAlpha

Check back soon!
01:31

Problem 5

The Form class has _____________________ properties.
a. three
b. ten
c. about 100
d. about 1000

Lucas Finney
Lucas Finney
Numerade Educator

Problem 6

Which of the following is not a Form property?
a. BackColor
b. Size
c. Text
d. ProjectName

Check back soon!

Problem 7

Which of the following is a legal Form Name property value?
a. PayrollForm
b. Payroll Form
c. either of the above
d. none of the above

Check back soon!

Problem 8

Which of the following is a legal Form Text property value?
a. PayrollForm
b. Payroll Form
c. either of the above
d. none of the above

Check back soon!
00:55

Problem 9

Which of the following does not appear in the IDE’s Toolbox list?
a. Label
b. Button
c. Text
d. TextBox

Benjamin Schreyer
Benjamin Schreyer
Numerade Educator

Problem 10

After you have dragged a Button onto a Form in the IDE, you can double-click it to _____________________.
a. delete it
b. view its properties
c. create a method that executes when a user clicks the Button
d. increase its size

Check back soon!

Problem 11

The button1_Click() method that is generated by the IDE _____________________.
a. has a private access specifier
b. is nonstatic
c. contains parameters between its parentheses
d. all of the above

Check back soon!

Problem 12

A(n) _____________________ is generated when a user interacts with a GUI object.
a. error
b. occasion
c. method
d. event

Check back soon!

Problem 13

If you create a Button named yesButton, the default name of the method that responds to clicks on it is _____________________.
a. button1_Click()
b. yesButton_Method()
c. click_YesButton()
d. yesButton_Click()

Check back soon!

Problem 14

Statements allowed in a Click() method include _____________________ .
a. variable declarations
b. arithmetic statements
c. both of the above
d. none of the above

Check back soon!
00:55

Problem 15

_____________________ are controls through which a user can enter input data in a GUI application.
a. Labels
b. Tags
c. Tickets
d. TextBoxes

Benjamin Schreyer
Benjamin Schreyer
Numerade Educator

Problem 16

The value in a TextBox is _____________________.
a. an int
b. a double
c. a string
d. It might be any of the above.

Check back soon!

Problem 17

Which of the following is a legal and conventional name for a TextBox?
a. Salary TextBox
b. salaryTextBox
c. both of the above
d. none of the above

Check back soon!
00:41

Problem 18

The process of changing a program’s internal structure without changing the way the program works is _____________________.
a. compiling
b. debugging
c. code refactoring
d. systems analysis

Ernest Castorena
Ernest Castorena
Numerade Educator

Problem 19

If you inadvertently create a Click() method for a control that should not generate a click event, you can successfully eliminate the method by _____________________ .
a. deleting the method code from the Form1.cs file
b. eliminating the method from the Events list in the Properties window
c. adding the method to the Discard window
d. making the method a comment by placing two forward slashes at the start of each line

Check back soon!
00:55

Problem 20

Of the following, the most significant difference between many console applications and GUI applications is _____________________.
a. their appearance
b. their ability to accept input
c. their ability to perform calculations
d. their ability to be created using C#

Benjamin Schreyer
Benjamin Schreyer
Numerade Educator