VISUAL BASIC for APPLICATIONS TEST

Progress

1.

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

2.

___________ statement enables us to trap runtime error.

3.

_______________ is the function to compare 2 strings.

4.

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

5.

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

6.

The value returned by InputBox is a string

7.

You have declared 4 variables

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

8.

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?

9.

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

10.

To close a form named Form1, you can use:

11.

Basic Excel Object model as follows:

12.

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

13.

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

14.

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

15.

What is the color of comments?

16.

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

17.

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

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.

___________ indicates whether a particular condition is on or off

20.

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

21.

An object is composed of :

22.

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

23.

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

24.

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

25.

A single Case statement can contain multiple values

26.

A Combo box is loaded in the From_Initialize event with:

Combo1.AddItem “Red”

Combo1.AddItem “Blue”

Combo1.AddItem “Green”

27.

Private Procedure can be called from anywhere in the project

28.

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

29.

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

30.

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

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