Q57
What will be the output of the following C# code? public static void Main(string[] args) int a = 4; int c = 2; bool b = (a % c == 0 ? true : false); Console.WriteLine(b.ToString()); if (a/c == 2) Console.WriteLine("true"); else Console.WriteLine("false"); Console.ReadLine();
A.
TRUE
FALSE
FALSE
B.
FALSE
TRUE
TRUE
C.
TRUE
TRUE
AnswerTRUE
D.
FALSE
FALSE
FALSE
Answer: Option C
Solution
Answer: Option C
No explanation is given for this question Let's Discuss on Board