VISUAL BASIC for APPLICATIONS TEST

Progress

1.

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

2.

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

3.

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

4.

___________ indicates whether a particular condition is on or off

5.

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

6.

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

7.

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

8.

The _______________ control used to insert image to the form

9.

Why Macro is used

10.

A Combo box is loaded in the From_Initialize event with:

Combo1.AddItem “Red”

Combo1.AddItem “Blue”

Combo1.AddItem “Green”

11.

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

12.

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

13.

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

14.

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

15.

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

16.

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

17.

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

18.

To close a form named Form1, you can use:

19.

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

20.

This control is used for titles/captions

21.

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

22.

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

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.

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

25.

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

26.

Which character in VBA, indicates start of a comment

27.

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

28.

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

29.

What data type can hold any type of data?

30.

VBA Code run by

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