Test Your Knowledge: Quiz
Question 15-1. What is the difference between string and String (lower- and uppercase)?
Question 15-2. Some of the interfaces implemented by the string are IComparable, ICloneable, IConvertible, and IEnumerable. What do these guarantee to you as a client of the String class?
Question 15-3. What is a string literal?
Question 15-4. What is the purpose of escape characters? Give two examples.
Question 15-5. What are verbatim strings?
Question 15-6. What does it mean that strings are immutable?
Question 15-7. What are the two ways to concatenate strings?
Question 15-8. What does Split( ) do?
Question 15-9. Why would you use the StringBuilder class instead of a string, and how do you create a string with one?
Question 15-10. What are regular expressions?
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access