Exam 11: Classes and Objects
Exam 1: An Introduction to Visual Basic 201544 Questions
Exam 2: Designing Applications60 Questions
Exam 3: Using Variables and Constants60 Questions
Exam 4: The Selection Structure60 Questions
Exam 5: More on the Selection Structure58 Questions
Exam 6: The Repetition Structure60 Questions
Exam 7: Sub and Function Procedures60 Questions
Exam 8: String Manipulation60 Questions
Exam 9: Arrays60 Questions
Exam 10: Structures and Sequential Access Files60 Questions
Exam 11: Classes and Objects60 Questions
Exam 12: Web Applications60 Questions
Exam 13: Working With Access Databases and Linq60 Questions
Exam 14: Access Databases and SQL60 Questions
Select questions type
A base class named DeliveryFee contains a function named CalcFee that calculates an order's delivery fee using the following formula: total * .05.Write the method's procedure header in the base class that will allow the derived class to override the function.
(Essay)
4.7/5
(30)
____ are the operations (actions)that the object is capable of performing.
(Multiple Choice)
4.9/5
(32)
You indicate that a class is a derived class by including the ____ clause in the derived class's Class statement.
(Multiple Choice)
4.9/5
(34)
An application has a Private variable named _decGPA.Write the statements for the Property procedure named GPA to validate the value received from the application before assigning it to the Private variable.
(Essay)
4.8/5
(30)
Write a Class statement that defines a class named Employee.(The class contains four public variables named EmpID,LastName,FirstName,and PayRate.The EmpID,LastName,and FirstName variables are String variables.The PayRate variable is a Decimal variable.)Then write a statement that creates an Employee variable named partTime and also instantiates an Employee object,assigning it to the partTime variable.
(Essay)
4.8/5
(36)
In a Property procedure,the dataType must match the data type of ____ associated with the Property procedure.
(Multiple Choice)
4.9/5
(45)
In the following instruction,Room is a(n)____. Dim bedroom As New Room
(Multiple Choice)
4.8/5
(43)
Which of the following instantiates a Product object and assigns it to the bookcase variable?
(Multiple Choice)
4.8/5
(31)
Constructors never return a value,so they are always Function procedures.
(True/False)
4.9/5
(38)
A method name combined with its optional parameterList is called the method's ____.
(Multiple Choice)
4.8/5
(35)
A(n)____ property gets its value from the class itself rather than from the application.
(Multiple Choice)
4.8/5
(32)
You can create one class from another class.In OOP,this is referred to as ____.
(Multiple Choice)
4.8/5
(27)
When two or more methods have the same name but different parameters,the methods are referred to as ____.
(Multiple Choice)
4.7/5
(36)
A ____ encapsulates the attributes and behaviors of the object it creates.
(Multiple Choice)
4.9/5
(29)
A class is anything that can be seen,touched,or used; in other words,a class is nearly any thing.
(True/False)
4.9/5
(36)
The purpose of a(n)____ in OOP is to encapsulate the properties that describe an object,the methods that allow the object to perform tasks,and the events that allow the object to respond to actions.
(Multiple Choice)
4.7/5
(40)
When naming the Private variables in a class,many programmers use the ____ as the first character and then use camel case for the remainder of the name.
(Multiple Choice)
4.9/5
(33)
Showing 21 - 40 of 60
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)