VISUAL BASIC for APPLICATIONS TEST

Progress

1.

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

2.

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

3.

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

4.

Suppose the variable myName is declared in a Dim statement in two different Sub procedures. Which statement is true?

5.

What is the color of comments?

6.

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

7.

The _______________ control used to insert image to the form

8.

A ______________ returns a value to the part of the program that called it.

9.

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

10.

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

11.

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

12.

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?

13.

___________ statement enables us to trap runtime error.

14.

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

15.

Given the following section of code, if a programmer called the GetAge() subroutine, what value would the message box display? 

Private Sub GetAge()

Dim UserAge As String

UserAge = 10

UserAge = InputBox("Enter your age", "Get Age")

Call ShowAge

End Sub

Private Sub ShowAge()

Dim UserAge As Integer

UserAge = 0

MsgBox (UserAge)

End Sub

16.

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

17.

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

18.

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?

19.

This control is used for titles/captions

20.

The value returned by InputBox is a string

21.

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

22.

Basic Excel Object model as follows:

23.

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

24.

Which character in VBA, indicates start of a comment

25.

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

26.

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

27.

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

28.

A Combo box is loaded in the From_Initialize event with:

Combo1.AddItem “Red”

Combo1.AddItem “Blue”

Combo1.AddItem “Green”

29.

A single Case statement can contain multiple values

30.

To close a form named Form1, you can use:

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