Exam 9: Classes and Multiform Projects

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

When you pass an object that is an instance of a class as an argument, the thing that is passed into the parameter variable is a(n) ____________ to the object.

(Multiple Choice)
4.7/5
(44)

You should never store classes in their own files.

(True/False)
4.8/5
(31)

When you have multiple forms in a project, you should give each form a meaningful name that describes its purpose.

(True/False)
4.7/5
(30)

The set accessor is executed anytime that a property is read.

(True/False)
4.9/5
(40)

Suppose a project has a form named SummaryForm, which one of the following statements creates an instance of the SummaryForm class?

(Multiple Choice)
4.8/5
(31)

Classes are ____________ types.

(Multiple Choice)
4.9/5
(36)

When you create an object from a class, you use a reference variable to reference that object.

(True/False)
4.9/5
(34)

The class header defines the class's fields, properties, and methods.

(True/False)
4.8/5
(34)

Creating an instance of a form's class also displays the form on the screen.

(True/False)
4.9/5
(37)

If you wish to remove a form from a project but you do not want to delete its file from the disk, first right-click on the form's entry in the Solution Explorer window, and on the pop-up menu, click ____________.

(Multiple Choice)
4.9/5
(36)

Every form in a Visual C# project has a class.

(True/False)
4.9/5
(34)

Which one of the following statements calls the Jump method of the Animal class using a reference variable named fox?

(Multiple Choice)
4.8/5
(39)

You cannot overload methods by giving them different return types.

(True/False)
4.9/5
(28)

You create a class by writing a(n) ____________.

(Multiple Choice)
4.9/5
(36)

Objects that are instances of a class cannot be stored in an array.

(True/False)
4.9/5
(47)

When designing a class, you should take care that all data is stored in a field, especially any calculated data.

(True/False)
4.8/5
(31)

In Visual Studio, you can easily switch your view to another form by double-clicking the form's entry in the ____________ window.

(Multiple Choice)
4.9/5
(38)

When you create an array of a class type, each element of the array is a ____________ variable.

(Multiple Choice)
4.9/5
(32)

A(n) ____________ is a method that is automatically executed when an object is created.

(Multiple Choice)
4.9/5
(29)

When an accessor contains only a single statement, many programmers prefer to write the entire accessor in one line of code.

(True/False)
4.8/5
(37)
Showing 21 - 40 of 89
close modal

Filters

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