Exam 9: Classes and Multiform Projects

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

Which one of the following statements declares a variable named fox that references an instance of the Animal class?

(Multiple Choice)
4.8/5
(82)

Some programmers begin the names of backing fields with an underscore to eliminate confusion between the field name and the property name.

(True/False)
4.9/5
(82)

Once you have added a form to a project, you can place any controls on it that you desire and write the necessary event handlers for it.

(True/False)
4.9/5
(70)

Constructors cannot accept arguments in the same way as other methods.

(True/False)
4.9/5
(82)

A method's ____________ is not part of the signature.

(Multiple Choice)
4.8/5
(91)

Constructors cannot be overloaded, which means a class can have only one constructor.

(True/False)
4.8/5
(61)

A property is a class member that behaves like a public field.

(True/False)
4.8/5
(80)

When adding a new class file to a Visual C# project, be sure that the filename ends with the ____________ extension.

(Multiple Choice)
4.8/5
(95)

A ____________ is a special type of class member that allows an object to store and retrieve a piece of data.

(Multiple Choice)
4.9/5
(87)

The ____________ displays a form on the screen, and it gives that form the focus.

(Multiple Choice)
4.9/5
(99)

Once a form has been created, it cannot be removed from a Visual Studio project.

(True/False)
4.8/5
(74)

It is perfectly legal to write a class without any constructors.

(True/False)
4.9/5
(78)

When you create an array of a class type, each element of the array will be initialized with the value ____________ by default.

(Multiple Choice)
4.8/5
(79)

When developing an object-oriented program, on of your first tasks is to identify the classes that you will need to create.

(True/False)
4.9/5
(84)

A(n) ____________ is a class constructor that accepts no arguments.

(Multiple Choice)
5.0/5
(84)

The ____________ is a method that returns the property's value.

(Multiple Choice)
4.9/5
(85)

The private field, which is known as the property's ____________, holds any data that is assigned to the property.

(Multiple Choice)
4.9/5
(85)

To add an object of a class to a List, you use the ____________ method.

(Multiple Choice)
5.0/5
(74)

An error will occur if you to try to assign a value to a read-only property.

(True/False)
4.9/5
(87)

A constructor that accepts arguments is known as a(n) ____________.

(Multiple Choice)
4.8/5
(74)
Showing 41 - 60 of 89
close modal

Filters

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