Exam 8: Object-Oriented Programming

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

Abstraction involves the restriction of access to one or more of the properties and methods defined within a class.

(True/False)
4.8/5
(25)

A variable with a global scope can be accessed only within the method it was created in.

(True/False)
4.9/5
(40)

Which of the following lists reflects a left-to-right increase in variable scope?

(Multiple Choice)
4.9/5
(39)

Global variables begin with the ____ character.

(Multiple Choice)
4.8/5
(35)

By creating objects based on Ruby's built-in classes, you instantly get access to all the predefined methods that Ruby defines for those objects.

(True/False)
4.9/5
(30)

With inheritance, the derived class, sometimes referred to as the child class, inherits all of the properties and methods of the parent class.

(True/False)
4.9/5
(29)

Which of the following types of variables is supported by Ruby?

(Multiple Choice)
4.8/5
(37)

Instance variables begin with the ____ character.

(Multiple Choice)
4.9/5
(36)

One limitation of inheritance is that you cannot modify the inherited properties and methods or add new ones to customize child classes.

(True/False)
4.8/5
(32)

When included in a class definition, the initialize method is automatically executed any time an object is instantiated.

(True/False)
4.8/5
(29)

To control access to the properties and methods within a class, you insert the ____ keyword into the class.

(Multiple Choice)
4.7/5
(49)

Which of the following statements is a benefit of using one of Ruby's built-in classes?

(Multiple Choice)
4.9/5
(29)

____ is the process by which one class is derived from another class.

(Multiple Choice)
4.9/5
(46)

One of the limitations of working with Ruby's built-in classes is that you can read but not modify property values.

(True/False)
4.9/5
(35)

____ variables are accessible throughout a Ruby program and have an unlimited scope. Every class in the program is allowed to access them.

(Multiple Choice)
4.7/5
(34)

With ____ you can build an entire family of classes made up of parents, children, grandchildren, siblings, etc.

(Multiple Choice)
4.9/5
(36)

Local variables are accessible throughout a Ruby program and have an unlimited scope. Every class in the program is allowed to access them.

(True/False)
4.9/5
(35)

The ____ keyword makes any specified properties or methods available throughout the program.

(Multiple Choice)
4.9/5
(36)

A variable with a ____ scope can be accessed only within the scope that it was created in.

(Multiple Choice)
4.7/5
(36)

____ is the ability to define objects and methods in different forms.

(Multiple Choice)
4.7/5
(29)
Showing 21 - 40 of 50
close modal

Filters

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