Vidyalelo
MySQL · Q813

MySQL

Programming · MySQL · question 813

Q813

Which of the following statements is/are correct?

A.
NOT(true)=false
B.
NOT(false)=true
C.
Both NOT(true)=false and NOT(false)=true
Answer
D.
None of the mentioned

Answer: Option C

Solution

Answer: Option C
Solution:
This question is about how the NOT operator works in MySQL.
Think of NOT as flipping a switch.
If something is true (the switch is on), NOT(true) makes it false (the switch is off).
If something is false (the switch is off), NOT(false) makes it true (the switch is on).

So, both Option A and Option B are correct.

The answer is Option C.