VISUAL BASIC for APPLICATIONS TEST

Progress

1.

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

2.

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

3.

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

4.

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

5.

What is the color of comments?

6.

This control is used for titles/captions

7.

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

8.

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

9.

_______________ is the function to compare 2 strings.

10.

The _______________ control used to insert image to the form

11.

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

12.

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

13.

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

14.

Private Procedure can be called from anywhere in the project

15.

An object is composed of :

16.

The value returned by InputBox is a string

17.

Which Case clause will be true whenever the value of the selector in a Select Case block is between 1 and 5 or is 8?

18.

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

19.

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

20.

What will be the output of the following statement?

txtBox.Text = FormatCurrency(1234.567)

21.

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

22.

To close a form named Form1, you can use:

23.

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

24.

A Combo box is loaded in the From_Initialize event with:

Combo1.AddItem “Red”

Combo1.AddItem “Blue”

Combo1.AddItem “Green”

25.

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

26.

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

27.

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

28.

Why Macro is used

29.

___________ indicates whether a particular condition is on or off

30.

To save a VBA project with an Excel workbook, the workbook must be saved as what type of file?

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