VISUAL BASIC for APPLICATIONS TEST

Progress

1.

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

2.

A single Case statement can contain multiple values

3.

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

4.

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

5.

Basic Excel Object model as follows:

6.

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

7.

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

8.

_______________ is the function to compare 2 strings.

9.

What data type can hold any type of data?

10.

___________ indicates whether a particular condition is on or off

11.

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

12.

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

13.

What is the color of comments?

14.

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

15.

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

16.

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

17.

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?

18.

The _______________ control used to insert image to the form

19.

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

20.

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

21.

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

22.

___________ statement enables us to trap runtime error.

23.

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

24.

Study the screenshot below. What is the appropriate action to take when a workbook displays this message (Security Warning Macros have been disabled)?

25.

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

26.

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

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.

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

29.

32-bit Software/Applications can be installed on:

30.

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

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