Deck 11: Object-Oriented Programming

ملء الشاشة (f)
exit full mode
سؤال
Which of the following is an accurate definition of the term object-oriented program?

A) An object-oriented program is a specific instance of a user-defined type.
B) An object-oriented program is an encapsulation of data and procedures that has properties and responds to methods.
C) An object-oriented program is populated with objects that hold data, have properties, respond to methods, and raise events.
D) An object-oriented program is a template from which objects are created.
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
Which one of the following statements does NOT accurately describe object-oriented programs?

A) they are populated with objects that don't have properties
B) they are populated with objects that hold data
C) they are populated with objects that respond to methods
D) they are populated with objects that raise events
سؤال
Which of the following is an example of a control object?

A) string variable
B) array
C) primary key
D) list box
سؤال
Which procedure will set default values for member variables when an object is instantiated?

A) Form1_Load
B) Get property procedure
C) New
D) Set property procedure
سؤال
Control objects and code objects share many things in common. Which of the following statements applies only to control objects (in other words, which of the following statements does not apply to code objects)?

A) these objects have properties
B) these objects are predefined and have physical manifestations
C) these objects respond to methods
D) these objects are an encapsulation of data and procedures that act on the data
سؤال
An object can be created in the Declaration section of a form's Code editor with a pair of statements of the form.
سؤال
Get property procedures are used to retrieve values of member variables.
سؤال
Which statement form below carries out a method?

A) objectName.propertyName = value
B) varName = objectName.propertyName
C) objectName.methodName(arg1, ...)
D) RaiseEvent eventName
سؤال
Which of the following statements applies to code objects?

A) they are created from the Toolbox
B) they are predefined and have physical manifestations
C) they require the writing of a class block of code
D) they include objects of the type TextBox and ListBox
سؤال
A class specifies the properties and methods that will be common to all objects that are instances of that class.
سؤال
Which statement form below assigns a value to a property?

A) objectName.propertyName = value
B) varName = objectName.propertyName
C) objectName.methodName(arg1, ...)
D) RaiseEvent eventName
سؤال
Which of the following is an accurate definition of the term class?

A) A class is a specific instance of a user-defined type.
B) A class is an encapsulation of data and procedures that has properties and responds to methods.
C) A class is populated with objects that hold data, have properties, respond to methods, and raise events.
D) A class is a template from which objects are created.
سؤال
Member variables in a class are normally specified as Private.
سؤال
Set property procedures are used to assign values to member variables.
سؤال
Which line of code will declare and create an instance of a new object variable called instructor using a class called Faculty?

A) Dim Faculty As instructor
B) Dim instructor As Faculty
C) Dim Faculty As New instructor
D) Dim instructor As New Faculty
سؤال
Which one of the following statements does NOT apply to object-oriented programming?

A) Object-oriented programming helps to prevent the complete rewriting of a program every time a minor change needs to be made.
B) Object-oriented programming makes use of the principle of "data hiding."
C) Object-oriented programming makes use of the encapsulation within an object of data and procedures that act on the data.
D) Object-oriented programming depends on the programmer having access to and understanding all of the code that contains the data and procedures that are encapsulated within an object.
سؤال
Two instances of the same class may exist in a single program.
سؤال
Which statement form below assigns the value of a property to a variable?

A) objectName.propertyName = value
B) varName = objectName.propertyName
C) objectName.methodName(arg1, ...)
D) RaiseEvent eventName
سؤال
The New event procedure is automatically invoked when an object is instantiated.
سؤال
What is the purpose of the Get property procedure?

