Please enter your details here.
A loop that does not have the way of stopping is called a ___________
Study the screenshot below. What is the appropriate action to take when a workbook displays this message (Security Warning Macros have been disabled)?
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
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
___________ statement enables us to trap runtime error.
Which of the following arithmetic operations has the highest level of precedence?
___________ indicates whether a particular condition is on or off
VBA Code run by
What data type can hold any type of data?
Which part of VBA window, refers to area where code is written.
When the form is first referenced in any manner by program,the triggered event is….
To break up long lines of code, the line continuation character in VBA is
What will be the output of the following statement?
txtBox.Text = FormatCurrency(1234.567)
You have declared 4 variables
Which of these variable declarations is not a valid VBA statement?
___________ function is used to return a copy of a string without leading spaces.
What do you need to select to set the developer mode?
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
Private Sub ShowAge()
Dim UserAge As Integer
UserAge = 0
MsgBox (UserAge)
There can be different data types of an element in an array
The Properties window plays an important role in the development of Visual Basic Applications. It is mainly used
An array that maintains multiple sets of information referenced by more than one index is called ________________
To save a VBA project with an Excel workbook, the workbook must be saved as what type of file?
Do…Loop... Until code block is always executed once.
What will the value of ThisVar be after the following lines of code execute?
Dim ThisVar As String Dim MyName = "John" ThisVar = MyName & "John"
Private Procedure can be called from anywhere in the project
Which windows displays a list of all forms and modules making up your application.
Which of the following is default in VBA for data passing?
__________ are the attributes of an object that control the object's appearance and behavior.
_______________ is the function to compare 2 strings.
The value returned by InputBox is a string
A Combo box is loaded in the From_Initialize event with:
Combo1.AddItem “Red”
Combo1.AddItem “Blue”
Combo1.AddItem “Green”