Which of the following methods can be used to determine whether the strAmount variable contains the dollar

Question:

Which of the following methods can be used to determine whether the strAmount variable contains the dollar sign?

a. blnResult = strAmount.Contains("$")

b. intResult = strAmount.IndexOf("$")

c. intResult = strAmount.IndexOf("$", 0)

d. All of the above

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: