Sail E0 Webinar
Question
Which of the following statement is correct?
Options:
A .  reverse() method reverses all characters.
B .  reverseall() method reverses all characters.
C .  replace() method replaces first occurrence of a character in invoking string with another character.
D .  replace() method replaces last occurrence of a character in invoking string with another character
Answer: Option A


reverse() method reverses all characters. It returns the reversed object on which it was called.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers