Deck 15: Creating Classes and Objects
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
Match between columns
سؤال
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/42
العب
ملء الشاشة (f)
Deck 15: Creating Classes and Objects
1
A(n) ____ encapsulates all of the attributes and behaviors of the object it instantiates.
A) argument
B) procedure
C) parameter
D) class
A) argument
B) procedure
C) parameter
D) class
D
2
The only type of method which can be overloaded is a constructor.
False
3
In its simplest form, the Class statement can be used in place of the Structure statement.
True
4
The ____ of a class are represented by methods, which can be Sub or Function procedures.
A) behaviors
B) attributes
C) objects
D) parameters
A) behaviors
B) attributes
C) objects
D) parameters
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
5
Each object is an instance of the ____ from which it is created.
A) parameter
B) class
C) procedure
D) variable
A) parameter
B) class
C) procedure
D) variable
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
6
In OOP, the term ____ means to enclose in a class.
A) abstract
B) encapsulate
C) inherit
D) incorporate
A) abstract
B) encapsulate
C) inherit
D) incorporate
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
7
A(n) ____ can represent something found in real life, such as a wristwatch or a car.
A) object
B) property
C) method
D) argument
A) object
B) property
C) method
D) argument
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
8
The convention is to use ____ case for the names of the Public variables in a class.
A) Camel
B) Pascal
C) AllCaps
D) SmallCaps
A) Camel
B) Pascal
C) AllCaps
D) SmallCaps
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
9
By convention, the names of the Private variables in a class start with a(n) ____.
A) slash ( / )
B) underscore ( _ )
C) pound sign ( # )
D) ampersand ( & )
A) slash ( / )
B) underscore ( _ )
C) pound sign ( # )
D) ampersand ( & )
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
10
____ are the operations (actions) that the object is capable of performing.
A) Objects
B) Events
C) Methods
D) Arguments
A) Objects
B) Events
C) Methods
D) Arguments
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
11
____ are the actions to which an object can respond.
A) Objects
B) Events
C) Methods
D) Arguments
A) Objects
B) Events
C) Methods
D) Arguments
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
12
When a variable in a class is declared using the ____ keyword, it can be accessed by any application that contains an instance of the class.
A) Module
B) Private
C) Dim
D) Public
A) Module
B) Private
C) Dim
D) Public
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
13
The Get statement begins with the keyword Get and ends with the keywords Return Get .
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
14
The Class statement ends with the ____ clause.
A) E nd Class
B) Public Class
C) Exit Class
D) Dim Class
A) E nd Class
B) Public Class
C) Exit Class
D) Dim Class
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
15
The Class statement begins with ____.
A) the keywords Start Class , followed by the name of the class
B) the name of the class, followed by the keywords Start Class
C) the keywords Public Class , followed by the name of the class
D) the name of the class, followed by the keywords Public Class
A) the keywords Start Class , followed by the name of the class
B) the name of the class, followed by the keywords Start Class
C) the keywords Public Class , followed by the name of the class
D) the name of the class, followed by the keywords Public Class
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
16
To instantiate a class-level object variable, you use the ____ keyword.
A) Public
B) Dim
C) Private
D) Property
A) Public
B) Dim
C) Private
D) Property
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
17
You use the ____ keyword to instantiate a procedure-level object variable.
A) Public
B) Dim
C) Private
D) Property
A) Public
B) Dim
C) Private
D) Property
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
18
In Visual Basic, you can define your own classes and then create instances from those classes.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
19
The Private variables of a class are visible to applications that contain an instance of the class.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
20
The ____ of a class are most often represented by Private variables and Public properties.
A) objects
B) methods
C) behaviors
D) attributes
A) objects
B) methods
C) behaviors
D) attributes
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
21
For the class Student , how you would create the auto-implemented string property of Firstname ?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
22
How can you make the Private members of a class available to an application?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
23
Constructors that contain parameters are called ____________________ constructors.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
24
When an application needs to assign data to or retrieve data from a Private variable in a class, it must use a(n) ____ property to do so.
A) Private
B) Public
C) class
D) object
A) Private
B) Public
C) class
D) object
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
25
A class contains all of the attributes and ____________________ of the object it instantiates.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
26
____ enable you to specify the property of a class in one line of code.
A) System properties
B) Auto-implemented properties
C) Restricted properties
D) Class-delivered properties
A) System properties
B) Auto-implemented properties
C) Restricted properties
D) Class-delivered properties
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
27
What are the steps to add a class file to the current project?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
28
After you define a class, you can then use the class to instantiate one or more ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
29
You can write a(n) ____ as either a Function procedure or a Sub procedure.
A) attribute
B) method
C) parameter
D) Property procedure
A) attribute
B) method
C) parameter
D) Property procedure
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
30
An application cannot directly refer to the ____________________ variables in a class.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
31
What is an advantage of object-oriented programming?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
32
A constructor that has no parameters is called the ____________________ constructor.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
33
Describe what the Get block and Set block does.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
34
What are the rules for naming methods?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
35
What is a constructor? What is the purpose of a constructor?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
36
You should use ____ to name a property.
A) nouns and verbs
B) verbs
C) adverbs and adjectives
D) nouns and adjectives
A) nouns and verbs
B) verbs
C) adverbs and adjectives
D) nouns and adjectives
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
37
What is a method's signature?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
38
A constructor begins with the keywords ____.
A) Public Sub New
B) Public Constructor
C) Private Constructor
D) Private New
A) Public Sub New
B) Public Constructor
C) Private Constructor
D) Private New
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
39
Although you can define a class that contains only attributes represented by Public variables, it is rarely done. Describe the disadvantage of using Public variables in a class.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
40
The Set statement begins with the keyword Set and ends with the keywords ____.
A) End Set
B) Return Set
C) Complete Set
D) Exit Set
A) End Set
B) Return Set
C) Complete Set
D) Exit Set
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
41
Match between columns
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
42
What is meant by overloaded methods and when is overloading of methods useful?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck