Question: 11. If the strMsg variable contains the string Today is Monday, which of the following assigns the number 9 to the intNum variable? a. intNum
11. If the strMsg variable contains the string “Today is Monday”, which of the following assigns the number 9 to the intNum variable?
a. intNum = strMsg.Substring(0, "M")
b. intNum = strMsg.Contains("M")
c. intNum = strMsg.IndexOf("M")
d. intNum = strMsg.IndexOf(0, "M")
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
