Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Visual c# 2012 An introduction to object-oriented programming Joyce Farrell 5th

ID: 3776847 • Letter: V

Question

Visual c# 2012
An introduction to object-oriented programming
Joyce Farrell
5th edition

Chapter 3 Review questions

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

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

3. In the IDE, the area where you visually construct a Form is the _______________.
a)Toolbox b)Palette c)Easel d)Form Designer

4. When you create a new Windows Forms project, by default the first Form you see is named __________.
a)Form b)Form1 c)FormA d)FormA1pha

5. The Form class has _____________properties.
a)three b)ten c)about 100 d)about 1000

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

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

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

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

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)contains parameters between its parenthesis d)all of the above

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 parenthesis d)all of the above

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

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

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

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

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

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

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

19. If you inadvertently create a Click() method for a control that should not generate a clik 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

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 ability to perform calculations d)their ability to be created using C#

Explanation / Answer

Answers:
1) a.Form
2) c.horizontally across the top of the window
3) d.Form designer
4) b.Form1
5) c.about 100
6) b.ProjecctName
7) b.PayrollForm
8) c)either of the above
9) a)Text
10) c)contains parameters between its parenthesis
11) d)all of the above
12) a)event
13) d)yesButton_Click()
14) c)both of the above
15) d)TextBoxes
16) c)a string
17) b)salaryTextBox
18) b)debugging
19) c)adding the method to the Discard window
20) d)their ability to be created using C#