Exam 14: Creating Classes and Objects
Exam 1: An Introduction to Visual Basic 201250 Questions
Exam 2: Creating a User Interface50 Questions
Exam 3: Memory Locations and Calculations50 Questions
Exam 4: Making Decisions in a Program50 Questions
Exam 5: More on the Selection Structure50 Questions
Exam 6: Repeating Program Instructions50 Questions
Exam 7: More on the Repetition Structure50 Questions
Exam 8: Sub and Function Procedures50 Questions
Exam 9: Arrays50 Questions
Exam 10: String Manipulation and Menus50 Questions
Exam 11: Structures and Sequential Files50 Questions
Exam 12: Access Databases and Linq50 Questions
Exam 13: Creating Simple Web Applications50 Questions
Exam 14: Creating Classes and Objects50 Questions
Exam 15: an Introduction to Programming17 Questions
Select questions type
For the class Student, how you would create the auto-implemented string property of Firstname?
(Short Answer)
4.9/5
(37)
Match each item with a statement below.
a.Property procedure
f.behavior
b.attribute
g.ReadOnly keyword
c.Set block
h.New keyword
d.Private keyword
i.WriteOnly keyword
e.Get block
-Used in a Property procedure header to indicate that you are creating a property whose value can be retrieved by an application but cannot be set by the application
(Short Answer)
4.7/5
(44)
The ____ of a class are represented by methods, which can be Sub or Function procedures.
(Multiple Choice)
4.9/5
(35)
The only type of method which can be overloaded is a constructor.
(True/False)
4.7/5
(43)
How can you make the Private members of a class available to an application?
(Essay)
4.8/5
(32)
In Visual Basic, you can define your own classes and then create instances from those classes.
(True/False)
4.9/5
(35)
The Get statement begins with the keyword Get and ends with the keywords Return Get.
(True/False)
4.7/5
(25)
Each object is an instance of the ____ from which it is created.
(Multiple Choice)
4.7/5
(28)
The classes that you define must specify the attributes and ____________________ of the objects they create.
(Short Answer)
4.9/5
(41)
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.
(Essay)
4.9/5
(40)
Match each item with a statement below.
a.Property procedure
f.behavior
b.attribute
g.ReadOnly keyword
c.Set block
h.New keyword
d.Private keyword
i.WriteOnly keyword
e.Get block
-Used to create an object
(Short Answer)
4.9/5
(41)
In its simplest form, the Class statement can be used in place of the Structure statement.
(True/False)
4.9/5
(41)
By convention, the names of the Private variables in a class start with a(n) ____.
(Multiple Choice)
4.7/5
(32)
The Set statement begins with the keyword Set and ends with the keywords ____.
(Multiple Choice)
4.9/5
(38)
Match each item with a statement below.
a.Property procedure
f.behavior
b.attribute
g.ReadOnly keyword
c.Set block
h.New keyword
d.Private keyword
i.WriteOnly keyword
e.Get block
-Used to declare a variable that is not visible to applications that contain an instance of the class
(Short Answer)
4.9/5
(32)
Showing 21 - 40 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)