1. Using Objects and Methods
String Manipulation — Quiz
Test your understanding of string manipulation with 5 practice questions.
Practice Questions
Question 1
What is the value of $s.length()$ after the following declaration? String s = "computer";
Question 2
What string is returned by $"AP".concat(" CSA")$?
Question 3
What string is returned by $s.substring(1, 4)$ if String s = "banana";
Question 4
What character is returned by $"hello".charAt(1)$?
Question 5
Which method should be used to test whether two String values have the same characters in the same order?
