Complete the code to declare a string variable named greeting.
string greeting = [1];Strings in C# must be enclosed in double quotes. So, "Hello, world!" is the correct way to assign a string.
Complete the code to get the length of the string stored in name.
int length = name.[1];In C#, the Length property (capital L) gives the number of characters in a string.
Fix the error in the code to convert the string input to uppercase.
string upper = input.[1]();The correct method to convert a string to uppercase in C# is ToUpper() with capital T and U.
Fill both blanks to create a substring from index 2 with length 4.
string part = text.[1](2, [2]);
The Substring method extracts part of a string starting at the given index and for the given length.
Fill all three blanks to check if the string message contains 'hello' ignoring case.
bool containsHello = message.[1]("hello", [2].[3]);
The Contains method can take a StringComparison argument to ignore case. Use StringComparison.OrdinalIgnoreCase for case-insensitive check.