MCQs > IT & Programming > C# > What will be printed on the console when the following program is executed: public static void Main(string[] args) { bool foo = new bool(); if (foo) Console.WriteLine('True'); else Console.WriteLine('False'); }

C# MCQs

What will be printed on the console when the following program is executed: public static void Main(string[] args) { bool foo = new bool(); if (foo) Console.WriteLine("True"); else Console.WriteLine("False"); }

Answer

Correct Answer: "False" will be printed on the console

Explanation:

Note: This Question is unanswered, help us to find answer for this one

C# Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

C# Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it