VISUAL BASIC for APPLICATIONS TEST

Progress

1.

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

2.

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?

3.

___________ statement enables us to trap runtime error.

4.

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

5.

_______________ is the function to compare 2 strings.

6.

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

7.

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

8.

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

9.

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

10.

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

11.

A Combo box is loaded in the From_Initialize event with:

Combo1.AddItem “Red”

Combo1.AddItem “Blue”

Combo1.AddItem “Green”

12.

VBA Code run by

13.

Basic Excel Object model as follows:

14.

The value returned by InputBox is a string

15.

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

16.

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

17.

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

18.

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

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


 

19.

A single Case statement can contain multiple values

20.

The _______________ control used to insert image to the form

21.

Given the following section of code, if a programmer called the GetAge() subroutine, what value would the message box display? 

Private Sub GetAge()

Dim UserAge As String

UserAge = 10

UserAge = InputBox("Enter your age", "Get Age")

Call ShowAge

End Sub

Private Sub ShowAge()

Dim UserAge As Integer

UserAge = 0

MsgBox (UserAge)

End Sub

22.

This control is used for titles/captions

23.

___________ indicates whether a particular condition is on or off

24.

What value is stored in a variable of type single if we try to assign the variable to the value 634?

25.

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

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 statement is not a looping statement in VBA?

28.

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?

29.

An object is composed of :

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'