VISUAL BASIC for APPLICATIONS TEST

Progress

1.

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

2.

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

3.

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

4.

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

5.

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?

6.

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

7.

32-bit Software/Applications can be installed on:

8.

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

9.

This control is used for titles/captions

10.

What will be the output of the following statement?

txtBox.Text = FormatCurrency(1234.567)

11.

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

12.

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

13.

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

14.

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

15.

The value returned by InputBox is a string

16.

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

17.

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

18.

What is the color of comments?

19.

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

20.

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

21.

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

22.

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?

23.

___________ indicates whether a particular condition is on or off

24.

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

25.

_______________ is the function to compare 2 strings.

26.

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

27.

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

28.

VBA Code run by

29.

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

30.

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

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