Deck 11: Object-Oriented Programming

Full screen (f)
exit full mode
Question
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.
Use Space or
up arrow
down arrow
to flip the card.
Question
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
Question
Which of the following is an example of a control object?

A) string variable
B) array
C) primary key
D) list box
Question
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
Question
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
Question
An object can be created in the Declaration section of a form's Code editor with a pair of statements of the form.
Question
Get property procedures are used to retrieve values of member variables.
Question
Which statement form below carries out a method?

A) objectName.propertyName = value
B) varName = objectName.propertyName
C) objectName.methodName(arg1, ...)
D) RaiseEvent eventName
Question
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
Question
A class specifies the properties and methods that will be common to all objects that are instances of that class.
Question
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
Question
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.
Question
Member variables in a class are normally specified as Private.
Question
Set property procedures are used to assign values to member variables.
Question
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
Question
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.
Question
Two instances of the same class may exist in a single program.
Question
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
Question
The New event procedure is automatically invoked when an object is instantiated.
Question
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
Question
Member or instance variables should not be accessed directly; instead, these variables are accessed indirectly through the use of a property block of code.
Question
A line of code that contains arguments and instantiates an object passes the value of these arguments to the object's New procedure.
Question
The constructor method requires at least one argument, and the code inside the procedure block performs any tasks needed for initializing an object.
Question
In the following statement, the word Private is used to guarantee that the variable cannot be accessed directly from outside the object.
Question
The lines of code used to create an instance of a class cannot be used inside of a procedure.
Question
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.
Question
Each list box is said to be an instance of the class ListBox.
Question
The constructor method takes zero or more arguments, and the code inside the procedure block performs any tasks needed for initializing an object.
Question
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.
Question
A good rule of thumb for object-oriented programming is that classes are the verbs in your analysis of the problem.
Question
Methods can be either Sub or Function procedures.
Question
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.
Question
If member variables are declared as Private, they cannot be accessed directly from outside an object.
Question
An object is a template from which classes are created.
Question
The principle of "data hiding" is the exact opposite of the concepts that serve as the basis for object-oriented programming.
Question
Property blocks of code, that are used to access (indirectly) member or instance variables, must always contain both Get and Set property procedures.
Question
Each class has a special method called a constructor that is sometimes invoked when an object is instantiated.
Question
An object is an encapsulation of data and procedures that act on that data.
Question
Methods are constructed with a Function procedure when the method returns a value, and with a Sub procedure otherwise.
Question
Code objects are specific instances of a user-defined type, called a class.
Question
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.
Question
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
Question
The header for an event procedure for an instance of a class will be of the following type:
Question
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
Question
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
Question
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.
Question
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
Question
Which of the following terms does not describe a relationship between classes?

A) use
B) subclass
C) inheritance
D) containment
Question
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
Question
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
Question
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
Question
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
Question
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
Question
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.
Question
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.
Question
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.
Question
The keyword WithEvents is inserted into the standard declaration statement for instantiation of a class to allow the instance to respond to an event.
Question
Inheritance is the process by which the parent or base class inherits the properties, methods, and events of the child or derived class.
Question
Inheritance does not enhance code reusability.
Question
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
Question
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.
Question
The programmer needs to be able to identify useful hierarchies of classes and derived classes in working with object-oriented programming.
Question
In inheritance, the keyword Overrides is used to designate the parent's methods that are overridden by its children.
Question
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.
Question
In inheritance, the keyword Overridable is used to designate the parent's methods that may be overridden by its children.
Question
The class interface is a set of properties, methods, and events that define how the class should behave.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/66
auto play flashcards
Play
simple tutorial
Full screen (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
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
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.
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
k this deck
7
Get property procedures are used to retrieve values of member variables.
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
k this deck
10
A class specifies the properties and methods that will be common to all objects that are instances of that class.
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
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.
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
k this deck
13
Member variables in a class are normally specified as Private.
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
k this deck
14
Set property procedures are used to assign values to member variables.
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
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.
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
k this deck
17
Two instances of the same class may exist in a single program.
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
k this deck
19
The New event procedure is automatically invoked when an object is instantiated.
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
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.
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
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.
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
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.
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
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.
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
k this deck
25
The lines of code used to create an instance of a class cannot be used inside of a procedure.
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
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.
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
k this deck
27
Each list box is said to be an instance of the class ListBox.
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
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.
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
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.
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
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.
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
k this deck
31
Methods can be either Sub or Function procedures.
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
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.
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
k this deck
33
If member variables are declared as Private, they cannot be accessed directly from outside an object.
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
k this deck
34
An object is a template from which classes are created.
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
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.
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
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.
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
k this deck
37
Each class has a special method called a constructor that is sometimes invoked when an object is instantiated.
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
k this deck
38
An object is an encapsulation of data and procedures that act on that data.
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
k this deck
39
Methods are constructed with a Function procedure when the method returns a value, and with a Sub procedure otherwise.
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
k this deck
40
Code objects are specific instances of a user-defined type, called a class.
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
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.
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
k this deck
43
The header for an event procedure for an instance of a class will be of the following type:
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
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.
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
k this deck
48
Which of the following terms does not describe a relationship between classes?

A) use
B) subclass
C) inheritance
D) containment
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
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.
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
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.
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
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.
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
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.
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
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.
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
k this deck
59
Inheritance does not enhance code reusability.
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
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.
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
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.
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
k this deck
63
In inheritance, the keyword Overrides is used to designate the parent's methods that are overridden by its children.
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
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.
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
k this deck
65
In inheritance, the keyword Overridable is used to designate the parent's methods that may be overridden by its children.
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
k this deck
66
The class interface is a set of properties, methods, and events that define how the class should behave.
Unlock Deck
Unlock for access to all 66 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 66 flashcards in this deck.