Deck 26: I Love This Class Creating a Class

ملء الشاشة (f)
exit full mode
سؤال
When an application instantiates an object, only the Public members of the object's class are made available to the application.
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
____ are the actions to which an object can respond.

A) Actions
C) Events
B) Behaviors
D) Instances
سؤال
A class contains-or, in OOP terms, it ____-all of the attributes and behaviors of the object it instantiates.

A) encapsulates
C) collapses
B) exposes
D) implements
سؤال
In addition to using Visual Basic classes, you also can define your own classes.
سؤال
When you define a class using the Class statement, you are required to use Pascal case for class names.
سؤال
A class can have a maximum of one constructor.
سؤال
You create a Public property using a(n) ____ procedure.

A) Attribute
C) Set
B) Property
D) Get
سؤال
The code contained in the ____ block of a Property procedure allows an application to retrieve the contents of the Private variable associated with the property.

A) Get
C) Set
B) SetProperty
D) GetProperty
سؤال
You can enter one or more instructions within a Set statement.
سؤال
A class can contain methods other than constructors.
سؤال
You define a class using the ____ statement.

A) Object
C) Type as Class
B) ClassType
D) Class
سؤال
The Get block in a Property procedure contains the Set statement, which begins with the keyword Set and ends with the keywords End Set.
سؤال
Every object used in an object-oriented program is created from a ____, which is a pattern that the computer uses to create the object.

A) class
C) structure
B) basic type
D) template
سؤال
After defining a class, you can use it to instantiate a maximum of one object.
سؤال
The real advantage of object-oriented programming is the ability to reuse a class-for example, use it in a different way or in a different application.
سؤال
Pascal case means you capitalize the first letter in the name and the first letter in any subsequent words in the name.
سؤال
Constructors can be either Sub or Function procedures.
سؤال
____ are the operations (actions) that the object is capable of performing.

A) Instances
C) Events
B) Behaviors
D) Methods
سؤال
Every object has ____, which are the characteristics that describe the object.

A) properties
C) parts
B) attributes
D) elements
سؤال
When naming the Private variables in a class, many programmers use the underscore as the first character and then use camel case for the remainder of the name.
سؤال
A constructor that has no parameters is called the ____.

A) void constructor
C) default constructor
B) self constructor
D) empty constructor
سؤال
A class can have only one default ____.

A) maker
C) instantiate
B) creator
D) constructor
سؤال
A(n) ____ is a class method, always named New, whose sole purpose is to initialize the class's Private variables.

A) constructor
C) creator
B) maker
D) instantiate
سؤال
The first word in a method name should be a(n) ____.

A) noun
C) adjective
B) verb
D) adverb
سؤال
The code in the ____ block of a Property procedure allows an application to assign a value to the Private variable associated with the property.

A) Get
C) Set
B) SetProperty
D) GetProperty
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/25
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 26: I Love This Class Creating a Class
1
When an application instantiates an object, only the Public members of the object's class are made available to the application.
True
2
____ are the actions to which an object can respond.

A) Actions
C) Events
B) Behaviors
D) Instances
C
3
A class contains-or, in OOP terms, it ____-all of the attributes and behaviors of the object it instantiates.

A) encapsulates
C) collapses
B) exposes
D) implements
A
4
In addition to using Visual Basic classes, you also can define your own classes.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
5
When you define a class using the Class statement, you are required to use Pascal case for class names.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
6
A class can have a maximum of one constructor.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
7
You create a Public property using a(n) ____ procedure.

A) Attribute
C) Set
B) Property
D) Get
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
8
The code contained in the ____ block of a Property procedure allows an application to retrieve the contents of the Private variable associated with the property.

A) Get
C) Set
B) SetProperty
D) GetProperty
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
9
You can enter one or more instructions within a Set statement.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
10
A class can contain methods other than constructors.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
11
You define a class using the ____ statement.

A) Object
C) Type as Class
B) ClassType
D) Class
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
12
The Get block in a Property procedure contains the Set statement, which begins with the keyword Set and ends with the keywords End Set.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
13
Every object used in an object-oriented program is created from a ____, which is a pattern that the computer uses to create the object.

A) class
C) structure
B) basic type
D) template
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
14
After defining a class, you can use it to instantiate a maximum of one object.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
15
The real advantage of object-oriented programming is the ability to reuse a class-for example, use it in a different way or in a different application.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
16
Pascal case means you capitalize the first letter in the name and the first letter in any subsequent words in the name.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
17
Constructors can be either Sub or Function procedures.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
18
____ are the operations (actions) that the object is capable of performing.

A) Instances
C) Events
B) Behaviors
D) Methods
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
19
Every object has ____, which are the characteristics that describe the object.

A) properties
C) parts
B) attributes
D) elements
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
20
When naming the Private variables in a class, many programmers use the underscore as the first character and then use camel case for the remainder of the name.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
21
A constructor that has no parameters is called the ____.

A) void constructor
C) default constructor
B) self constructor
D) empty constructor
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
22
A class can have only one default ____.

A) maker
C) instantiate
B) creator
D) constructor
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
23
A(n) ____ is a class method, always named New, whose sole purpose is to initialize the class's Private variables.

A) constructor
C) creator
B) maker
D) instantiate
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
24
The first word in a method name should be a(n) ____.

A) noun
C) adjective
B) verb
D) adverb
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
25
The code in the ____ block of a Property procedure allows an application to assign a value to the Private variable associated with the property.

A) Get
C) Set
B) SetProperty
D) GetProperty
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.