Exam 15: Creating Classes and Objects
Exam 1: Overview an Introduction to Programming17 Questions
Exam 2: An Introduction to Visual Basic 201542 Questions
Exam 3: Creating a User Interface42 Questions
Exam 4: Memory Locations and Calculations42 Questions
Exam 5: Making Decisions in a Program42 Questions
Exam 6: More on the Selection Structure42 Questions
Exam 7: Repeating Program Instructions42 Questions
Exam 8: More on the Repetition Structure42 Questions
Exam 9: Sub and Function Procedures42 Questions
Exam 10: Arrays42 Questions
Exam 11: String Manipulation and Menus42 Questions
Exam 12: Structures and Sequential Files42 Questions
Exam 13: Access Databases and Linq42 Questions
Exam 14: Creating Simple Web Applications42 Questions
Exam 15: Creating Classes and Objects42 Questions
Select questions type
You use the ____ keyword to instantiate a procedure-level object variable.
Free
(Multiple Choice)
4.7/5
(44)
Correct Answer:
B
What are the rules for naming methods?
Free
(Essay)
4.9/5
(32)
Correct Answer:
The rules for naming methods are similar to the rules for naming properties. Like property names, method names should be entered using Pascal case. However, unlike property names, the first word in a method name should be a verb; any subsequent words should be nouns and adjectives.
An application cannot directly refer to the ____________________ variables in a class.
Free
(Short Answer)
4.7/5
(32)
Correct Answer:
Private
After you define a class, you can then use the class to instantiate one or more ____________________.
(Short Answer)
4.8/5
(39)
In Visual Basic, you can define your own classes and then create instances from those classes.
(True/False)
4.7/5
(41)
The only type of method which can be overloaded is a constructor.
(True/False)
4.9/5
(40)
In its simplest form, the Class statement can be used in place of the Structure statement.
(True/False)
4.8/5
(39)
For the class Student , how you would create the auto-implemented string property of Firstname ?
(Essay)
4.8/5
(42)
Constructors that contain parameters are called ____________________ constructors.
(Short Answer)
4.8/5
(33)
Each object is an instance of the ____ from which it is created.
(Multiple Choice)
4.9/5
(40)
The ____ of a class are represented by methods, which can be Sub or Function procedures.
(Multiple Choice)
4.8/5
(37)
The Private variables of a class are visible to applications that contain an instance of the class.
(True/False)
4.7/5
(27)
The Set statement begins with the keyword Set and ends with the keywords ____.
(Multiple Choice)
4.7/5
(37)
The convention is to use ____ case for the names of the Public variables in a class.
(Multiple Choice)
4.9/5
(41)
The ____ of a class are most often represented by Private variables and Public properties.
(Multiple Choice)
4.9/5
(46)
What is meant by overloaded methods and when is overloading of methods useful?
(Essay)
4.8/5
(40)
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.
(Multiple Choice)
4.9/5
(41)
____ enable you to specify the property of a class in one line of code.
(Multiple Choice)
5.0/5
(38)
Showing 1 - 20 of 42
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)