Complete the code to create a string variable named greeting with the value "Hello".
string greeting = [1];The correct way to create a string literal in C# is by using double quotes. Single quotes are for characters, and unquoted text is invalid. Using new String("Hello") is not valid in C#.
Complete the code to create a verbatim string literal that includes a file path.
string path = [1];Verbatim string literals in C# start with @ and use double quotes. They treat backslashes as normal characters, so you don't need to escape them.
Fix the error in the code to correctly create a string with a newline character.
string message = [1];In C#, newline characters in strings are represented by \n inside double quotes. Single quotes are for characters, and \World is invalid escape sequence.
Fill both blanks to create a string that contains a tab character and a double quote inside it.
string text = [1] + "\t" + [2];
Strings use double quotes. To include a double quote inside a string, escape it with a backslash \". Single quotes are for characters, so they are incorrect here.
Fill all three blanks to create a multi-line verbatim string that includes quotes and a newline.
string poem = [1] + "\n" + [2] + "\n" + [3];
Verbatim strings start with @ and use double quotes. You can combine verbatim and normal strings with + and newline characters.