VISUAL BASIC for APPLICATIONS TEST

Progress

1.

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

2.

What data type can hold any type of data?

3.

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

4.

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

5.

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

6.

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

7.

To close a form named Form1, you can use:

8.

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?

9.

What is the color of comments?

10.

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

11.

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

12.

What will be the output of the following statement?

txtBox.Text = FormatCurrency(1234.567)

13.

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

14.

___________ statement enables us to trap runtime error.

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.

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?

17.

Why Macro is used

18.

_______________ is the function to compare 2 strings.

19.

The _______________ control used to insert image to the form

20.

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

21.

This control is used for titles/captions

22.

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

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


 

23.

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

24.

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

25.

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

26.

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

27.

The value returned by InputBox is a string

28.

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

29.

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

30.

Basic Excel Object model as follows:

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