VISUAL BASIC for APPLICATIONS TEST

Progress

1.

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

2.

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

3.

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

4.

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

5.

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

6.

The _______________ control used to insert image to the form

7.

Basic Excel Object model as follows:

8.

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

9.

Why Macro is used

10.

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

11.

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

12.

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

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


 

13.

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

14.

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

15.

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?

16.

What data type can hold any type of data?

17.

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

18.

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

19.

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

20.

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

21.

What is the color of comments?

22.

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?

23.

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

24.

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

25.

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

26.

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

27.

Private Procedure can be called from anywhere in the project

28.

A Combo box is loaded in the From_Initialize event with:

Combo1.AddItem “Red”

Combo1.AddItem “Blue”

Combo1.AddItem “Green”

29.

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

30.

___________ statement enables us to trap runtime error.

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