Question: 8. If the strWord variable contains the string chimes, which of the following statements assigns the fourth character in the variable to the strLetter variable?

8. If the strWord variable contains the string “chimes”, which of the following statements assigns the fourth character in the variable to the strLetter variable?

a. strLetter = strWord.Substring(3)

b. strLetter = strWord.Substring(3, 1)

c. strLetter = strWord(4).Substring

d. none of the above

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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