Exam 10: Classes and Objects: A Deeper Look

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

You cannot determine when the garbage collector will execute.

(True/False)
4.9/5
(36)

Operators should be overloaded to perform actions similar to those that they normally perform on objects of simple types.

(True/False)
5.0/5
(42)

Which of the following statements is true Constructors:

(Multiple Choice)
4.9/5
(38)

A class cannot have references to objects of other classes as members.

(True/False)
4.9/5
(30)

Data members declared as readonly must be initialized in their declaration.

(True/False)
5.0/5
(28)

C#6] It's common to include in an exception's error message a variable's or property's identifier.This information can help a client-code programmer understand the context in which the exception occurred.Prior to C# 6,you had to hard code these identifiers into your error-message strings.As of C# 6,you can instead use the ________ operator,which returns a string representation of the identifier enclosed in parentheses.

(Multiple Choice)
4.8/5
(35)

The compiler will create a default constructor for a class even if you already declared a constructor(s).

(True/False)
4.9/5
(36)

User-defined classes may be composed of other user-defined classes.

(True/False)
4.7/5
(28)

displays the variables and methods for all classes in a project.

(Multiple Choice)
4.8/5
(35)

Which of the following statements is false

(Multiple Choice)
4.7/5
(34)

Instance variables or methods declared with the modifier are accessible only in that class definition.

(Multiple Choice)
4.8/5
(39)

In a method in which a parameter has the same name as an instance variable,using the this reference allows you to refer to ________.

(Multiple Choice)
4.9/5
(40)

The classes,variables and methods in a program are displayed in a hierarchical structure in Class View.

(True/False)
4.9/5
(43)

A class's initializes members of that class.

(Multiple Choice)
4.9/5
(30)

The garbage collector looks for objects with no values.

(True/False)
4.8/5
(44)

Which of the following is false

(Multiple Choice)
4.9/5
(40)

Member access modifiers are used to limit how much memory is available for class members.

(True/False)
4.9/5
(30)

When should a program explicitly use the this reference

(Multiple Choice)
4.9/5
(39)

An instance of a user-defined type is called a(n)

(Multiple Choice)
4.8/5
(35)
Showing 61 - 79 of 79
close modal

Filters

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