VISUAL BASIC for APPLICATIONS TEST

Progress

1.

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

2.

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

3.

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

4.

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

5.

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

6.

_______________ is the function to compare 2 strings.

7.

Private Procedure can be called from anywhere in the project

8.

Basic Excel Object model as follows:

9.

A single Case statement can contain multiple values

10.

A Combo box is loaded in the From_Initialize event with:

Combo1.AddItem “Red”

Combo1.AddItem “Blue”

Combo1.AddItem “Green”

11.

Suppose the variable myName is declared in a Dim statement in two different Sub procedures. Which statement is true?

12.

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

13.

Which character in VBA, indicates start of a comment

14.

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

15.

VBA Code run by

16.

This control is used for titles/captions

17.

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

18.

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

19.

___________ indicates whether a particular condition is on or off

20.

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?

21.

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

22.

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?

23.

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

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


 

24.

What data type can hold any type of data?

25.

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

26.

Suppose you need to develop an online poll of user responses to a question. For convenience, you would like the most popular options to be displayed in a list for the user to quickly select an option and submit their answer. However, you would also like them to be able to use the same control to allow them to specify an write-in value of their own. Which control is most appropriate for this application?

27.

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

28.

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

29.

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

30.

You have declared 4 variables

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

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