Filters
Question type

Study Flashcards

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

Correct Answer

verifed

verified

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.


A) PROJECT
B) FILE
C) TOOLS
D) WINDOW

Correct Answer

verifed

verified

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


A) modeless form
B) subsidiary form
C) modal form
D) minimized form

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

True

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


A) by reference
B) globally
C) by value
D) locally

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

True

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

Correct Answer

verifed

verified

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


A) binding
B) return type
C) name
D) signature

Correct Answer

verifed

verified

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


A) overall body
B) field definitions
C) private elements
D) member declarations

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

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


A) object heading
B) class header
C) data title
D) class definition

Correct Answer

verifed

verified

B

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

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

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 ____________.


A) Erase
B) Remove
C) Delete
D) Purge

Correct Answer

verifed

verified

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


A) pairing
B) signing
C) binding
D) matching

Correct Answer

verifed

verified

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


A) valuators
B) accessors
C) getters and setters
D) transport methods

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

Showing 1 - 20 of 89

Related Exams

Show Answer