Please enter your details here.
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
What will be the output of the following statement?
txtBox.Text = FormatCurrency(1234.567)
A Combo box is loaded in the From_Initialize event with:
Combo1.AddItem “Red”
Combo1.AddItem “Blue”
Combo1.AddItem “Green”
The _______________ control used to insert image to the form
VBA Code run by
An object is composed of :
32-bit Software/Applications can be installed on:
___________ control is used to provide an identifiable grouping for other controls
Which character in VBA, indicates start of a comment
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)
This operator reverses the truth value of an expression; making a true expression false and a false expression true.
Which of the following arithmetic operations has the highest level of precedence?
Which of the following is default in VBA for data passing?
The _______________ statement first executes the statements and then tests the condition after each execution
What property of controls tells the order they receive the focus when the tab key is pressed during run time? it.
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?
What will the value of ThisVar be after the following lines of code execute?
Dim ThisVar As String Dim MyName = "John" ThisVar = MyName & "John"
__________ are the attributes of an object that control the object's appearance and behavior.
Which event, runs macros automatically in excel VBA while opening Workbook
To force all variables is a VBA project to be declared, which must be stated in a module?
This control is used for titles/captions
To break up long lines of code, the line continuation character in VBA is
Which property for a textbox allows the textbox to accept more than 1 line of data entry?
What data type can hold any type of data?
Which of the following statement is not a looping statement in VBA?
A single Case statement can contain multiple values
To save a VBA project with an Excel workbook, the workbook must be saved as what type of file?
The Properties window plays an important role in the development of Visual Basic Applications. It is mainly used
___________ indicates whether a particular condition is on or off
Which of the following statements is not true about user-defined functions?