VISUAL BASIC for APPLICATIONS TEST

Progress

1.

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

2.

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

3.

Why Macro is used

4.

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

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


 

5.

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

6.

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

7.

Private Procedure can be called from anywhere in the project

8.

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

9.

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

10.

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

11.

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

12.

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

13.

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

14.

___________ indicates whether a particular condition is on or off

15.

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

16.

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

17.

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

18.

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

19.

Which character in VBA, indicates start of a comment

20.

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

21.

What will be the output of the following statement?

txtBox.Text = FormatCurrency(1234.567)

22.

What data type can hold any type of data?

23.

What is the color of comments?

24.

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

25.

32-bit Software/Applications can be installed on:

26.

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?

27.

To force all variables is a VBA project to be declared, which must be stated in a module?

28.

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

29.

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

30.

_______________ is the function to compare 2 strings.

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