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.

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

3.

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

4.

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

5.

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

6.

What data type can hold any type of data?

7.

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

8.

The value returned by InputBox is a string

9.

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

10.

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

11.

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

12.

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

13.

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

14.

This control is used for titles/captions

15.

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

16.

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

17.

___________ statement enables us to trap runtime error.

18.

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

19.

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

20.

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

21.

An object is composed of :

22.

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

23.

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

24.

A Combo box is loaded in the From_Initialize event with:

Combo1.AddItem “Red”

Combo1.AddItem “Blue”

Combo1.AddItem “Green”

25.

The _______________ control used to insert image to the form

26.

32-bit Software/Applications can be installed on:

27.

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

28.

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

29.

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

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


 

30.

_______________ is the function to compare 2 strings.

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