VISUAL BASIC for APPLICATIONS TEST

Progress

1.

You have declared 4 variables

 Which of these variable declarations is not a valid VBA statement?

2.

Private Procedure can be called from anywhere in the project

3.

Why Macro is used

4.

___________ statement enables us to trap runtime error.

5.

What is the color of comments?

6.

The _______________ control used to insert image to the form

7.

Which property determines whether a control is displayed to the user?

8.

An object is composed of :

9.

Suppose you need to develop an online poll of user responses to a question. For convenience, you would like the most popular options to be displayed in a list for the user to quickly select an option and submit their answer. However, you would also like them to be able to use the same control to allow them to specify an write-in value of their own. Which control is most appropriate for this application?

10.

To save a VBA project with an Excel workbook, the workbook must be saved as what type of file?

11.

32-bit Software/Applications can be installed on:

12.

What data type can hold any type of data?

13.

Which part of VBA window, refers to area where code is written.

14.

___________ control is used to provide an identifiable grouping for other controls

15.

To break up long lines of code, the line continuation character in VBA is

16.

A Combo box is loaded in the From_Initialize event with:

Combo1.AddItem “Red”

Combo1.AddItem “Blue”

Combo1.AddItem “Green”

17.

A ______________ returns a value to the part of the program that called it.

18.

What will the value of ThisVar be after the following lines of code execute? 

Dim ThisVar As String 
Dim MyName = "John" 
ThisVar = MyName & "John"


 

19.

Given that x = 7, y = 2, and z = 4, the following If block will display “TRUE”. If (x > y) Or (y > z) Then txtBox.Text = “TRUE” End If

20.

An array that maintains multiple sets of information referenced by more than one index is called ________________

21.

Suppose you are designing an application for admissions to a college or university, and you need to decide how to provide the user with a selection of racial backgrounds. Which control would be most appropriate?

22.

Which event, runs macros automatically in excel VBA while opening Workbook

23.

The Properties window plays an important role in the development of Visual Basic Applications. It is mainly used

24.

Which windows displays a list of all forms and modules making up your application.

25.

_______________ is the function to compare 2 strings.

26.

Suppose the variable myName is declared in a Dim statement in two different Sub procedures. Which statement is true?

27.

What do you need to select to set the developer mode?

28.

What value is stored in a variable of type single if we try to assign the variable to the value 634?

29.

A single Case statement can contain multiple values

30.

To close a form named Form1, you can use:

Assessment complete! Thank you for you time.
We are redirecting you to the result page, Please click on 'SUBMIT'