Which of the following statements are true? Select one or more: A. (x > 0 || x < 10) is same as ((x > 0) || (x < 10)) B. (x > 0 || x < 10 && y < 0) is same as ((x > 0 || x < 10) && y < 0) C. (x > 0 || x < 10 && y < 0) is same as (x > 0 || (x < 10 && y < 0)) D. (x > 0 && x < 10) is same as ((x > 0) && (x < 10))

Respuesta :

Answer:

Option A, C and D

Step-by-step explanation:

This are examples of mathematical expression used as comparison operands in programing.

Answer:

The three options are true

A. (x > 0 || x < 10) is same as ((x > 0) || (x < 10))

C. (x > 0 || x < 10 && y < 0) is same as (x > 0 || (x < 10 && y < 0))

D. (x > 0 && x < 10) is same as ((x > 0) && (x < 10))

Step-by-step explanation:

The order of precedence is that && is performed first, || next.

Brackets can be used to separate single entity without losing the meaning