VISUAL BASIC for APPLICATIONS TEST

Progress

1.

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

2.

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

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.

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

5.

This control is used for titles/captions

6.

Basic Excel Object model as follows:

7.

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

8.

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?

9.

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

10.

VBA Code run by

11.

You have declared 4 variables

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

12.

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

13.

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

14.

The _______________ control used to insert image to the form

15.

Which character in VBA, indicates start of a comment

16.

Why Macro is used

17.

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

18.

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

19.

What data type can hold any type of data?

20.

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

21.

_______________ is the function to compare 2 strings.

22.

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

23.

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

24.

32-bit Software/Applications can be installed on:

25.

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

26.

___________ indicates whether a particular condition is on or off

27.

What will be the output of the following statement?

txtBox.Text = FormatCurrency(1234.567)

28.

Private Procedure can be called from anywhere in the project

29.

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

30.

An object is composed of :

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