Vidyalelo
C# Programming · Q84

Arrays and Strings in C Sharp

Programming · C# Programming · question 84

Q84

Which of the following statements is correct?

A.
replace() replace() method replaces last occurrence of a character in invoking strings with another character
B.
replace() method replaces only first occurrence of a character in invoking strings with another character
C.
replace() method replaces all occurrences of one character in invoking strings with another character
Answer
D.
none of the mentioned

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board