VISUAL BASIC for APPLICATIONS TEST

Progress

1.

This control is used for titles/captions

2.

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

3.

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

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


 

4.

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?

5.

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

6.

___________ function is used to return a copy of a string without leading spaces.

7.

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

8.

Private Procedure can be called from anywhere in the project

9.

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

10.

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

11.

Which character in VBA, indicates start of a comment

12.

_______________ is the function to compare 2 strings.

13.

Basic Excel Object model as follows:

14.

What data type can hold any type of data?

15.

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

16.

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

17.

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

18.

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

19.

An object is composed of :

20.

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

21.

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

22.

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?

23.

To close a form named Form1, you can use:

24.

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

25.

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

26.

___________ indicates whether a particular condition is on or off

27.

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

28.

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

29.

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

30.

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

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