Visual Basic Application Test

Topics covered

Date and Time, Workbook, Worksheets, Range and cells, Objects and Variables, Array Creation and Management, Conditional Logic, Environment and System, Functions and Classes

  • MAQ (Multiple Answer Question)
  • MCQ (Multiple Choice Question)
  • Descriptive Question
  • White Board Simulator
  • Coding Simulator
  • Audio Question
  • Video Question
  • Case Study Question

VBA Test is useful to effectively assess the skills of candidates before an interview. VBA (Visual Basic for Applications) is an event-driven programming language from Microsoft that is predominantly used with Microsoft office applications such as MSExcel, MS-Word, and MS-Access. It is designed to check the development and programming skills. The test is created and validated by Subject Matter Experts. 

The VBA Test contains questions on following topics:  

  • Date and Time

  • Workbook, Worksheets, Range and cells

  • Objects and Variables

  • Array Creation and Management

  • Conditional Logic

  • Environment and System

  • Functions and Classes

This pre-employment test is useful for hiring:
  • VBA Developer
  • Software Developer - VBA

Test details:

VBA Test enables employers and recruiters to evaluate skills and job readiness of candidates. For this reason, the emphasis is laid upon evaluating the knowledge of applied skills gained through real work experience, rather than theoretical knowledge.

Test Details: 30 minutes 

20 Application Questions

The combination of Application and Theory questions helps to evaluate Technical as well as practical Skills of Candidates.

Visual Basic Application Test (VBA Test)

Question #1 of 3

To connect Excel with a 2010 access database, we used this type of connection string:

    • Provider=Microsoft.SQLOLEDB;DataSource=C:\Data.accdb;User Id=admin;Password=

    • Provider=Microsoft.Jet.OLEDB.4.0;DataSource=C:\Data.accdb;User Id=admin;Password=

    • Provider=Microsoft.Microsoft.ACE.OLEDB.12.0;DataSource=C:\Data.accdb;User Id=admin;Password=

    • Provider=SQLOLEDB;Data Source=;Initial Catalog=;User ID=;Password=;Trusted_Connection="

    • Provider=SQLOLEDB;Data Source=; Initial Catalog=;Integrated Security=SSPI"

Question #2 of 3

How to delete a file without raising errors in case the file doesn’t exist?

    • With CreateObject("Scripting.FileSystemObject")
      if .FileExists(sFile) then .Delete FullPathName
      End With

    • CreateObject("Scripting.FileSystemObject").Delete FullPathName

    • On Error GoTo 0: Kill FullPathName

    • If Dir(FullPathName) <> "" Then VBA.KillFullPathName

    • On error resume next
      With CreateObject("Scripting.FileSystemObject")
      if .FileExists(sFile) then .Delete FullPathName
      End With

Question #3 of 3

After Running main, what would be displayed in the immediate window?

Private a
Sub main()
    Dim b
    a = 1: b = 1
helper a, b
Debug.Print a; b
End Sub
Sub helper(ByVal a, ByRef b)
    a = 2: b = 2
End Sub

    • 2 1

    • 2 2

    • 1 1

    • 1 2

    • 2; 2

    • 1; 1

Candidate Name
Assessment Name
Invited by
Assessment Date
IP Address

24.00 Out of 40.00
23 Minutes

Java EE




Oracle PL/SQL


Analytical Thinking


Note:If score<= 30% then its a Weakness. If score >=70% then its a Strength.


Java EE, Oracle PL/SQL, Analytical Thinking




It was a good test for me, the questions were on the latest technology of java on which I am currently working. It was a great experience. Thank you!

Related Tests

Take your first step to hire job fit candidate


How Interview Mocha works?

  • Add this test to your account

  • Invite candidates to take this test online

  • Candidates take the test

  • View and share actionable test reports

Trusted by leading brands worldwide

  • altran
  • credit suisse
  • sephora
  • nielsen
  • capgemini
  • akamai
Why hiring managers and recruiters across the globe love Interview Mocha
  • Largest number of ready pre-employment skill tests
  • Relevant test compositions and quality questions designed by Subject Matter Experts (IM SME)
  • Fastest custom test creation DNA
  • World’s most super easy skill assessment platform
  • High level of platform security implementation
  • Friendly and quick customer support
  • Ready to listen and implement your feedback, we are all ears
  • Affordable pricing

Take your first step to hire job fit candidate