VISUAL BASIC for APPLICATIONS TEST

Progress

1.

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

2.

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

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


 

3.

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?

4.

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

5.

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

6.

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

7.

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

8.

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

9.

32-bit Software/Applications can be installed on:

10.

Why Macro is used

11.

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

12.

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

13.

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

14.

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

15.

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

16.

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

17.

What is the color of comments?

18.

An object is composed of :

19.

A single Case statement can contain multiple values

20.

You have declared 4 variables

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

21.

___________ indicates whether a particular condition is on or off

22.

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

23.

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

24.

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?

25.

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

26.

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

27.

A Combo box is loaded in the From_Initialize event with:

Combo1.AddItem “Red”

Combo1.AddItem “Blue”

Combo1.AddItem “Green”

28.

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

29.

The value returned by InputBox is a string

30.

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

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