Exam 5: Object-Oriented Programming

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

C++ permits an object to be allocated either directly on the stack or as a pointer.

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

True

In Java,scalar data types are also called ____ types.

Free
(Multiple Choice)
4.7/5
(34)
Correct Answer:
Verified

A

In C++,objects can only be allocated on the heap.

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

False

Applications normally create and manipulate instances of ____ classes in Smalltalk.

(Multiple Choice)
4.8/5
(37)

Smalltalk uses value semantics,such that variables refer to an object's value.

(True/False)
4.9/5
(30)

Smalltalk and Java require the use of a garbage collector to return inaccessible storage to the heap.

(True/False)
4.9/5
(34)

Restricting access to internal details of software components is known as ____.

(Multiple Choice)
4.8/5
(36)

Abstract classes are often instantiated by the application program.

(True/False)
4.8/5
(38)

Java uses ____ to implement method lookup.

(Multiple Choice)
4.9/5
(39)

Smalltalk provides a small set of binary messages that allow the programmer to write arithmetic and comparison expressions.

(True/False)
4.9/5
(40)

In C++,a pure virtual declaration is a function declared with the keyword virtual and ____.

(Multiple Choice)
4.9/5
(34)

In Smalltalk,the object that receives a message performs its service by invoking an appropriate ____.

(Multiple Choice)
4.9/5
(48)

Java and Smalltalk both allocate objects directly onto the stack for efficiency.

(True/False)
4.9/5
(39)

The first programming language to incorporate the object paradigm in a thorough and consistent way was ____.

(Multiple Choice)
4.8/5
(33)

Member functions can be implemented outside the declaration of a class in C++ using the ____ operator.

(Multiple Choice)
4.9/5
(41)

____ can belong to more than one class.

(Multiple Choice)
4.8/5
(36)

Abstraction is the collection of similar operations from two different components into a new component.

(True/False)
4.8/5
(34)

A(n)____ message is sent to a class in Smalltalk.

(Multiple Choice)
4.8/5
(44)

____ is an important need satisfied by object-oriented programming.

(Multiple Choice)
4.8/5
(41)

A function is considered to be ____ if a compiler may replace the function call by the actual code for the function.

(Multiple Choice)
4.8/5
(30)
Showing 1 - 20 of 50
close modal

Filters

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