Exam 11: Object-Oriented Programming

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

Each class has a special method called a constructor that is sometimes invoked when an object is instantiated.

Free
(True/False)
4.8/5
(33)
Correct Answer:
Verified

False

Set property procedures are used to assign values to member variables.

Free
(True/False)
4.9/5
(40)
Correct Answer:
Verified

True

The principle of "data hiding" is the exact opposite of the concepts that serve as the basis for object-oriented programming.

Free
(True/False)
4.9/5
(41)
Correct Answer:
Verified

False

Two instances of the same class may exist in a single program.

(True/False)
4.8/5
(35)

Which of the following is an accurate definition of the term class?

(Multiple Choice)
4.8/5
(35)

Statements of which of the following kind should be placed in the Declarations section of a class code block?

(Multiple Choice)
4.7/5
(37)

Methods can be either Sub or Function procedures.

(True/False)
4.7/5
(38)

What is the purpose of the Get property procedure?

(Multiple Choice)
4.9/5
(35)

Property blocks of code, that are used to access (indirectly) member or instance variables, must always contain both Get and Set property procedures.

(True/False)
4.8/5
(46)

In the following statement, the word Private is used to guarantee that the variable cannot be accessed directly from outside the object.

(True/False)
4.8/5
(28)

Which one of the following statements does NOT apply to object-oriented programming?

(Multiple Choice)
4.9/5
(38)

If member variables are declared as Private, they cannot be accessed directly from outside an object.

(True/False)
4.8/5
(36)

The statement for raising a user-defined event is located in the class block of code and the event is dealt with in the form's code.

(True/False)
4.7/5
(43)

A line of code that contains arguments and instantiates an object passes the value of these arguments to the object's New procedure.

(True/False)
4.9/5
(40)

An object is an encapsulation of data and procedures that act on that data.

(True/False)
4.8/5
(38)

Get property procedures are used to retrieve values of member variables.

(True/False)
4.8/5
(44)

The lines of code used to create an instance of a class cannot be used inside of a procedure.

(True/False)
4.8/5
(33)

The feature that two classes can have methods with different names but that have the same purpose (and essentially the same implementation), is known as polymorphism.

(True/False)
4.7/5
(40)

Which statement form below carries out a method?

(Multiple Choice)
4.7/5
(31)

The New event procedure is automatically invoked when an object is instantiated.

(True/False)
4.7/5
(45)
Showing 1 - 20 of 66
close modal

Filters

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