1Which one of the following statements is correct a Dim ab A
1.Which one of the following statements is correct?
a. Dim ab, Ab as Integer
b. Dim ab, AB As Integer
c. Dim ab, abc As Integer
d. Dim ab As Integer, AB as Integer
e. Dim ab As integer = 1, AB As integer = 2
Solution
The following are correct: Dim ab As integer = 1, AB As integer = 2
The following gives you error Function without an \'As\' clause; Object return type assumed.
a. Dim ab, Ab as Integer
 b. Dim ab, AB As Integer
 c. Dim ab, abc As Integer
 d. Dim ab As Integer, AB as Integer

