Question: If the strMsg variable contains the string The party is Saturday., which of the following assigns the number 13 to the intNum variable? a. intNum

If the strMsg variable contains the string “The party is Saturday.”, which of the following assigns the number 13 to the intNum variable?

a. intNum = strMsg.Substring(0, "S")

b. intNum = strMsg.Contains("S")

c. intNum = strMsg.IndexOf("S")

d. intNum = strMsg.IndexOf(0, "S")

Step by Step Solution

3.32 Rating (167 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

c int... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming with Microsoft Visual Basic 2015 Questions!