VISUAL BASIC for APPLICATIONS TEST

Progress

1.

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

2.

32-bit Software/Applications can be installed on:

3.

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

4.

You have declared 4 variables

 Which of these variable declarations is not a valid VBA statement?

5.

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

6.

This control is used for titles/captions

7.

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

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.

___________ statement enables us to trap runtime error.

10.

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

11.

What will be the output of the following statement?

txtBox.Text = FormatCurrency(1234.567)

12.

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

13.

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

14.

To close a form named Form1, you can use:

15.

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

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


 

16.

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

17.

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

18.

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

19.

Why Macro is used

20.

What is the color of comments?

21.

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

22.

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

23.

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

24.

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

25.

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?

26.

A single Case statement can contain multiple values

27.

An object is composed of :

28.

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

29.

Which character in VBA, indicates start of a comment

30.

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?

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