VISUAL BASIC for APPLICATIONS TEST

Progress

1.

A single Case statement can contain multiple values

2.

___________ statement enables us to trap runtime error.

3.

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

4.

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

5.

To close a form named Form1, you can use:

6.

A Combo box is loaded in the From_Initialize event with:

Combo1.AddItem “Red”

Combo1.AddItem “Blue”

Combo1.AddItem “Green”

7.

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

8.

Why Macro is used

9.

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

10.

_______________ is the function to compare 2 strings.

11.

VBA Code run by

12.

Private Procedure can be called from anywhere in the project

13.

What will be the output of the following statement?

txtBox.Text = FormatCurrency(1234.567)

14.

___________ indicates whether a particular condition is on or off

15.

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

16.

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

17.

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

18.

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

19.

The value returned by InputBox is a string

20.

Which is the conversion for the following If...Then...ElseIf statement to a Select...Case statement?

If intValue > 0 And intValue <= 9 Then

discount = .10

Else If intValue >9 And intValue <=20

discount = .15

Else

discount = .20

21.

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?

22.

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

23.

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

24.

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

25.

An object is composed of :

26.

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

27.

Basic Excel Object model as follows:

28.

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

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


 

29.

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

30.

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

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