Deck 5: Object-Oriented Programming
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/50
العب
ملء الشاشة (f)
Deck 5: Object-Oriented Programming
1
In Smalltalk,a message is a request for a service.
True
2
Extending an object is one way that a software component can be modified for reuse.
True
3
Multiple inheritance in C++ ordinarily creates separate copies of each class on an inheritance path.
True
4
The history of object-oriented programming languages begins in the 1960s with the Simula project.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
5
C++ member functions that are given implementations in a class declaration are automatically assumed to be inline.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
6
C++ has built-in garbage collection.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
7
Referencing is the ability of a class to use the behavior and/or properties of classes above it in its hierarchy.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
8
Smalltalk provides a small set of binary messages that allow the programmer to write arithmetic and comparison expressions.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
9
In C++,template classes can be used to define generic collections.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
10
Smalltalk uses value semantics,such that variables refer to an object's value.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
11
All built-in classes in Smalltalk are subclasses of the Object class.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
12
Abstraction is the collection of similar operations from two different components into a new component.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
13
In Java,scalar data types are objects for reasons of efficiency.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
14
The unique structure of each application is referred to as an application framework.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
15
Public members are those accessible to client code as well as to derived classes.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
16
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
17
Messages in Smalltalk that expect arguments are called parameterized messages.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
18
In C++,instance variables and methods are both called descriptors.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
19
Abstract classes are often instantiated by the application program.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
20
When a constructor calls another constructor,it is called constructor teaming.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
21
In Smalltalk,____ messages expect no arguments.
A) single
B) unary
C) inquisitive
D) redirecting
A) single
B) unary
C) inquisitive
D) redirecting
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
22
C++ permits an object to be allocated either directly on the stack or as a pointer.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
23
____ is the use of the same names for messages requesting similar services from different classes.
A) Polymorphism
B) Overshadowing
C) Distinction
D) Generalization
A) Polymorphism
B) Overshadowing
C) Distinction
D) Generalization
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
24
Restricting access to internal details of software components is known as ____.
A) abstraction
B) encapsulation
C) polymorphism
D) redefinition
A) abstraction
B) encapsulation
C) polymorphism
D) redefinition
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
25
An object in Smalltalk that contains code is called a ____.
A) block
B) snippet
C) routine
D) module
A) block
B) snippet
C) routine
D) module
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
26
When a language's variables refer to objects,we say that the language uses ____ semantics.
A) value
B) object
C) reference
D) abstract
A) value
B) object
C) reference
D) abstract
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
27
In Smalltalk,the object that receives a message performs its service by invoking an appropriate ____.
A) method
B) function
C) procedure
D) sub-routine
A) method
B) function
C) procedure
D) sub-routine
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
28
In Smalltalk,messages that result in the change of state in the receiver are called ____.
A) modifiers
B) relays
C) mutators
D) adjustors
A) modifiers
B) relays
C) mutators
D) adjustors
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
29
In C++,objects can only be allocated on the heap.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
30
In Smalltalk,an object's ____ is the set of messages it recognizes.
A) command list
B) interface
C) operator list
D) listener set
A) command list
B) interface
C) operator list
D) listener set
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
31
Smalltalk and Java require the use of a garbage collector to return inaccessible storage to the heap.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
32
In Java,scalar data types are also called ____ types.
A) primitive
B) simple
C) quantitative
D) flexible
A) primitive
B) simple
C) quantitative
D) flexible
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
33
____ is an important need satisfied by object-oriented programming.
A) Rapid prototyping
B) Program component dependence
C) Abstract data typing
D) Independence of software components
A) Rapid prototyping
B) Program component dependence
C) Abstract data typing
D) Independence of software components
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
34
Applications normally create and manipulate instances of ____ classes in Smalltalk.
A) abstract
B) concrete
C) final
D) physical
A) abstract
B) concrete
C) final
D) physical
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
35
The first programming language to incorporate the object paradigm in a thorough and consistent way was ____.
A) Simula67
B) Smalltalk-80
C) Fortran-80
D) Algol60
A) Simula67
B) Smalltalk-80
C) Fortran-80
D) Algol60
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
36
When multiple inheritance is declared using the virtual keyword,separate copies of each class on an inheritance path are created.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
37
The Smalltalk block object is enclosed in ____.
A) [ ]
B) { }
C) ( )
D) < >
A) [ ]
B) { }
C) ( )
D) < >
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
38
A(n)____ message is sent to a class in Smalltalk.
A) object
B) class
C) control
D) constructor
A) object
B) class
C) control
D) constructor
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
39
Java and Smalltalk both allocate objects directly onto the stack for efficiency.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
40
____ binding is the binding of messages to methods based on the class of the receiver object.
A) Automatic
B) Static
C) Adaptive
D) Dynamic
A) Automatic
B) Static
C) Adaptive
D) Dynamic
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
41
C++ includes ____,which specify how to deallocate memory for objects.
A) deallocators
B) garbage collectors
C) destructors
D) erasers
A) deallocators
B) garbage collectors
C) destructors
D) erasers
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
42
____ can belong to more than one class.
A) Supermethods
B) Multimethods
C) Global methods
D) Variable methods
A) Supermethods
B) Multimethods
C) Global methods
D) Variable methods
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
43
A function is considered to be ____ if a compiler may replace the function call by the actual code for the function.
A) inline
B) substitutable
C) redirectable
D) virtual
A) inline
B) substitutable
C) redirectable
D) virtual
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
44
Member functions can be implemented outside the declaration of a class in C++ using the ____ operator.
A) scope altering
B) redirection
C) directive
D) scope resolution
A) scope altering
B) redirection
C) directive
D) scope resolution
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
45
In C++,a pure virtual declaration is a function declared with the keyword virtual and ____.
A) the keyword null
B) a pointer
C) parentheses
D) the keyword void
A) the keyword null
B) a pointer
C) parentheses
D) the keyword void
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
46
Java uses ____ to deallocate objects that are no longer needed.
A) garbage collection
B) destructors
C) scope resolution
D) memory functions
A) garbage collection
B) destructors
C) scope resolution
D) memory functions
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
47
To avoid repeated inheritance,one must ____.
A) declare the inheritance using the virtual keyword
B) declare the inheritance using the shared keyword
C) use a private inner class
D) use an inherited function
A) declare the inheritance using the virtual keyword
B) declare the inheritance using the shared keyword
C) use a private inner class
D) use an inherited function
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
48
In C++,____ members are accessible by derived classes.
A) private
B) restricted
C) protected
D) extensible
A) private
B) restricted
C) protected
D) extensible
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
49
In Java,the ____ constructor takes no parameters.
A) chained
B) overloaded
C) default
D) base
A) chained
B) overloaded
C) default
D) base
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
50
Java uses ____ to implement method lookup.
A) a jump table
B) an inheritance tree
C) restricted access
D) polymorphism
A) a jump table
B) an inheritance tree
C) restricted access
D) polymorphism
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck