VISUAL BASIC for APPLICATIONS TEST

Progress

1.

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

2.

You have declared 4 variables

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

3.

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

4.

32-bit Software/Applications can be installed on:

5.

___________ statement enables us to trap runtime error.

6.

VBA Code run by

7.

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

8.

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

9.

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

10.

A single Case statement can contain multiple values

11.

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

12.

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

13.

Why Macro is used

14.

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

15.

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

16.

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

17.

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

18.

When the block of code finishes the execution, what will the final value of X be?

Public Sub Example ()

Dim Y As Integer

Dim X As Integer

X = 0

Y = 10

For Count = Y To 1 Step -2

X = X + Y

If Y = (Y = 1) Then

Exit For

End If

Next Count

X = X / X

MsgBox X

End Sub

19.

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

20.

Which windows displays a list of all forms and modules making up your application.

21.

Basic Excel Object model as follows:

22.

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

23.

_______________ is the function to compare 2 strings.

24.

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

25.

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

26.

What data type can hold any type of data?

27.

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?

28.

Private Procedure can be called from anywhere in the project

29.

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

30.

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

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