--:--









Quiz for Logical Operators

Course: SQL | Subject: SQL | Topic: SQL Operators



Logo

Q1: Which logical operator returns true only if both conditions are true?

Logo

Q2: Which SQL logical operator is used to combine multiple conditions that must all be true?

Logo

Q3: Which SQL logical operator is used to return true if either condition is true?

Logo

Q4: What does the NOT operator do in SQL?

Logo

Q5: Which of the following SQL statements will return all rows except those where city is "Delhi"?

Logo

Q6: Which of the following returns true only when all expressions are false?

Logo

Q7: Choose the correct SQL syntax for using the AND operator.

Logo

Q8: What will be the output if both conditions are false in an AND clause?

Logo

Q9: Which logical operator returns true only if one condition is true and the other is false?

Logo

Q10: Identify the incorrect use of a logical operator.

Logo

Q11: Which operator is used to negate a Boolean condition?

Logo

Q12: What will the query return: SELECT * FROM orders WHERE NOT (status = "Pending" OR amount < 100);

Logo

Q13: Which operator is used to evaluate whether multiple conditions are true at the same time?

Logo

Q14: Which clause is best suited to find records where a condition is not true?

Logo

Q15: What is the result of TRUE OR FALSE?

Logo

Q16: Which operator returns true only when both expressions are true?

Logo

Q17: Which of the following is an example of combining logical operators?

Logo

Q18: In SQL, what does this condition mean: age > 25 OR salary > 50000?

Logo

Q19: Which operator would you use to exclude a range of values?

Logo

Q20: The NOT operator can be applied to which type of expressions?

Logo

Q21: Which SQL query retrieves employees who are not in the Sales department and have salary greater than 50000?

Are you ready to start test? Set your time limit