VISUAL BASIC for APPLICATIONS TEST

Progress

1.

Why Macro is used

2.

Which Case clause will be true whenever the value of the selector in a Select Case block is between 1 and 5 or is 8?

3.

An object is composed of :

4.

A Combo box is loaded in the From_Initialize event with:

Combo1.AddItem “Red”

Combo1.AddItem “Blue”

Combo1.AddItem “Green”

5.

To force all variables is a VBA project to be declared, which must be stated in a module?

6.

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

7.

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

8.

The value returned by InputBox is a string

9.

___________ statement enables us to trap runtime error.

10.

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

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


 

11.

___________ function is used to return a copy of a string without leading spaces.

12.

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

13.

Which property for a textbox allows the textbox to accept more than 1 line of data entry?

14.

___________ indicates whether a particular condition is on or off

15.

Basic Excel Object model as follows:

16.

What data type can hold any type of data?

17.

Which character in VBA, indicates start of a comment

18.

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

19.

The _______________ statement first executes the statements and then tests the condition after each execution

20.

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

21.

What is the color of comments?

22.

Do…Loop... Until code block is always executed once.

23.

Which of the following is default in VBA for data passing?

24.

Which of the following arithmetic operations has the highest level of precedence?

25.

What will be the output of the following statement?

txtBox.Text = FormatCurrency(1234.567)

26.

This control is used for titles/captions

27.

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

28.

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

29.

You have declared 4 variables

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

30.

Study the screenshot below. What is the appropriate action to take when a workbook displays this message (Security Warning Macros have been disabled)?

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