VISUAL BASIC for APPLICATIONS TEST

Progress

1.

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

2.

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

3.

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

4.

Basic Excel Object model as follows:

5.

A Combo box is loaded in the From_Initialize event with:

Combo1.AddItem “Red”

Combo1.AddItem “Blue”

Combo1.AddItem “Green”

6.

This control is used for titles/captions

7.

The _______________ control used to insert image to the form

8.

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

9.

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

10.

___________ statement enables us to trap runtime error.

11.

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

12.

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?

13.

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

14.

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

15.

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

16.

What data type can hold any type of data?

17.

VBA Code run by

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.

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

20.

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

21.

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

22.

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

23.

___________ indicates whether a particular condition is on or off

24.

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

25.

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

26.

What is the color of comments?

27.

The value returned by InputBox is a string

28.

What will be the output of the following statement?

txtBox.Text = FormatCurrency(1234.567)

29.

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

30.

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

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