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 Collections74 Questions
Exam 9: Introduction to Windows Programming75 Questions
Exam 10: Programming Based on Events75 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 Applications73 Questions
Select questions type
The keyword new is used as an operator to call constructor methods.
(True/False)
4.8/5
(82)
When you define a class, you can use ____ to display all public members of the class (once an object is instantiated).
(Multiple Choice)
4.8/5
(90)
A class is normally associated with a(n) ____, which often describes a person, place, or thing and is normally a noun.
(Multiple Choice)
4.7/5
(73)
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
(84)
If you overwrite the ToString( ) method, you should also override the other methods of the object class.
(True/False)
4.8/5
(70)
Constructors differ from other methods in that constructors ____.
(Multiple Choice)
4.8/5
(87)
When you create an application that has two files, both must have a Main( ) method.
(True/False)
4.9/5
(85)
Three of the contextual keywords associated with properties are get, set, and value.
(True/False)
4.9/5
(89)
When you define a property, you can define the set without the get, but you must define a get.
(True/False)
4.9/5
(76)
The ToString( ) method is automatically invoked when an object reference is made in the ____.
(Multiple Choice)
4.8/5
(69)
The ToString( ) method is automatically invoked when the Write( ) or WriteLine( ) methods are called.
(True/False)
4.8/5
(100)
Which of the following is NOT one of the inherited member methods of the object class?
(Multiple Choice)
4.8/5
(96)
To define a property to change a data member of a class include a ____ clause.
(Multiple Choice)
4.9/5
(83)
The return type for constructors is always the type of the class.
(True/False)
4.9/5
(74)
Which of the following is true regarding methods of a class?
(Multiple Choice)
4.9/5
(92)
When you define a class and determine what data members it should have, you are declaring instance variables or fields that will represent the state of an object.
(True/False)
4.7/5
(68)
Showing 21 - 40 of 75
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)