A) retrieve the value of a property
B) assign values
C) access private methods
D) verify the data
سؤال
Member or instance variables should not be accessed directly; instead, these variables are accessed indirectly through the use of a property block of code.
سؤال
A line of code that contains arguments and instantiates an object passes the value of these arguments to the object's New procedure.
سؤال
The constructor method requires at least one argument, and the code inside the procedure block performs any tasks needed for initializing an object.
سؤال
In the following statement, the word Private is used to guarantee that the variable cannot be accessed directly from outside the object.
سؤال
The lines of code used to create an instance of a class cannot be used inside of a procedure.
سؤال
The constructor method that is possessed by each class is used to set default values for member variables and to create other objects associated with this object.
سؤال
Each list box is said to be an instance of the class ListBox.
سؤال
The constructor method takes zero or more arguments, and the code inside the procedure block performs any tasks needed for initializing an object.
سؤال
In the following statement, the word m_name demonstrates the proper name for a member or instance variable. If these variables are declared without the prefix "m_", an exception will be thrown.
سؤال
A good rule of thumb for object-oriented programming is that classes are the verbs in your analysis of the problem.
سؤال
Methods can be either Sub or Function procedures.
سؤال
A line of code of the form Dim objectName As New className(arg1, arg2, ...) is used to instantiate an object variable or instance of an object.
سؤال
If member variables are declared as Private, they cannot be accessed directly from outside an object.
سؤال
An object is a template from which classes are created.
سؤال
The principle of "data hiding" is the exact opposite of the concepts that serve as the basis for object-oriented programming.
سؤال
Property blocks of code, that are used to access (indirectly) member or instance variables, must always contain both Get and Set property procedures.
سؤال
Each class has a special method called a constructor that is sometimes invoked when an object is instantiated.
سؤال
An object is an encapsulation of data and procedures that act on that data.
سؤال
Methods are constructed with a Function procedure when the method returns a value, and with a Sub procedure otherwise.
سؤال
Code objects are specific instances of a user-defined type, called a class.
سؤال
The statement for raising a user-defined event is located in the form's code and the event is dealt with in the class block of code.
سؤال
Which of the following best defines the term inheritance?

A) the process by which the properties, methods, and events of one class are passed onto another class
B) the collection of a parent class along with its descendants
C) when a member variable of class A makes use of an object of type class B
D) when one class manipulates or changes objects of another class
سؤال
The header for an event procedure for an instance of a class will be of the following type:
سؤال
Which of the following best defines the term hierarchy?

A) the process by which the properties, methods, and events of one class are passed onto another class
B) the collection of a parent class along with its descendants
C) when a member variable of class A makes use of an object of type class B
D) when one class manipulates or changes objects of another class
سؤال
Statements of which of the following kind should be placed in the form's code to declare an instance of a class that contains an event?

A) Public Event UserDefinedEvent(par1 As dataType1, par2 As dataType2, ...)
B) RaiseEvent UserDefinedEvent(arg1, arg2, ...)
C) Dim WithEvents object1 As ClassName
D) Private Sub object1_UserDefinedEvent(par1, par2, ...) _ Handles object1.UserDefinedEvent
سؤال
The statement for raising a user-defined event is located in the class block of code and the event is dealt with in the form's code.
سؤال
Statements of which of the following kind should be placed at locations in the class block code at which the event should be raised?

A) Public Event UserDefinedEvent(par1 As dataType1, par2 As dataType2, ...)
B) RaiseEvent UserDefinedEvent(arg1, arg2, ...)
C) Dim WithEvents object1 As ClassName
D) Private Sub object1_UserDefinedEvent(par1, par2, ...) _ Handles object1.UserDefinedEvent
سؤال
Which of the following terms does not describe a relationship between classes?

A) use
B) subclass
C) inheritance
D) containment
سؤال
In the hierarchy chart shown below, which of the following is GrandChild2 able to access? <strong>In the hierarchy chart shown below, which of the following is GrandChild2 able to access?  </strong> A) Property A B) Function E C) Property D D) Sub F <div style=padding-top: 35px>

A) Property A
B) Function E
C) Property D
D) Sub F
سؤال
Statements of which of the following kind should be placed in the Declarations section of a class code block?

A) Public Event UserDefinedEvent(par1 As dataType1, par2 As dataType2, ...)
B) RaiseEvent UserDefinedEvent(arg1, arg2, ...)
C) Dim WithEvents object1 As ClassName
D) Private Sub object1_UserDefinedEvent(par1, par2, ...) _ Handles object1.UserDefinedEvent
سؤال
Which of the following is an example of an array declaration whose data type is a user-defined object?

A) Dim students(50) As String
B) Dim students(50) As Student
C) Dim students(50) As Integer
D) Dim students(50) As TextBox
سؤال
The ___________ feature of Visual Basic allows certain types of property blocks to the written with neither a Get or a Set block?

A) default properties
B) self-implemented properties
C) auto-implemented properties
D) self-explanatory properties
سؤال
In the hierarchy chart shown below, GrandChild1 has access to each of the following items (as a result of inheritance), except one. Which of the following is GrandChild1 NOT able to access? <strong>In the hierarchy chart shown below, GrandChild1 has access to each of the following items (as a result of inheritance), except one. Which of the following is GrandChild1 NOT able to access?  </strong> A) Property A B) Property D C) Event C D) Sub B <div style=padding-top: 35px>

