VISUAL BASIC for APPLICATIONS TEST

Progress

1.

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

2.

This control is used for titles/captions

3.

32-bit Software/Applications can be installed on:

4.

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

5.

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

6.

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

7.

What is the color of comments?

8.

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

9.

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

10.

To close a form named Form1, you can use:

11.

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

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.

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

14.

The _______________ statement first executes the statements and then tests the condition after each execution

15.

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?

16.

Private Procedure can be called from anywhere in the project

17.

A single Case statement can contain multiple values

18.

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

19.

This operator reverses the truth value of an expression; making a true expression false and a false expression true.

20.

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

21.

Basic Excel Object model as follows:

22.

VBA Code run by

23.

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

24.

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

25.

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

26.

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

27.

_______________ is the function to compare 2 strings.

28.

Why Macro is used

29.

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

30.

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

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