41. Objects are represented by . . . . . . . . variables and . . . . . . . . properties.
42. What is wrong with the following if-else structure?
If intQuantity > 5 Then
dblDiscountRate = .1
Else
dblDiscountRate = .05
End If
If intQuantity > 5 Then
dblDiscountRate = .1
Else
dblDiscountRate = .05
End If
43. The variable can be a declared by . . . . . . . .statement .
44. Which of the following declares a two-dimensional array that has three rows and four columns?
45. To create menu on MDI form, we have to select . . . . . . . .
46. The purpose of . . . . . . . . is to process code at one or more regular intervals.
47. And operator checks both the sub-conditions whereas OrElse operator does . . . . . . . .
48. What will be the content of Text after the code is executed with id=4?
If id==1 Then
Text="Janet";
Elseif id==2 OrElse id==3 Then
Text="Mark"
ElseIF id==4 Then
Text="Jerry"
Else
Text="Sue ";
EndIf
If id==1 Then
Text="Janet";
Elseif id==2 OrElse id==3 Then
Text="Mark"
ElseIF id==4 Then
Text="Jerry"
Else
Text="Sue ";
EndIf
49. The . . . . . . . . argument contains the message to display inside the dialog box.
50. The Project Explorer is used to show quick reference to the various elements of a project namely form, classes and modules
Read More Section(Visual Basic)
Each Section contains maximum 100 MCQs question on Visual Basic. To get more questions visit other sections.