Exam 2: The Concept of Object Orientation

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

UML models are not compatible with object-oriented languages.

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

False

Give an example of encapsulation in the real world.

Free
(Essay)
4.8/5
(39)
Correct Answer:
Verified

Driving a car needs a minimum amount of skill and attention, but you may serenely ignore how the engine works and how the wheels of the car respond to the signal of the steering wheel to turn left or right. In other words, encapsulation makes complexity manageable and safe. Without it, we would be overwhelmed with so many details that we cannot hope to control.

What is the difference between encapsulation and information hiding?

Free
(Essay)
4.8/5
(32)
Correct Answer:
Verified

The concept of information hiding is closely related to encapsulation. Together, encapsulation and information hiding turn an object into a black box. Information hiding not only conceals the complexity of the inner workings of an objects, but also protects them from careless, malicious, or unauthorized interference. Encapsulation packages data and processes into one unit and information hiding conceals them.

Features, properties, or characteristics of an object are represented by its ________.

(Multiple Choice)
4.9/5
(32)

The phrase "object as black box" refers to ________.

(Multiple Choice)
4.9/5
(47)

In procedural languages, the basic building blocks of a program are ________.

(Multiple Choice)
4.8/5
(38)

A Symphony is an instance of Classical Music that descends from Music which, in turn, is a child of Art..

(True/False)
4.8/5
(48)

Human body is an example of a(n) ________ relationship.

(Multiple Choice)
4.7/5
(50)

From UML perspective, ________ view reflects the logical view of the system.

(Multiple Choice)
4.8/5
(40)

An object cannot consist of more objects.

(True/False)
4.9/5
(41)

"Instance" is used instead of the term "object" when the purpose is to emphasize the relationship between the object and the class.

(True/False)
4.9/5
(35)

Virtual objects embody the same concepts as real objects, but are created from concepts instead of giving rise to them.

(True/False)
4.9/5
(34)

Explain the difference between multiple and simple inheritance and provide one example for each.

(Essay)
4.7/5
(44)

An object cannot be an instance of numerous classes.

(True/False)
4.7/5
(38)

Object-oriented analysis relies on the ________ of information systems.

(Multiple Choice)
4.8/5
(39)

How do business classes differ from utility classes? Provide one example for each.

(Essay)
4.9/5
(46)

What is the difference between aggregation and composition?

(Essay)
5.0/5
(41)

"The employee name is Richard Smith and he checks the inventory periodically." In this sentence, "Richard Smith" is the ________ of attribute "name"

(Multiple Choice)
4.8/5
(34)

Grady Booch introduced "use case" modeling concept.

(True/False)
4.9/5
(35)

Design develops the results of analysis into a(n) ________ model for building the system.

(Multiple Choice)
4.9/5
(39)
Showing 1 - 20 of 98
close modal

Filters

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