Exam 10: Classes and Objects: A Deeper Look

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

The _________ of a class are also called the public services or the public interface of the class.

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

C

Consider the statement: Throw new ArgumentOutOfRangeException(0); Which of the following statements is false

Free
(Multiple Choice)
4.9/5
(33)
Correct Answer:
Verified

D

The Object Browser _____________.

Free
(Multiple Choice)
4.9/5
(35)
Correct Answer:
Verified

D

Methods that overload binary operators must take two arguments.

(True/False)
4.8/5
(35)

A constructor should return either true or false to determine if the object was initialized properly.

(True/False)
4.9/5
(25)

You cannot validate values assigned to properties using an object initializer.

(True/False)
4.9/5
(41)

A constructor may not have a return value.

(True/False)
4.7/5
(38)

Failure to release resources when the program is no longer using them can cause ________.

(Multiple Choice)
5.0/5
(34)

Composition is a form of software reuse.

(True/False)
4.7/5
(29)

Composition is sometimes referred to as a(n)________.

(Multiple Choice)
4.8/5
(39)

Instances of a class are called class variables.

(True/False)
4.8/5
(33)

An object's this reference refers to:

(Multiple Choice)
4.9/5
(37)

Which of the following statements is true

(Multiple Choice)
4.7/5
(36)

An object initializer list cannot be empty.

(True/False)
4.7/5
(38)

C# is like C++ in that programmers must manage memory explicitly.

(True/False)
4.9/5
(28)

The use of references to objects of preexisting classes as members of new objects is called

(Multiple Choice)
4.7/5
(38)

Variables that are static have class scope.

(True/False)
4.8/5
(36)

A static method may access static and non-static members.

(True/False)
4.8/5
(34)

The public methods of a class present the services that a class provides.

(True/False)
4.8/5
(41)

Each object of a class has its own copy of all the instance variables of the class.

(True/False)
4.9/5
(37)
Showing 1 - 20 of 79
close modal

Filters

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