Complete the code to declare a Boolean variable with the value true.
bool isActive = [1];In C#, the Boolean literal for true is true in lowercase.
Complete the code to check if the Boolean variable is false.
if (isEnabled == [1]) { Console.WriteLine("Disabled"); }
The Boolean literal for false in C# is false in lowercase.
Fix the error in the code to correctly assign a Boolean value.
bool isReady = [1];Boolean values must be assigned using lowercase true or false without quotes.
Fill both blanks to create a Boolean expression that checks if x is greater than 10.
bool result = (x [1] 10) [2] true;
The expression x > 10 == true checks if x is greater than 10.
Fill all three blanks to create a Boolean expression that checks if y is less than or equal to 5 and isActive is true.
bool check = (y [1] 5) [2] (isActive [3] true);
The expression (y <= 5) && (isActive == true) checks both conditions correctly.
