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
After the class diagram is created, add the names of data members or fields and methods
using the_________________ section.
Free
(Short Answer)
4.7/5
(25)
Correct Answer:
Class Details
plush.PricePerSqYard = 40.99;
If proper naming conventions were used in the above statement, which of the following statements is true?
Free
(Multiple Choice)
4.8/5
(30)
Correct Answer:
D
Accessors are special types of methods in C# used to instantiate an object of the class.
(True/False)
4.8/5
(36)
____ are special methods used to read the current state or value of an object member's data.
(Multiple Choice)
4.9/5
(42)
If berber is an object, the statement Console.Write(berber); automatically invokes the ____________ method.
(Short Answer)
4.9/5
(37)
The ____________ constructor does not have any parameters and normally has no body, just opening and closing curly braces.
(Short Answer)
4.8/5
(39)
When you define the class, you describe its ____________, or characteristics or fields, in terms of data.
(Short Answer)
4.9/5
(33)
Use a type prefix, such as C for class name. For example, a student class should be named CStudent.
(True/False)
4.9/5
(30)
The body of the constructor methods consist primarily of ____________.
(Short Answer)
4.7/5
(40)
When you define methods of a class, you are defining its behaviors, in terms of what kinds of things it can do.
(True/False)
4.9/5
(39)
All data types are initialized to 0 when an object is constructed.
(True/False)
4.9/5
(42)
A private access modifier is always associated with data members, methods, and constructors of a class.
(True/False)
4.8/5
(39)
As with overloaded methods, ____________ must differ for constructors.
(Short Answer)
4.9/5
(38)
____________ access modifier is always associated with constructors.
(Short Answer)
4.8/5
(32)
When you define a class method, you define its characteristics or fields in terms of the data.
(True/False)
4.7/5
(31)
Showing 1 - 20 of 75
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)