Deck 10: Introduction to Object-Oriented Design

ملء الشاشة (f)
exit full mode
سؤال
A data member that is private

A)cannot be referred to by methods that are public.
B)cannot be referred to from anywhere outside the class in which it is declared.
C)is usable only by a constructor method.
D)must be defined before data members that are public are defined.
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
A design approach that focuses on algorithms is commonly known as

A)process-oriented design.
B)object-oriented design.
C)procedure-oriented design.
D)event-driven design.
سؤال
Choose a class/object example from the list below.

A)program/data member
B)girl/Beverly
C)Ford/automobile
D)car/engine
سؤال
A return value

A)is required when parameters are specified for a method.
B)is passed back to the caller of a method.
C)is usually specified for a constructor method.
D)identifies the final method in a class definition.
سؤال
A class represents a template from which any number of objects can be created.
سؤال
Overloading can occur between two or more classes but cannot occur within a single class.
سؤال
Use of parameters is not supported for constructor methods.
سؤال
A protected data member

A)can only be accessed after overriding has occurred.
B)cannot be accessed from a subclass of the class that contains it.
C)cannot be accessed from classes other than the class that contains it.
D)can be accessed from within the class that contains it.
سؤال
A special kind of method that performs initialization is a(n)

A)definer.
B)override.
C)constructor.
D)character.
سؤال
What action is expressed by the statement GradeBook: GradeBookM101?

A)The object GradeBookM101 is assigned to the variable GradeBook.
B)The GradeBookM101 method of the object GradeBook is invoked.
C)An object GradeBookMl0l of the class GradeBook is created.
D)The GradeBook class is renamed GradeBookM101.
سؤال
Values passed when a method is called are known as

A)variables.
B)parameters.
C)data members.
D)arguments.
سؤال
What action is expressed by the statement GradeBookS204.ShowStudent?

A)The method ShowStudent is assigned to the class GradeBookS204.
B)The method ShowStudent of the object GradeBookS204 is destroyed.
C)The method ShowStudent of the class GradeBookS204 is instantiated.
D)The method ShowStudent of the object GradeBookS204 is invoked.
سؤال
Creating an object is called

A)instantiation.
B) overloading.
C) modeling.
D)abstraction.
سؤال
The acronym UML stands for

A)Unified Modeling Language.
B)United Memory Language.
C)United Modeling Language.
D)Unstructured Member Language.
سؤال
If a method is defined wisely,users of the method don't have to know how the method is implemented.
سؤال
Which of the terms below does not have a meaning similar to the other three?

A)process
B)model
C)class
D)abstraction
سؤال
In a class definition,operations are specified in

A)properties.
B)records.
C)attributes.
D)methods.
سؤال
The means of communicating with an object is a(n)

A)operation.
B)behavior.
C)message.
D)variable.
سؤال
Packaging data methods and members into a single well-defined programming unit is known as

A)overriding.
B)data hiding.
C)encapsulation.
D)classification.
سؤال
A class definition is an abstraction.
سؤال
Data hiding is a means of achieving overloading of a particular method.
سؤال
A public method is part of the internal interface of a program.
سؤال
A single method cannot be both public and private at the same time.
سؤال
A return value for a method is required.
سؤال
A constructor must have the same name as the class that contains it.
سؤال
A class is an instance of an object.
سؤال
A data type must be specified for a method name.
سؤال
A data type for a return value must be specified in the method heading.
سؤال
A driver program can cause instances of classes to be created during processing.
سؤال
A default constructor can perform memory allocation.
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/30
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 10: Introduction to Object-Oriented Design
1
A data member that is private

A)cannot be referred to by methods that are public.
B)cannot be referred to from anywhere outside the class in which it is declared.
C)is usable only by a constructor method.
D)must be defined before data members that are public are defined.
B
2
A design approach that focuses on algorithms is commonly known as

A)process-oriented design.
B)object-oriented design.
C)procedure-oriented design.
D)event-driven design.
C
3
Choose a class/object example from the list below.

A)program/data member
B)girl/Beverly
C)Ford/automobile
D)car/engine
B
4
A return value

A)is required when parameters are specified for a method.
B)is passed back to the caller of a method.
C)is usually specified for a constructor method.
D)identifies the final method in a class definition.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
5
A class represents a template from which any number of objects can be created.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
6
Overloading can occur between two or more classes but cannot occur within a single class.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
7
Use of parameters is not supported for constructor methods.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
8
A protected data member

A)can only be accessed after overriding has occurred.
B)cannot be accessed from a subclass of the class that contains it.
C)cannot be accessed from classes other than the class that contains it.
D)can be accessed from within the class that contains it.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
9
A special kind of method that performs initialization is a(n)

A)definer.
B)override.
C)constructor.
D)character.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
10
What action is expressed by the statement GradeBook: GradeBookM101?

A)The object GradeBookM101 is assigned to the variable GradeBook.
B)The GradeBookM101 method of the object GradeBook is invoked.
C)An object GradeBookMl0l of the class GradeBook is created.
D)The GradeBook class is renamed GradeBookM101.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
11
Values passed when a method is called are known as

A)variables.
B)parameters.
C)data members.
D)arguments.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
12
What action is expressed by the statement GradeBookS204.ShowStudent?

A)The method ShowStudent is assigned to the class GradeBookS204.
B)The method ShowStudent of the object GradeBookS204 is destroyed.
C)The method ShowStudent of the class GradeBookS204 is instantiated.
D)The method ShowStudent of the object GradeBookS204 is invoked.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
13
Creating an object is called

A)instantiation.
B) overloading.
C) modeling.
D)abstraction.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
14
The acronym UML stands for

A)Unified Modeling Language.
B)United Memory Language.
C)United Modeling Language.
D)Unstructured Member Language.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
15
If a method is defined wisely,users of the method don't have to know how the method is implemented.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
16
Which of the terms below does not have a meaning similar to the other three?

A)process
B)model
C)class
D)abstraction
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
17
In a class definition,operations are specified in

A)properties.
B)records.
C)attributes.
D)methods.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
18
The means of communicating with an object is a(n)

A)operation.
B)behavior.
C)message.
D)variable.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
19
Packaging data methods and members into a single well-defined programming unit is known as

A)overriding.
B)data hiding.
C)encapsulation.
D)classification.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
20
A class definition is an abstraction.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
21
Data hiding is a means of achieving overloading of a particular method.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
22
A public method is part of the internal interface of a program.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
23
A single method cannot be both public and private at the same time.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
24
A return value for a method is required.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
25
A constructor must have the same name as the class that contains it.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
26
A class is an instance of an object.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
27
A data type must be specified for a method name.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
28
A data type for a return value must be specified in the method heading.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
29
A driver program can cause instances of classes to be created during processing.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
30
A default constructor can perform memory allocation.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.