42.
What is wrong with the following if-else structure?

If intQuantity > 5 Then
   dblDiscountRate = .1
Else
   dblDiscountRate = .05
End If

44.
Which of the following declares a two-dimensional array that has three rows and four columns?

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

Read More Section(Visual Basic)

Each Section contains maximum 100 MCQs question on Visual Basic. To get more questions visit other sections.