Exam 9: Object-Oriented Programming: Classes and Objects

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

For properties that do not have any additional logic in their Set and Get accessors,__________ properties allow you to write one line of code and have the compiler generate the property's instance variable and accessors.

(Multiple Choice)
4.9/5
(35)

Every class inherits directly or indirectly from class _________ except for itself.

(Multiple Choice)
4.8/5
(37)

A class's initializes instance variables of that class.

(Multiple Choice)
4.8/5
(33)

Class Math provides only methods that perform common mathematical calculations.

(True/False)
4.7/5
(32)

Which of the following is a built-in reference type?

(Multiple Choice)
5.0/5
(38)

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

(Multiple Choice)
4.8/5
(33)

A car has many __________,such as its color,the number of doors,the amount of gas in its tank,its current speed and its odometer reading.

(Multiple Choice)
4.8/5
(30)

A Throw statement immediately returns its __________ argument to the caller.

(Multiple Choice)
4.8/5
(40)

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

(True/False)
4.8/5
(31)

A constructor call is required for every object that's created.

(True/False)
4.8/5
(37)

You should not take into consideration that your code will be modified.

(True/False)
4.7/5
(29)

Attempting to modify the value of a Const variable at run time is a syntax error.

(True/False)
4.8/5
(38)

In a method in which a parameter has the same name as an instance variable,the expression Me.name will refer to ________.

(Multiple Choice)
4.9/5
(28)

Which function is called when another class's object is used where a String should be?

(Multiple Choice)
4.9/5
(32)

An object initializer calls the default constructor before executing.

(True/False)
4.7/5
(35)

Object orientation uses classes primarily to:

(Multiple Choice)
4.8/5
(38)

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

(True/False)
4.8/5
(32)

Constructors cannot be overloaded.

(True/False)
4.9/5
(37)

Outside a class's scope,class members cannot be referenced directly by name.

(True/False)
4.9/5
(40)

When the number of references to an object becomes ,that object is marked for garbage collection.

(Multiple Choice)
4.8/5
(34)
Showing 61 - 80 of 80
close modal

Filters

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