Question: If the strMsg variable contains the string Her birthday is Friday!, which of the following assigns the number 16 to the intNum variable? a. intNum

If the strMsg variable contains the string “Her birthday is Friday!”, which of the following assigns the number 16 to the intNum variable?
a. intNum = strMsg.Substring(0, "F")
b. intNum = strMsg.Contains("F")
c. intNum = strMsg.IndexOf("F")
d. intNum = strMsg.IndexOf(0, "F")

Step by Step Solution

3.30 Rating (153 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

c in... 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

Document Format (2 attachments)

PDF file Icon

1814_60b8c12284fe6_823539.pdf

180 KBs PDF File

Word file Icon

1814_60b8c12284fe6_823539.docx

120 KBs Word File

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