VISUAL BASIC for APPLICATIONS TEST

Progress

1.

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

2.

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

3.

___________ indicates whether a particular condition is on or off

4.

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

5.

When the form is first referenced in any manner by program,the triggered event is….

6.

What data type can hold any type of data?

7.

Why Macro is used

8.

Which of the following statements is not true about user-defined functions?

9.

This operator reverses the truth value of an expression; making a true expression false and a false expression true.

10.

To close a form named Form1, you can use:

11.

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

12.

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

13.

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?

14.

What is the color of comments?

15.

The _______________ control used to insert image to the form

16.

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

17.

To load graphics on a control at runtime, we have to use the function….

18.

A Combo box is loaded in the From_Initialize event with:

Combo1.AddItem “Red”

Combo1.AddItem “Blue”

Combo1.AddItem “Green”

19.

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

20.

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

21.

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

22.

Which character in VBA, indicates start of a comment

23.

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

24.

What will be the output of the following statement?

txtBox.Text = FormatCurrency(1234.567)

25.

What will be the output of the following code?

Sub LoopExample()

Dim StartNumber As Integer

Dim EndNumber As Integer

Dim Answer As Integer

Answer = 5

EndNumber = 5

For StartNumber = 1 To EndNumber

Answer = Answer + EndNumber

Next StartNumber

MsgBox Answer

      End Sub

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.

A ____________ is a predefined VB procedure that you can call upon when needed.

28.

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

29.

Which of the following statement is not a looping statement in VBA?

30.

You have declared 4 variables

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

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