VISUAL BASIC for APPLICATIONS TEST

Progress

1.

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

2.

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

3.

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

4.

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

5.

___________ statement enables us to trap runtime error.

6.

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

7.

___________ indicates whether a particular condition is on or off

8.

VBA Code run by

9.

What data type can hold any type of data?

10.

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

11.

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

12.

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

13.

What will be the output of the following statement?

txtBox.Text = FormatCurrency(1234.567)

14.

You have declared 4 variables

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

15.

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

16.

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

17.

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

18.

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

19.

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

20.

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

21.

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

22.

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

23.

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

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


 

24.

Private Procedure can be called from anywhere in the project

25.

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

26.

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

27.

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

28.

_______________ is the function to compare 2 strings.

29.

The value returned by InputBox is a string

30.

A Combo box is loaded in the From_Initialize event with:

Combo1.AddItem “Red”

Combo1.AddItem “Blue”

Combo1.AddItem “Green”

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