VISUAL BASIC for APPLICATIONS TEST

Progress

1.

___________ statement enables us to trap runtime error.

2.

An object is composed of :

3.

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

4.

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

5.

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

6.

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

7.

___________ indicates whether a particular condition is on or off

8.

Which windows displays a list of all forms and modules making up your application.

9.

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

10.

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?

11.

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

12.

The _______________ control used to insert image to the form

13.

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

14.

What will the value of ThisVar be after the following lines of code execute? 

Dim ThisVar As String 
Dim MyName = "John" 
ThisVar = MyName & "John"


 

15.

What is the color of comments?

16.

This control is used for titles/captions

17.

You have declared 4 variables

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

18.

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

19.

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

20.

When the block of code finishes the execution, what will the final value of X be?

Public Sub Example ()

Dim Y As Integer

Dim X As Integer

X = 0

Y = 10

For Count = Y To 1 Step -2

X = X + Y

If Y = (Y = 1) Then

Exit For

End If

Next Count

X = X / X

MsgBox X

End Sub

21.

The value returned by InputBox is a string

22.

Suppose you are designing an application for admissions to a college or university, and you need to decide how to provide the user with a selection of racial backgrounds. Which control would be most appropriate?

23.

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

24.

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

25.

VBA Code run by

26.

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

27.

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

28.

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

29.

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

30.

Basic Excel Object model as follows:

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