VISUAL BASIC for APPLICATIONS TEST

Progress

1.

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

2.

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

3.

Private Procedure can be called from anywhere in the project

4.

This control is used for titles/captions

5.

Basic Excel Object model as follows:

6.

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

7.

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

8.

The value returned by InputBox is a string

9.

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

10.

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

11.

What will be the output of the following statement?

txtBox.Text = FormatCurrency(1234.567)

12.

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

13.

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

14.

___________ indicates whether a particular condition is on or off

15.

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

16.

Which character in VBA, indicates start of a comment

17.

To close a form named Form1, you can use:

18.

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

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


 

19.

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

20.

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

21.

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

22.

What data type can hold any type of data?

23.

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

24.

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

25.

An object is composed of :

26.

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

27.

The _______________ control used to insert image to the form

28.

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?

29.

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

30.

___________ statement enables us to trap runtime error.

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