×

Multiple-Choice Questions

Web Technologies MCQs

Computer Science Subjects MCQs

Databases MCQs

Programming MCQs

Testing Software MCQs

Digital Marketing Subjects MCQs

Cloud Computing Softwares MCQs

AI/ML Subjects MCQs

Engineering Subjects MCQs

Office Related Programs MCQs

Management MCQs

More

What will be the output of the following C# code? | Question 9

40. What will be the output of the following C# code?

using System;

class Program {
  static void Main(string[] args) {
    Console.WriteLine(true && false);
  }
}
  1. True
  2. False
  3. Error
  4. None

Answer: B) False

Explanation:

Here, we are using the Conditional logical AND operator (&&). It returns true of both of the operands evaluate to true. In the above code, the operands are true, false. Thus, the output will be "False".

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.