VISUAL BASIC for APPLICATIONS TEST

Progress

1.

An object is composed of :

2.

Private Procedure can be called from anywhere in the project

3.

The value returned by InputBox is a string

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.

Which event, runs macros automatically in excel VBA while opening Workbook

6.

Why Macro is used

7.

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

8.

What data type can hold any type of data?

9.

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

10.

___________ statement enables us to trap runtime error.

11.

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

12.

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

13.

What is the color of comments?

14.

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?

15.

The _______________ control used to insert image to the form

16.

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

17.

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

18.

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

19.

Which character in VBA, indicates start of a comment

20.

You have declared 4 variables

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

21.

This control is used for titles/captions

22.

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

23.

___________ indicates whether a particular condition is on or off

24.

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

25.

A Combo box is loaded in the From_Initialize event with:

Combo1.AddItem “Red”

Combo1.AddItem “Blue”

Combo1.AddItem “Green”

26.

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?

27.

A single Case statement can contain multiple values

28.

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

29.

What property of controls tells the order they receive the focus when the tab key is pressed during run time? it.

30.

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

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