Evaluate the following expression: 7 >=3 + 4 || 6<4 && 2<5 A. True B. False

TRUE
nan
nan
nan

The correct answer is A. True.

The expression is evaluated as follows:

  1. 7 >= 3 + 4
  2. 7 >= 7
  3. True
  4. 6 < 4 && 2 < 5
  5. False && 2 < 5
  6. False
  7. True || False
  8. True

The

expression is true because the first part of the OR statement is true. The second part of the OR statement is irrelevant because the first part is already true.
Exit mobile version