VISUAL BASIC for APPLICATIONS TEST

Progress

1.

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

2.

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

3.

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

4.

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

5.

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

6.

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

7.

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

8.

VBA Code run by

9.

Which character in VBA, indicates start of a comment

10.

32-bit Software/Applications can be installed on:

11.

What will be the output of the following statement?

txtBox.Text = FormatCurrency(1234.567)

12.

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

13.

Why Macro is used

14.

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

15.

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

16.

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

17.

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

18.

This control is used for titles/captions

19.

To close a form named Form1, you can use:

20.

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

21.

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

22.

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

23.

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

24.

A single Case statement can contain multiple values

25.

What data type can hold any type of data?

26.

What is the color of comments?

27.

Private Procedure can be called from anywhere in the project

28.

The value returned by InputBox is a string

29.

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?

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'