VISUAL BASIC for APPLICATIONS TEST

Progress

1.

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

2.

This operator reverses the truth value of an expression; making a true expression false and a false expression true.

3.

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

4.

A single Case statement can contain multiple values

5.

A Combo box is loaded in the From_Initialize event with:

Combo1.AddItem “Red”

Combo1.AddItem “Blue”

Combo1.AddItem “Green”

6.

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

7.

You have declared 4 variables

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

8.

___________ indicates whether a particular condition is on or off

9.

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

10.

The value returned by InputBox is a string

11.

___________ statement enables us to trap runtime error.

12.

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

13.

This control is used for titles/captions

14.

Why Macro is used

15.

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

16.

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

17.

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

18.

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?

19.

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?

20.

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

21.

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

22.

What data type can hold any type of data?

23.

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

24.

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

25.

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

26.

_______________ is the function to compare 2 strings.

27.

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

28.

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

29.

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

30.

Private Procedure can be called from anywhere in the project

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