VISUAL BASIC for APPLICATIONS TEST

Progress

1.

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

2.

This control is used for titles/captions

3.

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

4.

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

5.

The _______________ control used to insert image to the form

6.

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

7.

Private Procedure can be called from anywhere in the project

8.

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

9.

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

10.

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

11.

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

12.

Which character in VBA, indicates start of a comment

13.

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

14.

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

15.

___________ indicates whether a particular condition is on or off

16.

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

17.

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

18.

To close a form named Form1, you can use:

19.

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

20.

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?

21.

Why Macro is used

22.

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

23.

A Combo box is loaded in the From_Initialize event with:

Combo1.AddItem “Red”

Combo1.AddItem “Blue”

Combo1.AddItem “Green”

24.

_______________ is the function to compare 2 strings.

25.

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?

26.

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

27.

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

28.

You have declared 4 variables

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

29.

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

30.

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

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