Examveda

What is wrong with the following if-else structure?

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

A. No error

B. Conditions not in brackets

C. No ; after statements

D. 'Then' should have been 'then'

Answer: Option A


This Question Belongs to Computer Science >> Visual Basic

Join The Discussion

Related Questions on Visual Basic