111k views
3 votes
Which of the following expression is equivalent to (x >1)?

x >= 1

!(x <= 1)

!(x = 1)

!(x < 1)

None of the above
Please explain so that I can learn from you.

1 Answer

4 votes

Answer:

!(x <= 1)

Step-by-step explanation:

The operator '!' comes in the logical operator category and it names is not Operator.

It used with the Boolean value if the Boolean value is TRUE then NOT operator gives output FALSE.

if the Boolean value is FALSE then NOT operator gives output TRUE.

so, consider the expression (x >1).

It means x is greater than 1.

Now, think about when the condition will be false.

So, the condition will be If x is less than or equal to 1.

the option 1 is x >= 1. So, it greater than equal to 1. This is not the correct option

!(x <= 1) it means x is less than equal to 1 and include the NOT operator then it becomes X is greater than 1 (x > 1). So, This is the one possible answer.

!(x = 1): it means x can be greater than or less than 1. so, this is not correct.

!(x < 1): it means x can be greater than or equal to 1. This is also not correct because it includes the equal part as well.

User Sreehari K
by
5.7k points