VISUAL BASIC for APPLICATIONS TEST

Progress

1.

__________ are the attributes of an object that control the object's appearance and behavior.

2.

___________ statement enables us to trap runtime error.

3.

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

4.

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

5.

Why Macro is used

6.

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

7.

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

8.

What property of controls tells the order they receive the focus when the tab key is pressed during run time? it.

9.

This control is used for titles/captions

10.

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

11.

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

12.

Which character in VBA, indicates start of a comment

13.

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

14.

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

15.

What will be the output of the following statement?

txtBox.Text = FormatCurrency(1234.567)

16.

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

17.

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

18.

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

19.

There can be different data types of an element in an array

20.

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

21.

You have declared 4 variables

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

22.

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

23.

A loop that does not have the way of stopping is called a ___________

24.

What is the color of comments?

25.

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

26.

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

27.

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

28.

A single Case statement can contain multiple values

29.

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

30.

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

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