VBA Test

Exam Type: VBA MCQ Skill Test
Questions Type: Multiple Choice Questions
Total Questions: 31
Time Limit: 30 Minutes
Last Update June, 2025

Pass VBA Exam

75%
Total time

1 minute 2 seconds

Total time

1 correct answers

Total time

6 incorrect answers

Total time

6 not attempted

Start

VBA Quiz

Question 1 of 31
30:00

There are two references that must be selected in the Visual Basic Editor in order for any Visual Basic code to run in Excel. What are these two references?

What unconditionally pauses the execution of VBA code?

Which directive must be set in order to specify the default member of a class?

How do you indicate that a line of VBA code is a comment?

How does the Close statement differ from the Quit statement?

To use VBA code to maintain a different VBA project, you can make use of VBA's extensibility. What is needed to enable extensibility?

Which variable name is valid in VBA?

The variable MyVar is declared in a standard module using the Private keyword. Where can a VBA project use that instance of MyVar?

A VBA project must declare four classes. How many class modules are needed?

What object is needed to put a userform module in a VBA project?

How should you declare an array that will later be redimensioned?

Which statement prints the value of the variable X in the Immediate window?

Which variable type takes the greatest amount of time for VBA to evaluate?

Which part of the VBE can help you explore VBA syntax?

Which property of controls on a user form sets the order in which they get the focus?

What is the standard term for a variable or value that is passed from one subroutine or function to another?

When you define a new class of object, where do you assign a name to it?

Which statement is true?

A declaration has scope, which has three levels. What are they?

At which level can you declare a variable in this way: Private TopSecret As String?

How do you declare a constant and establish its value?

Which statement should precede a subroutine's error handler?

What is used in the Immediate window to display the current value of the variable CountValues?

What is the principal difference between a class and an object?

When used with an array named MyArray, what is the preerred way to set beginning and ending values of a loop control variable?

How does a class module indicate that it uses a particular interface?

What is needed for the contents of Module1 to be availble to other modules in a VBA project, but not to any other VBA project?

SubA passes MyVar to SubB. How can you ensure that MyVar has its original value when control returns to SubA?

Which action will cause your project to reset its variables?

Which keyboard shortcut causes VBE to locate the declaration of a procedure?

You have several variables to display on a user form, and there are too many variables to display at once. Which control best enables the user to see all the variables?

VBA Test Explained

© 2025 Skill Test Answer. All Rights Reserved