Exam 9: Classes and Multiform Projects

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

If you try to pass a property to a ref or an out parameter, an error occurs.

Free
(True/False)
4.9/5
(46)
Correct Answer:
Verified

True

The first line of a class declaration is known as the ____________.

Free
(Multiple Choice)
4.8/5
(32)
Correct Answer:
Verified

B

When finding the classes in a problem description, sometimes a plural noun will indicate a class and a singular noun will indicate an object.

Free
(True/False)
4.8/5
(44)
Correct Answer:
Verified

True

You can use the tables that appear at the top of the Designer to display different forms or their code.

(True/False)
4.7/5
(34)

When you pass a property as an argument to a method, there is one restriction: Properties can be passed only ____________.

(Multiple Choice)
5.0/5
(28)

A special set of methods, known as ____________ work in conjunction with a private field.

(Multiple Choice)
4.9/5
(39)

To add a new form to a project, first click ____________ on the Visual Studio menu bar, and then select Add Windows Form... from the PROJECT menu.

(Multiple Choice)
4.7/5
(35)

If you need to make a property read only, you simply do not write a get accessor for the property.

(True/False)
5.0/5
(30)

The process of matching a method call with the correct method is known as ____________.

(Multiple Choice)
4.8/5
(41)

Because classes are reference types, objects that instances of a class are always passed by reference.

(True/False)
4.9/5
(38)

You are limited to one form in a Visual C# project.

(True/False)
4.8/5
(36)

If you wish to remove a form from a project and 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.8/5
(37)

The compiler uses a method's ____________ to distinguish it from other methods of the same name.

(Multiple Choice)
4.8/5
(41)

Writing each class in its own separate file makes your code more organized and helps keep your source code files to a manageable size.

(True/False)
4.8/5
(37)

A class's ____________ are the statements that define the class's fields, properties, and methods.

(Multiple Choice)
4.7/5
(42)

A class's constructor must always use the private access modifier.

(True/False)
4.9/5
(37)

When a class contains a method that uses the public access modifier, the method can be called from code outside the class.

(True/False)
4.8/5
(34)

Class fields are almost always declared private in order to protect them from accidental corruption.

(True/False)
4.7/5
(37)

In your application's code, the first step in displaying a form is to create an instance of the form's class.

(True/False)
4.9/5
(29)

A ____________ allows the user to switch focus to another form while it is displayed.

(Multiple Choice)
4.9/5
(33)
Showing 1 - 20 of 89
close modal

Filters

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