Please enter your details here.
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?
The _______________ statement first executes the statements and then tests the condition after each execution
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)
Which windows displays a list of all forms and modules making up your application.
Do…Loop... Until code block is always executed once.
A loop that does not have the way of stopping is called a ___________
Which character in VBA, indicates start of a comment
Which event, runs macros automatically in excel VBA while opening Workbook
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 data type can hold any type of data?
The value returned by InputBox is a string
VBA Code run by
When the form is first referenced in any manner by program,the triggered event is….
To save a VBA project with an Excel workbook, the workbook must be saved as what type of file?
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
Why Macro is used
Which property for a textbox allows the textbox to accept more than 1 line of data entry?
A single Case statement can contain multiple values
What will the value of ThisVar be after the following lines of code execute?
Dim ThisVar As String Dim MyName = "John" ThisVar = MyName & "John"
Which of the following arithmetic operations has the highest level of precedence?
Which of the following statements is not true about user-defined functions?
What is the color of comments?
___________ indicates whether a particular condition is on or off
Which of the following statement is not a looping statement in VBA?
You have declared 4 variables
Which of these variable declarations is not a valid VBA statement?
The _______________ control used to insert image to the form
An array that maintains multiple sets of information referenced by more than one index is called ________________
The Properties window plays an important role in the development of Visual Basic Applications. It is mainly used
Which part of VBA window, refers to area where code is written.
This control is used for titles/captions