VISUAL BASIC for APPLICATIONS TEST

Progress

1.

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?

2.

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

3.

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

4.

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

5.

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

6.

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

7.

Which character in VBA, indicates start of a comment

8.

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

9.

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

10.

What data type can hold any type of data?

11.

The value returned by InputBox is a string

12.

VBA Code run by

13.

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

14.

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

15.

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

16.

Why Macro is used

17.

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

18.

A single Case statement can contain multiple values

19.

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

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


 

20.

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

21.

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

22.

What is the color of comments?

23.

___________ indicates whether a particular condition is on or off

24.

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

25.

You have declared 4 variables

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

26.

The _______________ control used to insert image to the form

27.

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

28.

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

29.

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

30.

This control is used for titles/captions

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