Which Of The Following Conditions Are True In The Following C #96
Which of the following conditions are true in the following C# code?</p> <pre><code class="language-csharp" line="1"> static void Main(string[] args) { Console.WriteLine("Enter a letter:"); char c = (char)Console.Read(); if (Char.IsDigit(c) == true) Console.WriteLine("A number"); else if (char.IsLower(c) == true) Console.WriteLine("A lowercase letter"); else if (char.IsUpper(c) == true) Console.WriteLine("An uppercase letter"); Console.ReadLine(); } a. Enter a letter : a An uppercase letter b. Enter a letter : A An uppercase letter c. Enter a letter : 2 A number d. Enter a letter : 2 A lowercase letter. </code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs108 CSharp. It can also be found in gs gs108 Looping Statements - IF Statements - Quiz No.1.