1.

Which of the following statement is correct?(a) reverse() method reverses some characters(b) reverseall() method reverses all characters(c) replace() method replaces all instances ofa character with new character(d) replace() method replaces first occurrence of a character in invoking string with another characterThis question was posed to me in examination.The doubt is from Writing Console Output Operations in chapter Console I/O Operations and Stream Classes of C#

Answer»

The CORRECT OPTION is (c) replace() method replaces all instances ofa character with NEW character

Explanation: REVERSE() and replace() are by definition.



Discussion

No Comment Found

Related InterviewSolutions