VISUAL BASIC for APPLICATIONS TEST

Progress

1.

An object is composed of :

2.

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

3.

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

4.

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

5.

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

6.

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

7.

_______________ is the function to compare 2 strings.

8.

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

9.

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

10.

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

11.

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

12.

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

13.

VBA Code run by

14.

A single Case statement can contain multiple values

15.

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

16.

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

17.

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

18.

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

19.

What is the color of comments?

20.

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

21.

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

22.

___________ statement enables us to trap runtime error.

23.

What do you need to select to set the developer mode?

24.

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

25.

What data type can hold any type of data?

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.

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

28.

Basic Excel Object model as follows:

29.

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

30.

Which character in VBA, indicates start of a comment

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