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?

Get Learning C# 3.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.