VISUAL BASIC for APPLICATIONS TEST

Progress

1.

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

2.

_______________ is the function to compare 2 strings.

3.

Private Procedure can be called from anywhere in the project

4.

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

5.

32-bit Software/Applications can be installed on:

6.

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

7.

Basic Excel Object model as follows:

8.

The _______________ control used to insert image to the form

9.

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

10.

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

11.

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

12.

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

13.

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

14.

What is the color of comments?

15.

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

16.

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

17.

VBA Code run by

18.

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

19.

What will be the output of the following statement?

txtBox.Text = FormatCurrency(1234.567)

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.

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

22.

What data type can hold any type of data?

23.

___________ indicates whether a particular condition is on or off

24.

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

25.

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?

26.

___________ statement enables us to trap runtime error.

27.

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

28.

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

29.

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

30.

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

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