A) Property A
B) Property D
C) Event C
D) Sub B
سؤال
Which of the following is a benefit of inheritance?

A) Inheritance leads to the duplication of code in multiple classes.
B) Inheritance allows two or more classes to share some common features yet differentiate themselves on others.
C) Inheritance allows variables to be collected in arrays.
D) Inheritance allows Visual Basic programs to directly connect to databases.
سؤال
It can be said that class Student contains class College when a member variable of class Student makes use of an object of type class College.
سؤال
Which of the following statements best applies to the term user-defined events?

A) User-defined events represent specific instances of a user-defined type.
B) User-defined events are used to communicate changes of properties, errors, and the progress of lengthy operations.
C) User-defined events are predefined objects with physical manifestations.
D) User-defined events are populated with objects that hold data, have properties, respond to methods, and raise events.
سؤال
The keyword WithEvents is inserted into the standard declaration statement for instantiation of a class to allow the instance to respond to an event.
سؤال
Inheritance is the process by which the parent or base class inherits the properties, methods, and events of the child or derived class.
سؤال
Inheritance does not enhance code reusability.
سؤال
In the following code block, which of the following represents the line of code that assigns the value of the Name property?
Class Student
Private m_name As String
Public Property Name As String
Get
Return m_name
End Get
Set(Value As String)
m_name = Value
End Set
End Property
End Class

A) End Class
B) m_name = Value
C) Return m_name
D) Private m_name As String
سؤال
The feature that two classes can have methods with different names but that have the same purpose (and essentially the same implementation), is known as polymorphism.
سؤال
The programmer needs to be able to identify useful hierarchies of classes and derived classes in working with object-oriented programming.
سؤال
In inheritance, the keyword Overrides is used to designate the parent's methods that are overridden by its children.
سؤال
The ISA test is one guideline used in determining when and how to establish a hierarchy. It posits that if one class is a more specific case of another class, then it should be derived from that other class.
سؤال
In inheritance, the keyword Overridable is used to designate the parent's methods that may be overridden by its children.
سؤال
The class interface is a set of properties, methods, and events that define how the class should behave.
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/66
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 11: Object-Oriented Programming
1
Which of the following is an accurate definition of the term object-oriented program?

A) An object-oriented program is a specific instance of a user-defined type.
B) An object-oriented program is an encapsulation of data and procedures that has properties and responds to methods.
C) An object-oriented program is populated with objects that hold data, have properties, respond to methods, and raise events.
D) An object-oriented program is a template from which objects are created.
C
2
Which one of the following statements does NOT accurately describe object-oriented programs?

A) they are populated with objects that don't have properties
B) they are populated with objects that hold data
C) they are populated with objects that respond to methods
D) they are populated with objects that raise events
A
3
Which of the following is an example of a control object?

A) string variable
B) array
C) primary key
D) list box
D
4
Which procedure will set default values for member variables when an object is instantiated?

A) Form1_Load
B) Get property procedure
C) New
D) Set property procedure
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
5
Control objects and code objects share many things in common. Which of the following statements applies only to control objects (in other words, which of the following statements does not apply to code objects)?

A) these objects have properties
B) these objects are predefined and have physical manifestations
C) these objects respond to methods
D) these objects are an encapsulation of data and procedures that act on the data
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
6
An object can be created in the Declaration section of a form's Code editor with a pair of statements of the form.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
7
Get property procedures are used to retrieve values of member variables.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
8
Which statement form below carries out a method?

A) objectName.propertyName = value
B) varName = objectName.propertyName
C) objectName.methodName(arg1, ...)
D) RaiseEvent eventName
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
9
Which of the following statements applies to code objects?

A) they are created from the Toolbox
B) they are predefined and have physical manifestations
C) they require the writing of a class block of code
D) they include objects of the type TextBox and ListBox
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
10
A class specifies the properties and methods that will be common to all objects that are instances of that class.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
11
Which statement form below assigns a value to a property?

A) objectName.propertyName = value
B) varName = objectName.propertyName
C) objectName.methodName(arg1, ...)
D) RaiseEvent eventName
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
12
Which of the following is an accurate definition of the term class?

