?
Which of the following statements is/are correct?
Answer & Solution
Correct Answer:
Option
D
This question is about how logical operators work in MySQL. Logical operators are used to combine conditions and determine if a statement is true or false.
Here's a breakdown of the options:
Option A: NOT(true AND true) =false
* AND means both conditions need to be true for the entire statement to be true. * true AND true is true. * NOT true is false.
So, Option A is correct.
Option B: NOT(false AND false)=true
* false AND false is false. * NOT false is true.
So, Option B is correct.
Option C: NOT (true AND false)= true
* true AND false is false. * NOT false is true.
So, Option C is correct.
Option D: All of the mentioned
Since all of the above options are correct, Option D is also correct.
Option A: NOT(true AND true) =false
* AND means both conditions need to be true for the entire statement to be true. * true AND true is true. * NOT true is false.
So, Option A is correct.
Option B: NOT(false AND false)=true
* false AND false is false. * NOT false is true.
So, Option B is correct.
Option C: NOT (true AND false)= true
* true AND false is false. * NOT false is true.
So, Option C is correct.
Option D: All of the mentioned
Since all of the above options are correct, Option D is also correct.
Join the Discussion
Login to post a comment or share your explanation.
Login