Complete the code to create a string variable named greeting with the value "Hello".
string greeting = [1];In C#, strings are enclosed in double quotes. Single quotes are for characters.
Complete the code to concatenate two strings str1 and str2 using the + operator.
string result = str1 [1] str2;In C#, the + operator is used to join two strings together.
Fix the error in the code to get the length of the string named text.
int length = text[1];In C#, string length is accessed with the property .Length without parentheses.
Fill both blanks to check if the string input equals "yes" ignoring case.
bool isYes = input.[1]("yes", [2]);
Use Equals method with StringComparison.OrdinalIgnoreCase to compare strings ignoring case.
Fill all three blanks to create a new string from original by replacing "cat" with "dog" and converting to uppercase.
string newStr = original.[1]("cat", "dog").[2]().[3]();
First replace "cat" with "dog", then convert to uppercase, then trim whitespace.
