Exam 5: Object-Oriented Programming
Exam 1: Introduction50 Questions
Exam 2: Language Design Criteria50 Questions
Exam 3: Functional Programming50 Questions
Exam 4: Logic Programming50 Questions
Exam 5: Object-Oriented Programming50 Questions
Exam 6: Syntax50 Questions
Exam 7: Basic Semantics50 Questions
Exam 8: Data Types50 Questions
Exam 9: Control I - Expressions and Statements50 Questions
Exam 10: Control II - Procedures and Environments50 Questions
Exam 11: Abstract Data Types and Modules50 Questions
Exam 12: Formal Semantics50 Questions
Exam 13: Parallel Programming51 Questions
Select questions type
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:
True
In Java,scalar data types are also called ____ types.
Free
(Multiple Choice)
4.7/5
(34)
Correct Answer:
A
In C++,objects can only be allocated on the heap.
Free
(True/False)
4.9/5
(42)
Correct Answer:
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)
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)
Abstraction is the collection of similar operations from two different components into a new component.
(True/False)
4.8/5
(34)
____ 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
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)