VB Classic Study Test
Practice tests to further your career.
The following study test contains practice certification questions along with a study link for each question.
These questions were prepared by Mike Prestwood and are intended to stress an important aspect. All our practice questions are intended to prepare you
specifically to earn your Prestwood certification and generally for passing any certification test as well as prepare you for
Each question has a popup [Review] link.
Hover over answers to reveal correct answer.
Mouse over answers to reveal correct answer. Beginner
2 Beginner Level Questions
Question #1: True or False?
Given the following code, which MsgBox will display? The True or the False one?
Dim a, b, c, d As Boolean a = True b = True c = True d = False If Not (a And b) And (c Or d) Then MsgBox ("True") Else MsgBox ("False") End If
Question #2: Yes or No?
Is the default for parameters for subroutines and functions by reference?
2 Intermediate Level Questions
Question #3: Yes or No?
Given the following two functions:
Function This() This = False End Function Function That()
That = True End Function
function in the following code execute? That Private Sub Command0_Click() If This And That Then MsgBox ("hi") End If End Sub
Question #4: True or False?
A VB classic array is 0-based, meaning the first index is 0.
2 Advanced Level Questions
Question #5: Multiple Choice
In VB Classic object oriented programming, when an object instance is created from a class, VB calls a special parameter-less sub named what?
A method with the same name as the class.
Question #6: Multiple Choice
In VB Classic object oriented programming, when an object instance is destroyed, VB calls a special parameter-less sub named what?