Questions
Question 1 Multiple Choice (Single Answer)
Which control is an example of an object in VB.NET?
- Button
- Label
- Textbox
- Both a and b.
- All of the above.
Question 2 Multiple Choice (Single Answer)
Which of the following is part of an object?
- Methods
- Properties
- Instances
- Both a and b.
- All of the above.
Question 3 Multiple Choice (Single Answer)
Which is true about objects?
- Objects are used to create classes.
- Objects are analogous to blueprints.
- Objects combine actions and data.
- Both a and b.
- All of the above.
Question 4 Multiple Choice (Single Answer)
Properties are used to represent:
- actions.
- classes.
- data.
- events.
- instances.
Question 5 Multiple Choice (Single Answer)
Methods are used to represent:
- actions.
- classes.
- data.
- events.
- instances.
Question 6 Multiple Choice (Single Answer)
The term instantiation refers to the creation of:
- a class from a blueprint.
- an object from a class.
- a method from an object.
- a property from a method.
- a blueprint from a property.
Question 7 Multiple Choice (Single Answer)
Anything in VB.NET that has a property or method is:
- a class.
- a control.
- an object.
- Both a and b.
- All of the above.
Question 8 Multiple Choice (Single Answer)
Which feature is needed to make a programming language object oriented?
- Encapsulation
- Inheritance
- Polymorphism
- Both a and b.
- All of the above.
Question 9 Multiple Choice (Single Answer)
We should think of the practice of object-oriented programming as:
- a simple answer to the complex problem of creating software.
- an incremental improvement to the problem of creating software.
- the way to get rid of a werewolf.
- Both a and b.
- All of the above.
Question 10 Multiple Choice (Single Answer)
Encapsulation makes it easier to:
- reuse and modify existing modules of code.
- write and read code by sharing method names.
- hide and protect data from external code.
- Both a and b.
- All of the above.
Question 11 Multiple Choice (Single Answer)
The standard for designing a field is that it be defined as a:
- private method.
- public method.
- private variable.
- public variable.
- None of the above.
Question 12 Multiple Choice (Single Answer)
What is the syntax for making a property read-only?
- Property Read propertyname As datatype
- Read Property propertyname As datatype
- ReadOnly Property propertyname As datatype
- Read-Only Property propertyname As datatype
- RO Property propertyname As datatype
Question 13 Multiple Choice (Single Answer)
The Get procedure of a property acts like:
- an event.
- a function.
- a variable.
- Both a and b.
- All of the above.
Question 14 Multiple Choice (Single Answer)
A method in a class is:
- a sub procedure.
- a function.
- an event.
- Both a and b.
- All of the above.
Question 15 Multiple Choice (Single Answer)
How many constructors can a class have?
- 1
- 2
- 3
- All of the above.