A) A class is a specific instance of a user-defined type.
B) A class is an encapsulation of data and procedures that has properties and responds to methods.
C) A class is populated with objects that hold data, have properties, respond to methods, and raise events.
D) A class is a template from which objects are created.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
13
Member variables in a class are normally specified as Private.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
14
Set property procedures are used to assign values to member variables.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
15
Which line of code will declare and create an instance of a new object variable called instructor using a class called Faculty?

A) Dim Faculty As instructor
B) Dim instructor As Faculty
C) Dim Faculty As New instructor
D) Dim instructor As New Faculty
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
16
Which one of the following statements does NOT apply to object-oriented programming?

A) Object-oriented programming helps to prevent the complete rewriting of a program every time a minor change needs to be made.
B) Object-oriented programming makes use of the principle of "data hiding."
C) Object-oriented programming makes use of the encapsulation within an object of data and procedures that act on the data.
D) Object-oriented programming depends on the programmer having access to and understanding all of the code that contains the data and procedures that are encapsulated within an object.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
17
Two instances of the same class may exist in a single program.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
18
Which statement form below assigns the value of a property to a variable?

A) objectName.propertyName = value
B) varName = objectName.propertyName
C) objectName.methodName(arg1, ...)
D) RaiseEvent eventName
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
19
The New event procedure is automatically invoked when an object is instantiated.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
20
What is the purpose of the Get property procedure?

A) retrieve the value of a property
B) assign values
C) access private methods
D) verify the data
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
21
Member or instance variables should not be accessed directly; instead, these variables are accessed indirectly through the use of a property block of code.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
22
A line of code that contains arguments and instantiates an object passes the value of these arguments to the object's New procedure.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
23
The constructor method requires at least one argument, and the code inside the procedure block performs any tasks needed for initializing an object.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
24
In the following statement, the word Private is used to guarantee that the variable cannot be accessed directly from outside the object.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
25
The lines of code used to create an instance of a class cannot be used inside of a procedure.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
26
The constructor method that is possessed by each class is used to set default values for member variables and to create other objects associated with this object.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
27
Each list box is said to be an instance of the class ListBox.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
28
The constructor method takes zero or more arguments, and the code inside the procedure block performs any tasks needed for initializing an object.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
29
In the following statement, the word m_name demonstrates the proper name for a member or instance variable. If these variables are declared without the prefix "m_", an exception will be thrown.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
30
A good rule of thumb for object-oriented programming is that classes are the verbs in your analysis of the problem.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
31
Methods can be either Sub or Function procedures.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
32
A line of code of the form Dim objectName As New className(arg1, arg2, ...) is used to instantiate an object variable or instance of an object.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
33
If member variables are declared as Private, they cannot be accessed directly from outside an object.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
34
An object is a template from which classes are created.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
35
The principle of "data hiding" is the exact opposite of the concepts that serve as the basis for object-oriented programming.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
36
Property blocks of code, that are used to access (indirectly) member or instance variables, must always contain both Get and Set property procedures.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
37
Each class has a special method called a constructor that is sometimes invoked when an object is instantiated.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
38
An object is an encapsulation of data and procedures that act on that data.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
39
Methods are constructed with a Function procedure when the method returns a value, and with a Sub procedure otherwise.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
40
Code objects are specific instances of a user-defined type, called a class.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
41
The statement for raising a user-defined event is located in the form's code and the event is dealt with in the class block of code.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
42
Which of the following best defines the term inheritance?

A) the process by which the properties, methods, and events of one class are passed onto another class
B) the collection of a parent class along with its descendants
C) when a member variable of class A makes use of an object of type class B
D) when one class manipulates or changes objects of another class
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
43
The header for an event procedure for an instance of a class will be of the following type:
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
44
Which of the following best defines the term hierarchy?

A) the process by which the properties, methods, and events of one class are passed onto another class
B) the collection of a parent class along with its descendants
C) when a member variable of class A makes use of an object of type class B
D) when one class manipulates or changes objects of another class
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
45
Statements of which of the following kind should be placed in the form's code to declare an instance of a class that contains an event?

