Vidyalelo
Computer Science · Q59

Object Oriented Programming Using C++

Engineering and GATE · Computer Science · question 59

Q59

Evaluate the following expression: 4 >6 || 10 < 2 * 6

A.
True
Answer
B.
False

Answer: Option A

Solution

Answer: Option A
Solution:
In the given expression, we have two conditions connected by the logical OR operator (||):

- 4 > 6: This condition is false because 4 is not greater than 6.
- 10 < 2 * 6: This condition is true because 10 is less than 12 (2 multiplied by 6).

The logical OR operator (||) returns true if at least one of the conditions is true. In this case, the second condition is true, so the overall expression is true.

So, the correct answer is Option A: True.