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.

A) True
B) False

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

E) All of the above
F) B) and D)

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.

A) True
B) False

Correct Answer

verifed

verified

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

A) True
B) False

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.

A) True
B) False

Correct Answer

verifed

verified

True

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

E) B) and D)
F) B) and C)

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

E) All of the above
F) A) and B)

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

E) B) and C)
F) A) and B)

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

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

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

A) True
B) False

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

E) C) and D)
F) None of the above

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

E) C) and D)
F) A) and B)

Correct Answer

verifed

verified

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

A) True
B) False

Correct Answer

verifed

verified

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

A) True
B) False

Correct Answer

verifed

verified

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

A) True
B) False

Correct Answer

verifed

verified

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

A) True
B) False

Correct Answer

verifed

verified

True

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

E) C) and D)
F) None of the above

Correct Answer

verifed

verified

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

E) C) and D)
F) A) and D)

Correct Answer

verifed

verified

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

A) True
B) False

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.

A) True
B) False

Correct Answer

verifed

verified

Showing 1 - 20 of 89

Related Exams

Show Answer