VISUAL BASIC for APPLICATIONS TEST

Progress

1.

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

2.

Basic Excel Object model as follows:

3.

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

4.

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

5.

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

6.

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

7.

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

8.

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

9.

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

10.

This control is used for titles/captions

11.

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

12.

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

13.

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

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


 

14.

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

15.

___________ indicates whether a particular condition is on or off

16.

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

17.

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

18.

The value returned by InputBox is a string

19.

What data type can hold any type of data?

20.

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

21.

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

22.

The _______________ control used to insert image to the form

23.

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

24.

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

25.

An object is composed of :

26.

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

27.

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

28.

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

29.

A Combo box is loaded in the From_Initialize event with:

Combo1.AddItem “Red”

Combo1.AddItem “Blue”

Combo1.AddItem “Green”

30.

Private Procedure can be called from anywhere in the project

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