VISUAL BASIC for APPLICATIONS TEST

Progress

1.

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

2.

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

3.

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

4.

Why Macro is used

5.

_______________ is the function to compare 2 strings.

6.

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

7.

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

8.

You have declared 4 variables

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

9.

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

10.

This control is used for titles/captions

11.

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

12.

A Combo box is loaded in the From_Initialize event with:

Combo1.AddItem “Red”

Combo1.AddItem “Blue”

Combo1.AddItem “Green”

13.

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

14.

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

15.

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

16.

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

17.

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

18.

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

19.

The _______________ control used to insert image to the form

20.

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

21.

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

22.

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

23.

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

24.

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

25.

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

26.

What is the color of comments?

27.

___________ statement enables us to trap runtime error.

28.

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

29.

An object is composed of :

30.

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

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