Deck 8: More Object Concepts

ملء الشاشة (f)
exit full mode
سؤال
In some programming languages, such as C#, Visual Basic, and Java, every class you create is a child of one ultimate base class, often called the ____ class.

A)Initial
C)Core
B)Object
D)Basic
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
A child class contains all the data fields and ____ of its parent.

A)parameters
C)methods
B)classes
D)procedures
سؤال
A constructor may require ____.

A)parameters
C)objects
B)methods
D)inheritance
سؤال
A destructor contains the actions you require when an instance of a class is destroyed.
سؤال
A destructor cannot execute unless it is explicitly called from a program.
سؤال
When you instantiate an object that is a member of a class, you are actually calling a constructor method.
سؤال
Using inheritance saves time since you do not need to recreate a class's methods and data fields.
سؤال
A(n) ____ cannot be overloaded.

A)instance method
C)constructor
B)method
D)destructor
سؤال
____ is the process of creating a new, derived class from a base class.

A)Accessibility
C)Inheritance
B)Encapsulation
D)Polymorphism
سؤال
One way to give a child class access to a private data field in a parent class is to make the data field public in the parent class.
سؤال
When declaring a destructor, which character is used?

A)pound sign
C)tilde
B)asterisk
D)exclamation point
سؤال
A(n) ____ is a method that establishes an object, reserving enough memory space for it and providing its name.

A)destructor
C)inheritor
B)constructor
D)originator
سؤال
Derived classes usually have fields and methods that are more ____ than those of their parent classes.

A)stable
C)basic
B)generalized
D)specialized
سؤال
A superclass member that is not hidden is invisible in the derived class.
سؤال
A class's ____constructor is automatically supplied.

A)initial
C)default
B)object
D)destructor
سؤال
If a class's only constructor requires an argument, you must provide an argument for every object of the class you create.
سؤال
An instance method or constructor may be overloaded by providing the same name and ____ argument list.

A)a different
C)a larger
B)the same
D)a smaller
سؤال
Methods that are inherited from a parent class can be overridden.
سؤال
A superclass is the same thing as a derived class.
سؤال
All default constructors are automatically supplied.
سؤال
Code that has been used and tested is said to be ____.

A)responsible
C)inherited
B)reliable
D)encapsulated
سؤال
A(n) ____ constructor is one that requires no arguments.

A)automatic
C)original
B)implicit
D)default
سؤال
The ____________________ of a subclass consist of the entire list of parent classes from which a child class is derived.
سؤال
When a superclass requires parameters upon instantiation, even if you have no other reason to create a(n) ____, you must write one so it can call its superclass's constructor.

A)overridden method
C)subclass constructor
B)public subclass
D)subclass destructor
سؤال
When a data field is private, it is said to be ____ to any class other than the one in which it is defined.

A)uninheritable
C)unreachable
B)implicit
D)inaccessible
سؤال
A subclass constructor can pass ____ or parameters to its parent constructor.

A)constants
C)objects
B)methods
D)classes
سؤال
Every derived class "____" specific instance of the base class and the derived class.

A)instantiates a
C)was a
B)has a
D)is a
سؤال
An ____ child class method has the same name and different parameter list as the parent class method.

A)overridden
C)overbearing
B)overloaded
D)inherited
سؤال
When a superclass contains only constructors that require arguments, you must include at least ____ constructor(s) for each subclass you create.

A)zero
C)two
B)one
D)three
سؤال
You can write as many constructors for a class as you want, as long as they all have different ____ lists.

A)object
C)method
B)data field
D)parameter
سؤال
What is accomplished when you assign a derived class object to an object of any of its superclass types?

A)implicit conversion
C)instantiation
B)explicit conversion
D)inheritance
سؤال
When you create any subclass object, the ____ constructor must execute first, and then the ____ constructor executes.

A)subclass, superclass
C)default, specialized
B)superclass, subclass
D)default, superclass
سؤال
A ____________________ is declared with the class name preceded by a tilde (~), and you supply no arguments.
سؤال
In a class diagram, what symbol is used for the protected access modifier?

A)pound sign
C)dollar sign
B)asterisk
D)exclamation point
سؤال
An ____ child class method contains the same name and parameters as the parent class method.

A)overridden
C)overbearing
B)overloaded
D)inherited
سؤال
What is the name of the access modifier that gives child classes access to the parent class's data fields?

A)private
C)public
B)protected
D)semi-private
سؤال
A(n) ____________________ is used as the basis for inheritance.
سؤال
A(n) ____________________ constructor is a constructor with no parameters.
سؤال
The type of polymorphism that applies specifically to objects of the same parent class is sometimes called ____ polymorphism.

A)subtype
C)dual
B)subclass
D)inherited
سؤال
The ____________________ establishes an object by reserving enough memory space for it and possibly initializing member variables.
سؤال
A(n) ____________________ conversion is made whenever you assign a derived class object to an object of any types that are ancestors.
سؤال
A(n) ___________________ is another name for a child class and derived class.
سؤال
If the class Poodle inherits from the class Dog, then Dog is a(n) ____________________ of Poodle.
سؤال
When you override a method in a child class, you create a method with the same name and ____________________ as the parent's version.
سؤال
A(n) ____________________ class is one from which you can inherit, but not create, any object.
سؤال
Classes that depend on field names from parent classes are said to be ____________________ because they are prone to errors.
سؤال
The capability to inherit from more than one class is called ____________________.
سؤال
Professional programmers constantly create new class ____________________ for use with OOP languages.
سؤال
Reliable code has been thoroughly ____________________ and can probably be used in a variety of situations.
سؤال
A method in a parent class must be ____________________ in order to be used by the child class.
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/50
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 8: More Object Concepts
1
In some programming languages, such as C#, Visual Basic, and Java, every class you create is a child of one ultimate base class, often called the ____ class.

