Q. What output will be returned if the following Visual Basic code is executed?
Code:
strCityState = "Nashville, TN"
intCharIndex = strCityState.IndexOf("Tn")
β
Correct Answer: (D)
-1