Programming Homework Help

C# Question

 

Question 1 (5 points)

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

Question 1 options:

Question 2 (5 points)

Composition is:

Question 2 options:

Question 3 (5 points)

A class’s __________ initializes members of that class.

Question 3 options:

Question 4 (5 points)

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

Question 4 options:

Question 5 (5 points)

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

Question 5 options:

Question 6 (5 points)

Composition is sometimes referred to as a(n) __________ relationship.

Question 6 options:

Question 7 (5 points)

A constructor CANNOT:

Question 7 options:

Question 8 (5 points)

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

Question 8 options:

Question 9 (5 points)

Constructors:

Question 9 options:

Question 10 (5 points)

Having a this reference allows a(n):

Question 10 options:

Question 11 (5 points)

Object orientation uses classes to:

Question 11 options:

Question 12 (5 points)

Abstract Data Types:

Question 12 options:

Question 13 (5 points)

Which of the following should usually be private?

Question 13 options:

Question 14 (5 points)

Keyword __________ is used for constants whose values cannot be determined at compile time.

Question 14 options:

Question 15 (5 points)

Stacks are commonly referred to as __________ data structures.

Question 15 options:

Question 16 (5 points)

Which statement is FALSE?

Question 16 options:

Question 17 (5 points)

Every class inherits directly or indirectly from class:

Question 17 options:

Question 18 (5 points)

Which of the following describes a static variable?

Question 18 options:

Question 19 (5 points)

A __________ can be defined in a class to perform termination housekeeping on an object before the garbage collector reclaims the object’s memory.

Question 19 options:

Question 20 (5 points)

Which statement is FALSE?

Question 20 options: