Exam 9: Classes and Multiform Projects
Exam 1: Introduction to Computers and Programming161 Questions
Exam 2: Introduction to Visual C131 Questions
Exam 3: Processing Data174 Questions
Exam 4: Making Decisions77 Questions
Exam 5: Loops, Files, and Random Numbers109 Questions
Exam 6: Modularizing Your Code With Methods61 Questions
Exam 7: Arrays and Lists99 Questions
Exam 8: More About Processing Data87 Questions
Exam 9: Classes and Multiform Projects89 Questions
Exam 10: Inheritance and Polymorphism37 Questions
Exam 11: Databases69 Questions
Select questions type
Which one of the following statements declares a variable named fox that references an instance of the Animal class?
(Multiple Choice)
4.8/5
(82)
Some programmers begin the names of backing fields with an underscore to eliminate confusion between the field name and the property name.
(True/False)
4.9/5
(82)
Once you have added a form to a project, you can place any controls on it that you desire and write the necessary event handlers for it.
(True/False)
4.9/5
(70)
Constructors cannot accept arguments in the same way as other methods.
(True/False)
4.9/5
(82)
Constructors cannot be overloaded, which means a class can have only one constructor.
(True/False)
4.8/5
(61)
When adding a new class file to a Visual C# project, be sure that the filename ends with the ____________ extension.
(Multiple Choice)
4.8/5
(95)
A ____________ is a special type of class member that allows an object to store and retrieve a piece of data.
(Multiple Choice)
4.9/5
(87)
The ____________ displays a form on the screen, and it gives that form the focus.
(Multiple Choice)
4.9/5
(99)
Once a form has been created, it cannot be removed from a Visual Studio project.
(True/False)
4.8/5
(74)
It is perfectly legal to write a class without any constructors.
(True/False)
4.9/5
(78)
When you create an array of a class type, each element of the array will be initialized with the value ____________ by default.
(Multiple Choice)
4.8/5
(79)
When developing an object-oriented program, on of your first tasks is to identify the classes that you will need to create.
(True/False)
4.9/5
(84)
A(n) ____________ is a class constructor that accepts no arguments.
(Multiple Choice)
5.0/5
(84)
The ____________ is a method that returns the property's value.
(Multiple Choice)
4.9/5
(85)
The private field, which is known as the property's ____________, holds any data that is assigned to the property.
(Multiple Choice)
4.9/5
(85)
To add an object of a class to a List, you use the ____________ method.
(Multiple Choice)
5.0/5
(74)
An error will occur if you to try to assign a value to a read-only property.
(True/False)
4.9/5
(87)
A constructor that accepts arguments is known as a(n) ____________.
(Multiple Choice)
4.8/5
(74)
Showing 41 - 60 of 89
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)