Vidyalelo
Computer Science · Q442

Visual Basic MCQs: Test Your Proficiency in Visual Basic Programming

Engineering and GATE · Computer Science · question 442

Q442

What is wrong with the following if-else structure? If intQuantity > 5 Then dblDiscountRate = .1 Else dblDiscountRate = .05 End If

A.
No error
Answer
B.
Conditions not in brackets
C.
No ; after statements
D.
'Then' should have been 'then'

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board