Exam 4: Creating Your Own Classes

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

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)

What will be displayed from the above line?

(Multiple Choice)
5.0/5
(79)

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)

Instance methods are ____.

(Multiple Choice)
4.8/5
(84)

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)

In order to test a class,____.

(Multiple Choice)
4.9/5
(64)

The ToString( )method is automatically invoked when an object reference is made in the ____.

(Multiple Choice)
4.8/5
(96)

A class is an instance of an object.

(True/False)
4.9/5
(87)

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)

Variables declared in the Main( )method are ____.

(Multiple Choice)
4.7/5
(61)

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

Filters

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