Exam 4: Creating Your Own Classes

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

The static keyword must not be used with ____.

(Multiple Choice)
4.9/5
(59)

The keyword new is used as an operator to call constructor methods.

(True/False)
4.8/5
(82)

Class methods manipulate data by ____.

(Multiple Choice)
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)

Accessor and mutators are ____________ methods

(Short Answer)
4.9/5
(81)

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)

Instance methods manipulate data by ____.

(Multiple Choice)
4.8/5
(91)

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
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)