Complete the code to declare a char variable with the letter 'A'.
char letter = '[1]';
In C#, a char is a single character enclosed in single quotes.
Complete the code to get the Unicode code point of the char 'Ω'.
int codePoint = (int) '[1]';
Cast the char 'Ω' (in single quotes) to int to get its Unicode code point.
Fix the error in the code to correctly check if a char is a digit.
bool isDigit = char.[1]('5');
The method char.IsDigit checks if a character is a digit.
Fill both blanks to create a dictionary mapping characters to their Unicode code points for letters only.
var unicodeMap = new Dictionary<char, int> { { '[1]', (int)'A' }, { '[2]', (int)'Z' } };The dictionary keys are chars 'A' and 'Z' representing uppercase letters.
Fill all three blanks to create a method that returns true if a char is a letter and uppercase.
bool IsUpperLetter(char c) {
return char.[1](c) && char.[2](c) && c [3] 'A';
}IsLower instead of IsUpper.The method checks if c is a letter, is uppercase, and is greater or equal to 'A'.
