Which of the following will return reverse string str1?

Question:
Which of the following will return reverse string str1?

1.str1[ : : -1]

2.str1[: : 1]

3.str1[: -1 : -1 ]

4.None of the above

Posted Date:-2021-12-11 12:10:34


More MCQS Questions and answers

Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!