VISUAL BASIC for APPLICATIONS TEST

Progress

1.

___________ statement enables us to trap runtime error.

2.

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

3.

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

4.

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

5.

An object is composed of :

6.

Private Procedure can be called from anywhere in the project

7.

Why Macro is used

8.

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

9.

What data type can hold any type of data?

10.

You have declared 4 variables

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

11.

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

12.

What is the color of comments?

13.

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

14.

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

15.

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

16.

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

17.

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

18.

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

19.

___________ indicates whether a particular condition is on or off

20.

The _______________ control used to insert image to the form

21.

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

22.

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

23.

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

24.

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

25.

The value returned by InputBox is a string

26.

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

27.

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

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


 

28.

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

29.

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?

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'