Knowledge check

Completed
1.

Which of the following escape sequences should be used to add double quotes to a literal string in C# code?

2.

Which of the following lines of code correctly uses string interpolation assuming that the variable value is a string?

3.

Unicode characters were embedded in the C# strings for a console application to present a greeting message in Thai. However, the message is only displayed as question mark characters. What is a possible cause?

4.

Which of the following lines of code appends a single \ to the string directory?