A) Public Event UserDefinedEvent(par1 As dataType1, par2 As dataType2, ...)
B) RaiseEvent UserDefinedEvent(arg1, arg2, ...)
C) Dim WithEvents object1 As ClassName
D) Private Sub object1_UserDefinedEvent(par1, par2, ...) _ Handles object1.UserDefinedEvent
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
46
The statement for raising a user-defined event is located in the class block of code and the event is dealt with in the form's code.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
47
Statements of which of the following kind should be placed at locations in the class block code at which the event should be raised?

A) Public Event UserDefinedEvent(par1 As dataType1, par2 As dataType2, ...)
B) RaiseEvent UserDefinedEvent(arg1, arg2, ...)
C) Dim WithEvents object1 As ClassName
D) Private Sub object1_UserDefinedEvent(par1, par2, ...) _ Handles object1.UserDefinedEvent
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
48
Which of the following terms does not describe a relationship between classes?

A) use
B) subclass
C) inheritance
D) containment
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
49
In the hierarchy chart shown below, which of the following is GrandChild2 able to access? <strong>In the hierarchy chart shown below, which of the following is GrandChild2 able to access?  </strong> A) Property A B) Function E C) Property D D) Sub F

A) Property A
B) Function E
C) Property D
D) Sub F
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
50
Statements of which of the following kind should be placed in the Declarations section of a class code block?

A) Public Event UserDefinedEvent(par1 As dataType1, par2 As dataType2, ...)
B) RaiseEvent UserDefinedEvent(arg1, arg2, ...)
C) Dim WithEvents object1 As ClassName
D) Private Sub object1_UserDefinedEvent(par1, par2, ...) _ Handles object1.UserDefinedEvent
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
51
Which of the following is an example of an array declaration whose data type is a user-defined object?

A) Dim students(50) As String
B) Dim students(50) As Student
C) Dim students(50) As Integer
D) Dim students(50) As TextBox
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
52
The ___________ feature of Visual Basic allows certain types of property blocks to the written with neither a Get or a Set block?

A) default properties
B) self-implemented properties
C) auto-implemented properties
D) self-explanatory properties
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
53
In the hierarchy chart shown below, GrandChild1 has access to each of the following items (as a result of inheritance), except one. Which of the following is GrandChild1 NOT able to access? <strong>In the hierarchy chart shown below, GrandChild1 has access to each of the following items (as a result of inheritance), except one. Which of the following is GrandChild1 NOT able to access?  </strong> A) Property A B) Property D C) Event C D) Sub B

A) Property A
B) Property D
C) Event C
D) Sub B
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
54
Which of the following is a benefit of inheritance?

A) Inheritance leads to the duplication of code in multiple classes.
B) Inheritance allows two or more classes to share some common features yet differentiate themselves on others.
C) Inheritance allows variables to be collected in arrays.
D) Inheritance allows Visual Basic programs to directly connect to databases.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
55
It can be said that class Student contains class College when a member variable of class Student makes use of an object of type class College.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
56
Which of the following statements best applies to the term user-defined events?

A) User-defined events represent specific instances of a user-defined type.
B) User-defined events are used to communicate changes of properties, errors, and the progress of lengthy operations.
C) User-defined events are predefined objects with physical manifestations.
D) User-defined events are populated with objects that hold data, have properties, respond to methods, and raise events.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
57
The keyword WithEvents is inserted into the standard declaration statement for instantiation of a class to allow the instance to respond to an event.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
58
Inheritance is the process by which the parent or base class inherits the properties, methods, and events of the child or derived class.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
59
Inheritance does not enhance code reusability.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
60
In the following code block, which of the following represents the line of code that assigns the value of the Name property?
Class Student
Private m_name As String
Public Property Name As String
Get
Return m_name
End Get
Set(Value As String)
m_name = Value
End Set
End Property
End Class

A) End Class
B) m_name = Value
C) Return m_name
D) Private m_name As String
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
61
The feature that two classes can have methods with different names but that have the same purpose (and essentially the same implementation), is known as polymorphism.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
62
The programmer needs to be able to identify useful hierarchies of classes and derived classes in working with object-oriented programming.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
63
In inheritance, the keyword Overrides is used to designate the parent's methods that are overridden by its children.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
64
The ISA test is one guideline used in determining when and how to establish a hierarchy. It posits that if one class is a more specific case of another class, then it should be derived from that other class.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
65
In inheritance, the keyword Overridable is used to designate the parent's methods that may be overridden by its children.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
66
The class interface is a set of properties, methods, and events that define how the class should behave.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 66 في هذه المجموعة.