A)Initial
C)Core
B)Object
D)Basic
B
2
A child class contains all the data fields and ____ of its parent.

A)parameters
C)methods
B)classes
D)procedures
C
3
A constructor may require ____.

A)parameters
C)objects
B)methods
D)inheritance
A
4
A destructor contains the actions you require when an instance of a class is destroyed.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
5
A destructor cannot execute unless it is explicitly called from a program.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
6
When you instantiate an object that is a member of a class, you are actually calling a constructor method.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
7
Using inheritance saves time since you do not need to recreate a class's methods and data fields.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
8
A(n) ____ cannot be overloaded.

A)instance method
C)constructor
B)method
D)destructor
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
9
____ is the process of creating a new, derived class from a base class.

A)Accessibility
C)Inheritance
B)Encapsulation
D)Polymorphism
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
10
One way to give a child class access to a private data field in a parent class is to make the data field public in the parent class.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
11
When declaring a destructor, which character is used?

A)pound sign
C)tilde
B)asterisk
D)exclamation point
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
12
A(n) ____ is a method that establishes an object, reserving enough memory space for it and providing its name.

A)destructor
C)inheritor
B)constructor
D)originator
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
13
Derived classes usually have fields and methods that are more ____ than those of their parent classes.

A)stable
C)basic
B)generalized
D)specialized
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
14
A superclass member that is not hidden is invisible in the derived class.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
15
A class's ____constructor is automatically supplied.

A)initial
C)default
B)object
D)destructor
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
16
If a class's only constructor requires an argument, you must provide an argument for every object of the class you create.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
17
An instance method or constructor may be overloaded by providing the same name and ____ argument list.

A)a different
C)a larger
B)the same
D)a smaller
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
18
Methods that are inherited from a parent class can be overridden.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
19
A superclass is the same thing as a derived class.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
20
All default constructors are automatically supplied.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
21
Code that has been used and tested is said to be ____.

A)responsible
C)inherited
B)reliable
D)encapsulated
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
22
A(n) ____ constructor is one that requires no arguments.

A)automatic
C)original
B)implicit
D)default
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
23
The ____________________ of a subclass consist of the entire list of parent classes from which a child class is derived.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
24
When a superclass requires parameters upon instantiation, even if you have no other reason to create a(n) ____, you must write one so it can call its superclass's constructor.

A)overridden method
C)subclass constructor
B)public subclass
D)subclass destructor
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
25
When a data field is private, it is said to be ____ to any class other than the one in which it is defined.

A)uninheritable
C)unreachable
B)implicit
D)inaccessible
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
26
A subclass constructor can pass ____ or parameters to its parent constructor.

A)constants
C)objects
B)methods
D)classes
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
27
Every derived class "____" specific instance of the base class and the derived class.

A)instantiates a
C)was a
B)has a
D)is a
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
28
An ____ child class method has the same name and different parameter list as the parent class method.

A)overridden
C)overbearing
B)overloaded
D)inherited
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
29
When a superclass contains only constructors that require arguments, you must include at least ____ constructor(s) for each subclass you create.

A)zero
C)two
B)one
D)three
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
30
You can write as many constructors for a class as you want, as long as they all have different ____ lists.

A)object
C)method
B)data field
D)parameter
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
31
What is accomplished when you assign a derived class object to an object of any of its superclass types?

A)implicit conversion
C)instantiation
B)explicit conversion
D)inheritance
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
32
When you create any subclass object, the ____ constructor must execute first, and then the ____ constructor executes.

A)subclass, superclass
C)default, specialized
B)superclass, subclass
D)default, superclass
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
33
A ____________________ is declared with the class name preceded by a tilde (~), and you supply no arguments.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
34
In a class diagram, what symbol is used for the protected access modifier?

A)pound sign
C)dollar sign
B)asterisk
D)exclamation point
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
35
An ____ child class method contains the same name and parameters as the parent class method.

A)overridden
C)overbearing
B)overloaded
D)inherited
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
36
What is the name of the access modifier that gives child classes access to the parent class's data fields?

A)private
C)public
B)protected
D)semi-private
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
37
A(n) ____________________ is used as the basis for inheritance.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
38
A(n) ____________________ constructor is a constructor with no parameters.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
39
The type of polymorphism that applies specifically to objects of the same parent class is sometimes called ____ polymorphism.

A)subtype
C)dual
B)subclass
D)inherited
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
40
The ____________________ establishes an object by reserving enough memory space for it and possibly initializing member variables.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
41
A(n) ____________________ conversion is made whenever you assign a derived class object to an object of any types that are ancestors.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
42
A(n) ___________________ is another name for a child class and derived class.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
43
If the class Poodle inherits from the class Dog, then Dog is a(n) ____________________ of Poodle.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
44
When you override a method in a child class, you create a method with the same name and ____________________ as the parent's version.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
45
A(n) ____________________ class is one from which you can inherit, but not create, any object.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
46
Classes that depend on field names from parent classes are said to be ____________________ because they are prone to errors.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
47
The capability to inherit from more than one class is called ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
48
Professional programmers constantly create new class ____________________ for use with OOP languages.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
49
Reliable code has been thoroughly ____________________ and can probably be used in a variety of situations.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
50
A method in a parent class must be ____________________ in order to be used by the child class.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.