VISUAL BASIC for APPLICATIONS TEST

Progress

1.

Which property determines whether a control is displayed to the user?

2.

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

3.

What data type can hold any type of data?

4.

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

5.

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

6.

The Properties window plays an important role in the development of Visual Basic Applications. It is mainly used

7.

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

8.

Basic Excel Object model as follows:

9.

Private Procedure can be called from anywhere in the project

10.

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

11.

An object is composed of :

12.

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

13.

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

14.

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

15.

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?

16.

What is the color of comments?

17.

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

18.

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

19.

___________ statement enables us to trap runtime error.

20.

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

21.

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

22.

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

23.

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

24.

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

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


 

25.

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

26.

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

27.

___________ indicates whether a particular condition is on or off

28.

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

29.

_______________ is the function to compare 2 strings.

30.

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

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