MCQs > IT & Programming > C# > What is the output of the following code? static void Main(string[] args) { int a = 5; if (Convert.ToBoolean((.002f) -(0.1f))) Console.WriteLine('Hello'); else if (a == 5) Console.WriteLine('World'); else Console.WriteLine('Bye'); Console.ReadLine(); }

C# MCQs

What is the output of the following code?



static void Main(string[] args)

    int a = 5;
    if (Convert.ToBoolean((.002f) -(0.1f)))
        Console.WriteLine("Hello");
    else if (a == 5)
        Console.WriteLine("World");
    else
        Console.WriteLine("Bye");
    Console.ReadLine();
}

Answer

Correct Answer: Hello

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