Q. What output will be returned if the following Visual Basic code is executed?
Code:strVisualBasic = "Sanfoundry, VB.Net"
intCharIndex = strVisualBasic.IndexOf("VB")
β
Correct Answer: (B)
12
strVisualBasic = "Sanfoundry, VB.Net"
intCharIndex = strVisualBasic.IndexOf("VB")
You must be Logged in to update hint/solution