Exam 4: Creating Your Own Classes
Exam 1: Introduction to Computing and Programming75 Questions
Exam 2: Data Types and Expressions75 Questions
Exam 3: Methods and Behaviors75 Questions
Exam 4: Creating Your Own Classes75 Questions
Exam 5: Making Decisions75 Questions
Exam 6: Repeating Instructions75 Questions
Exam 7: Arrays75 Questions
Exam 8: Advanced Collections75 Questions
Exam 9: Introduction to Windows Programming75 Questions
Exam 10: Programming Based on Events74 Questions
Exam 11: Advanced Object-Oriented Programming Features75 Questions
Exam 12: Debugging and Handling Exceptions75 Questions
Exam 13: Working with Files75 Questions
Exam 14: Working with Databases75 Questions
Exam 15: Web-Based Applications75 Questions
Select questions type
Which of the following is true regarding methods of a class?
(Multiple Choice)
4.8/5
(73)
____________ access modifier is always associated with constructors.
(Short Answer)
4.9/5
(76)
A property resembles a(n)____,but is more closely aligned to a(n)____.
(Multiple Choice)
4.9/5
(66)
When you define a property,you can define the set without the get,but you must define a get.
(True/False)
4.9/5
(85)
A standard naming convention in C# for properties is to use the same name as the instance variable or field,except begin the identifier using an uppercase character.
(True/False)
4.9/5
(72)
When you define methods of a class,you are defining its behaviors,in terms of what kinds of things it can do.
(True/False)
5.0/5
(80)
When you create an application that has two files,both must have a Main( )method.
(True/False)
4.9/5
(69)
The ToString( )method is automatically invoked when the Write( )or WriteLine( )methods are called.
(True/False)
4.9/5
(91)
To program an object-oriented solution begin by determining what ____ are needed in the solution.
(Multiple Choice)
4.8/5
(78)
If you overwrite the ToString( )method,you should also override the other methods of the object class.
(True/False)
4.8/5
(89)
The ToString( )method is automatically invoked when an object reference is made in the ____.
(Multiple Choice)
4.8/5
(96)
If berber is an object,the statement Console.Write(berber);automatically invokes the ____________ method.
(Short Answer)
5.0/5
(79)
As with overloaded methods,____________ must differ for constructors.
(Short Answer)
4.9/5
(72)
An object is like a class template.The object is used to define the structure for the different classes that are going to be of that type.
(True/False)
4.8/5
(82)
Accessors are special types of methods in C# used to instantiate an object of the class.
(True/False)
5.0/5
(71)
Showing 41 - 60 of 75
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)