VISUAL BASIC for APPLICATIONS TEST

Progress

1.

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

2.

You have declared 4 variables

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

3.

Which character in VBA, indicates start of a comment

4.

Why Macro is used

5.

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

6.

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

7.

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

8.

To close a form named Form1, you can use:

9.

VBA Code run by

10.

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

11.

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

12.

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

13.

Which is the conversion for the following If...Then...ElseIf statement to a Select...Case statement?

If intValue > 0 And intValue <= 9 Then

discount = .10

Else If intValue >9 And intValue <=20

discount = .15

Else

discount = .20

14.

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

15.

What data type can hold any type of data?

16.

___________ statement enables us to trap runtime error.

17.

What is the color of comments?

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.

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

20.

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

21.

A single Case statement can contain multiple values

22.

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

23.

Private Procedure can be called from anywhere in the project

24.

_______________ is the function to compare 2 strings.

25.

The value returned by InputBox is a string

26.

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

27.

An object is composed of :

28.

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

29.

What will be the output of the following statement?

txtBox.Text = FormatCurrency(1234.567)

30.

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

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