Quiz on C++ Logical Operators



1. What is the result of the logical AND operator (&&) if one operand is false?
2. Which of the following is a logical OR operator in C++?
3. What will be the output of the expression true && false?
4. How does the NOT operator (!) affect a boolean value?
5. What is the precedence order of logical operators in C++?

Advertisements