VISUAL BASIC for APPLICATIONS TEST

Progress

1.

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

2.

_______________ is the function to compare 2 strings.

3.

___________ statement enables us to trap runtime error.

4.

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?

5.

A Combo box is loaded in the From_Initialize event with:

Combo1.AddItem “Red”

Combo1.AddItem “Blue”

Combo1.AddItem “Green”

6.

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

7.

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

8.

What will be the output of the following statement?

txtBox.Text = FormatCurrency(1234.567)

9.

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

10.

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

11.

To load graphics on a control at runtime, we have to use the function….

12.

32-bit Software/Applications can be installed on:

13.

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

14.

Private Procedure can be called from anywhere in the project

15.

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

16.

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

17.

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

18.

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

19.

What is the color of comments?

20.

An object is composed of :

21.

When the block of code finishes the execution, what will the final value of X be?

Public Sub Example ()

Dim Y As Integer

Dim X As Integer

X = 0

Y = 10

For Count = Y To 1 Step -2

X = X + Y

If Y = (Y = 1) Then

Exit For

End If

Next Count

X = X / X

MsgBox X

End Sub

22.

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

23.

You have declared 4 variables

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

24.

___________ indicates whether a particular condition is on or off

25.

Basic Excel Object model as follows:

26.

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

27.

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

28.

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

29.

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

30.

VBA Code run by

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