4102 Chapter 5

¡Supera tus tareas y exámenes ahora con Quizwiz!

45 In C++, instance variables and methods are both called descriptors. Select one: True False

The correct answer is 'False'.

46 Abstract classes are often instantiated by the application program. Select one: True False

The correct answer is 'False'.

50 In C++, objects can only be allocated on the heap. Select one: True False

The correct answer is 'False'.

In Java, scalar data types are objects for reasons of efficiency. Select one: True False

The correct answer is 'False'.

Smalltalk uses value semantics, such that variables refer to an object's value. Select one: True False

The correct answer is 'False'.

When a constructor calls another constructor, it is called constructor teaming. Select one: True False

The correct answer is 'False'.

When multiple inheritance is declared using the virtual keyword, separate copies of each class on an inheritance path are created. Select one: True False

The correct answer is 'False'.

In Smalltalk, a message is a request for a service. Select one: True False

The correct answer is 'True'.

26 The unique structure of each application is referred to as an application framework. Select one: True False

The correct answer is 'False'.

30 Messages in Smalltalk that expect arguments are called parameterized messages. Select one: True False

The correct answer is 'False'.

36 C++ has built-in garbage collection. Select one: True False

The correct answer is 'False'.

Java and Smalltalk both allocate objects directly onto the stack for efficiency. Select one: True False

The correct answer is 'False'.

Referencing is the ability of a class to use the behavior and/or properties of classes above it in its hierarchy. Select one: True False

The correct answer is 'False'.

All built-in classes in Smalltalk are subclasses of the Object class. Select one: True False

The correct answer is 'True'.

C++ member functions that are given implementations in a class declaration are automatically assumed to be inline. Select one: True False

The correct answer is 'True'.

In C++, template classes can be used to define generic collections. Select one: True False

The correct answer is 'True'.

Object-oriented programs consist of a set of objects that execute by acting and reacting to each other, much the same way that a real-world process proceeds. Select one: True False

The correct answer is 'True'.

The history of object-oriented programming languages begins in the 1960s with the Simula project. Select one: True False

The correct answer is 'True'.

29 ____ binding is the binding of messages to methods based on the class of the receiver object. Select one: a. Automatic b. Adaptive c. Static d. Dynamic

The correct answer is: Dynamic

____ is an important need satisfied by object-oriented programming. Select one: a. Abstract data typing b. Rapid prototyping c. Program component dependence d. Independence of software components

The correct answer is: Independence of software components

____ can belong to more than one class. Select one: a. Multimethods b. Supermethods c. Global methods d. Variable methods

The correct answer is: Multimethods

47 ____ is the use of the same names for messages requesting similar services from different classes. Select one: a. Overshadowing b. Polymorphism c. Generalization d. Distinction

The correct answer is: Polymorphism

48 The first programming language to incorporate the object paradigm in a thorough and consistent way was ____. Select one: a. Simula67 b. Fortran-80 c. Algol60 d. Smalltalk-80

The correct answer is: Smalltalk-80

The Smalltalk block object is enclosed in ____. Select one: a. [ ] b. c. < > d. { }

The correct answer is: [ ]

25 Java uses ____ to implement method lookup. Select one: a. a jump table b. polymorphism c. an inheritance tree d. restricted access

The correct answer is: a jump table

An object in Smalltalk that contains code is called a ____. Select one: a. snippet b. routine c. module d. block

The correct answer is: block

A ____ message is sent to a class in Smalltalk. Select one: a. constructor b. control c. object d. class

The correct answer is: class

35 Applications normally create and manipulate instances of ____ classes in Smalltalk. Select one: a. abstract b. physical c. concrete d. final

The correct answer is: concrete

23 In Java, the ____ constructor takes no parameters. Select one: a. overloaded b. default c. chained d. base

The correct answer is: default

39 C++ includes ____, which specify how to deallocate memory for objects. Select one: a. garbage collectors b. deallocators c. erasers d. destructors

The correct answer is: destructors

42 Restricting access to internal details of software components is known as ____. Select one: a. polymorphism b. abstraction c. encapsulation d. redefinition

The correct answer is: encapsulation

Java uses ____ to deallocate objects that are no longer needed. Select one: a. memory functions b. destructors c. garbage collection d. scope resolution

The correct answer is: garbage collection

A function is considered to be ____ if a compiler may replace the function call by the actual code for the function. Select one: a. redirectable b. inline c. substitutable d. virtual

The correct answer is: inline

41 In Smalltalk, an object's ____ is the set of messages it recognizes. Select one: a. listener set b. interface c. operator list d. command list

The correct answer is: interface

In Smalltalk, the object that receives a message performs its service by invoking an appropriate ____. Select one: a. sub-routine b. function c. method d. procedure

The correct answer is: method

51 In Smalltalk, messages that result in the change of state in the receiver are called ____. Select one: a. modifiers b. adjustors c. mutators d. relays

The correct answer is: mutators

In Java, scalar data types are also called ____ types. Select one: a. quantitative b. simple c. primitive d. flexible

The correct answer is: primitive

49 In C++, ____ members are accessible by derived classes. Select one: a. protected b. extensible c. private d. restricted

The correct answer is: protected

When a language's variables refer to objects, we say that the language uses ____ semantics. Select one: a. value b. abstract c. reference d. object

The correct answer is: reference

Member functions can be implemented outside the declaration of a class in C++ using the ____ operator. Select one: a. redirection b. scope resolution c. scope altering d. directive

The correct answer is: scope resolution

28 In C++, a pure virtual declaration is a function declared with the keyword virtual and ____. Select one: a. parentheses b. the keyword null c. the keyword void d. a pointer

The correct answer is: the keyword void

40 In Smalltalk, ____ messages expect no arguments. Select one: a. inquisitive b. redirecting c. unary d. single

The correct answer is: unary

27 C++ permits an object to be allocated either directly on the stack or as a pointer. Select one: True False

The correct answer is 'True'.

31 Multiple inheritance in C++ ordinarily creates separate copies of each class on an inheritance path. Select one: True False

The correct answer is 'True'.

32 Extending an object is one way that a software component can be modified for reuse. Select one: True False

The correct answer is 'True'.

37 Smalltalk provides a small set of binary messages that allow the programmer to write arithmetic and comparison expressions. Select one: True False

The correct answer is 'True'.

38 Abstraction is the collection of similar operations from two different components into a new component. Select one: True False

The correct answer is 'True'.

43 Smalltalk and Java require the use of a garbage collector to return inaccessible storage to the heap. Select one: True False

The correct answer is 'True'.

44 Public members are those accessible to client code as well as to derived classes. Select one: True False

The correct answer is 'True'.

24 To avoid repeated inheritance, one must ____. Select one: a. declare the inheritance using the virtual keyword b. use a private inner class c. use an inherited function d. declare the inheritance using the shared keyword

declare the inheritance using the virtual keyword


Conjuntos de estudio relacionados

Psyc 352 Unit 10 - Theory of Mind

View Set

Lesson 2 Chemistry Basics Continued Quiz

View Set

Part 4.1 Strategic Entrepreneurial Growth

View Set

SmartBook Assignment Chapter 17: Acids, Bases, and Salts

View Set

ATI Learning Systems - Mental Health 2

View Set