Deck 10: Object Oriented Programming
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
Match between columns
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/51
العب
ملء الشاشة (f)
Deck 10: Object Oriented Programming
1
____ are the characteristics that define an object.
A) Instances
B) Attributes
C) Behaviors
D) Methods
A) Instances
B) Attributes
C) Behaviors
D) Methods
B
2
Object-oriented programmers sometimes say an object is one ____ of a class.
A) enumeration
B) instantiation
C) member
D) reference
A) enumeration
B) instantiation
C) member
D) reference
B
3
Instance variables are often called ____ to help distinguish them from other variables you might use.
A) rows
B) records
C) columns
D) fields
A) rows
B) records
C) columns
D) fields
D
4
Methods in a class are static instance methods by default.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 51 في هذه المجموعة.
فتح الحزمة
k this deck
5
The concept of a class is useful because of its ____.
A) reusability
B) mapping to reality
C) abstract nature
D) portability
A) reusability
B) mapping to reality
C) abstract nature
D) portability
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 51 في هذه المجموعة.
فتح الحزمة
k this deck
6
The data components of a class that belong to every instantiated object are the class's ____.
A) numeric variables
B) string variables
C) instance variables
D) data variables
A) numeric variables
B) string variables
C) instance variables
D) data variables
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 51 في هذه المجموعة.
فتح الحزمة
k this deck
7
The accessor method is another name for the set method.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 51 في هذه المجموعة.
فتح الحزمة
k this deck
8
Declaring a class does not create actual objects.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 51 في هذه المجموعة.
فتح الحزمة
k this deck
9
____ is a programming model that focuses on an application's components and data and the methods you need to manipulate them.
A) Classical programming
B) Functional programming
C) Procedural programming
D) Object-oriented programming
A) Classical programming
B) Functional programming
C) Procedural programming
D) Object-oriented programming
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 51 في هذه المجموعة.
فتح الحزمة
k this deck
10
Object-oriented programmers usually specify that their data fields will have private access.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 51 في هذه المجموعة.
فتح الحزمة
k this deck
11
Class diagrams are a type of Unified Modeling Language (UML) diagram.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 51 في هذه المجموعة.
فتح الحزمة
k this deck
12
Object-oriented programmers also use the term ____ when describing inheritance.
A) has-a
B) from-a
C) is-a
D) contains
A) has-a
B) from-a
C) is-a
D) contains
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 51 في هذه المجموعة.
فتح الحزمة
k this deck
13
A(n) ____ is a program or class that instantiates objects of another prewritten class.
A) instantiation
B) method
C) class client
D) class definition
A) instantiation
B) method
C) class client
D) class definition
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 51 في هذه المجموعة.
فتح الحزمة
k this deck
14
When you think in an object-oriented manner, every object is a member of a ____.
A) class
B) struct
C) method
D) collection
A) class
B) struct
C) method
D) collection
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 51 في هذه المجموعة.
فتح الحزمة
k this deck
15
No object is necessary with a static method.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 51 في هذه المجموعة.
فتح الحزمة
k this deck
16
Within any object-oriented program, you continuously make requests to an object's methods, often including arguments as part of those requests.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 51 في هذه المجموعة.
فتح الحزمة
k this deck
17
All methods require a this reference.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 51 في هذه المجموعة.
فتح الحزمة
k this deck
18
Methods in object-oriented programs use sequence, selection, and looping structures and make use of arrays.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 51 في هذه المجموعة.
فتح الحزمة
k this deck
19
In addition to their attributes, class objects have methods associated with them, and every object that is an instance of a class possesses different methods.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 51 في هذه المجموعة.
فتح الحزمة
k this deck
20
Objects both in the real world and in object-oriented programming contain ____ and methods.
A) behaviors
B) attributes
C) help
D) primitive data types
A) behaviors
B) attributes
C) help
D) primitive data types
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 51 في هذه المجموعة.
فتح الحزمة
k this deck
21
____________________ is the process of combining all of an object's attributes and methods into a single package.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 51 في هذه المجموعة.
فتح الحزمة
k this deck
22
When methods have ____, other programs and methods may use the methods to get access to the private data.
A) private access
B) public access
C) complete access
D) all access
A) private access
B) public access
C) complete access
D) all access
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 51 في هذه المجموعة.
فتح الحزمة
k this deck
23
When you think in an object-oriented manner, everything is a(n) ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 51 في هذه المجموعة.
فتح الحزمة
k this deck
24
Methods that set values are called ____ methods.
A) modifier
B) mutator
C) creator
D) access
A) modifier
B) mutator
C) creator
D) access
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 51 في هذه المجموعة.
فتح الحزمة
k this deck
25
A ____ is a set of program statements that lists the characteristics of each object and the methods each object can use.
A) class interface
B) class definition
C) class reference
D) class model
A) class interface
B) class definition
C) class reference
D) class model
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 51 في هذه المجموعة.
فتح الحزمة
k this deck
26
In most programming languages, you use the word ____ when you want to declare a static class member.
A) private
B) friend
C) public
D) static
A) private
B) friend
C) public
D) static
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 51 في هذه المجموعة.
فتح الحزمة
k this deck
27
____ methods are those for which no object needs to exist.
A) Dynamic
B) Public
C) Static
D) Private
A) Dynamic
B) Public
C) Static
D) Private
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 51 في هذه المجموعة.
فتح الحزمة
k this deck
28
Another important concept in object-oriented programming is ________, which is the process of acquiring the traits of one's predecessors.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 51 في هذه المجموعة.
فتح الحزمة
k this deck
29
A ____ method is also known as a help method.
A) work
B) private
C) public
D) set
A) work
B) private
C) public
D) set
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 51 في هذه المجموعة.
فتح الحزمة
k this deck
30
The term ____ implies that the type's data can be accessed only through methods.
A) abstract type library
B) advanced data type
C) abstract definition type
D) abstract data type
A) abstract type library
B) advanced data type
C) abstract definition type
D) abstract data type
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 51 في هذه المجموعة.
فتح الحزمة
k this deck
31
A(n) ____ consists of a rectangle divided into three sections.
A) class tree
B) dependency diagram
C) class diagram
D) entity-relationship diagram
A) class tree
B) dependency diagram
C) class diagram
D) entity-relationship diagram
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 51 في هذه المجموعة.
فتح الحزمة
k this deck
32
A(n) ____ is the adjective defining the type of access (public or private) that outside classes will have to the attribute or method.
A) control specifier
B) control modifier
C) access specifier
D) access controller
A) control specifier
B) control modifier
C) access specifier
D) access controller
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 51 في هذه المجموعة.
فتح الحزمة
k this deck
33
The term ____ is applied to situations in which you define multiple methods with a single name.
A) overloading
B) bonding
C) renaming
D) inferring
A) overloading
B) bonding
C) renaming
D) inferring
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 51 في هذه المجموعة.
فتح الحزمة
k this deck
34
____ methods are methods that exist to be used with an object created from a class.
A) Nonstatic
B) Static
C) Hidden
D) Controlled
A) Nonstatic
B) Static
C) Hidden
D) Controlled
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 51 في هذه المجموعة.
فتح الحزمة
k this deck
35
The purpose of a(n) ____ is to return a value to the world outside the class.
A) get method
B) set method
C) pull method
D) access method
A) get method
B) set method
C) pull method
D) access method
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 51 في هذه المجموعة.
فتح الحزمة
k this deck
36
In older object-oriented programming languages, simple numbers and characters are said to be ____ data types.
A) primitive
B) simple
C) complex
D) higher-order
A) primitive
B) simple
C) complex
D) higher-order
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 51 في هذه المجموعة.
فتح الحزمة
k this deck
37
A(n) ____ is a programmer-defined type, such as a class.
A) inheritance
B) numeric data type
C) primitive data type
D) abstract data type
A) inheritance
B) numeric data type
C) primitive data type
D) abstract data type
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 51 في هذه المجموعة.
فتح الحزمة
k this deck
38
A(n) ____________________ is one instance of a class.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 51 في هذه المجموعة.
فتح الحزمة
k this deck
39
When you program in object-oriented languages, you frequently create ____________________ from which objects will be instantiated.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 51 في هذه المجموعة.
فتح الحزمة
k this deck
40
The purpose of ____ is to set or change the values of data fields within the class.
A) get methods
B) put methods
C) make methods
D) set methods
A) get methods
B) put methods
C) make methods
D) set methods
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 51 في هذه المجموعة.
فتح الحزمة
k this deck
41
List the two identifiers within a method that always mean exactly the same thing when you write an instance method in a class.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 51 في هذه المجموعة.
فتح الحزمة
k this deck
42
Match between columns
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 51 في هذه المجموعة.
فتح الحزمة
k this deck
43
Discuss why the reusability of a class makes it useful.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 51 في هذه المجموعة.
فتح الحزمة
k this deck
44
List five important features of object-oriented languages.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 51 في هذه المجموعة.
فتح الحزمة
k this deck
45
Discuss why it is helpful to think of items as instances of a class.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 51 في هذه المجموعة.
فتح الحزمة
k this deck
46
Discuss nonstatic methods.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 51 في هذه المجموعة.
فتح الحزمة
k this deck
47
Discuss static methods.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 51 في هذه المجموعة.
فتح الحزمة
k this deck
48
Explain what private access means in object-oriented programming.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 51 في هذه المجموعة.
فتح الحزمة
k this deck
49
Explain encapsulation and information hiding.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 51 في هذه المجموعة.
فتح الحزمة
k this deck
50
List the three parts of a class definition.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 51 في هذه المجموعة.
فتح الحزمة
k this deck
51
Describe what class diagrams list by convention.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 51 في هذه المجموعة.
فتح الحزمة
k this deck