VISUAL BASIC for APPLICATIONS TEST

Progress

1.

VBA Code run by

2.

This control is used for titles/captions

3.

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

4.

The _______________ control used to insert image to the form

5.

What is the color of comments?

6.

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

7.

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

8.

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

9.

The value returned by InputBox is a string

10.

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

11.

___________ indicates whether a particular condition is on or off

12.

A Combo box is loaded in the From_Initialize event with:

Combo1.AddItem “Red”

Combo1.AddItem “Blue”

Combo1.AddItem “Green”

13.

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

14.

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

15.

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

16.

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

17.

What will be the output of the following statement?

txtBox.Text = FormatCurrency(1234.567)

18.

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

19.

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

20.

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

21.

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

22.

32-bit Software/Applications can be installed on:

23.

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

24.

An object is composed of :

25.

___________ statement enables us to trap runtime error.

26.

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

27.

Basic Excel Object model as follows:

28.

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

29.

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

30.

Private Procedure can be called from anywhere in the project

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