In SQL, what does the 'IS NULL' operator check? MCQ with Answer and Explanation

In SQL, what does the 'IS NULL' operator check?
A. Whether a value is empty string
B. Whether a value is zero
C. Whether a value is missing (null)
D. Whether a value equals NULL
Answer: Option C
Solution (By JKExamLibrary)
IS NULL is used to test for NULL values, because NULL is not equal to anything.

This question belongs to: Computer Database Management System (DBMS)

Discuss this Question (0)

No comments yet. Be the first to start the discussion!

Practice More Database Management System (DBMS) Questions

Question #1 Report Error
What is the purpose of the SQL 'DEFAULT' constraint?
A. To define a primary key
B. To set a foreign key
C. To provide a default value for a column when no value is supplied
D. To enforce uniqueness

Correct Answer: Option C


Explanation:
DEFAULT assigns a default value to a column if an INSERT statement does not specify a value.

This question belongs to: Computer Database Management System (DBMS)
Question #2 Report Error
Which normal form is stricter than 3NF and is often described as a configuration where every determinant must be a candidate key?
A. 2NF
B. 4NF
C. 5NF
D. Boyce-Codd Normal Form (BCNF)

Correct Answer: Option D


Explanation:
Boyce-Codd Normal Form (BCNF) is a stronger version of 3NF. A relation is in BCNF if, for every non-trivial functional dependency X -> Y, X is a candidate key.

This question belongs to: Computer Database Management System (DBMS)
Question #3 Report Error
In SQL, what is the purpose of the LIKE operator?
A. To join tables
B. To aggregate data
C. To perform arithmetic operations
D. To perform pattern matching on strings

Correct Answer: Option D


Explanation:
LIKE is used with wildcards (% and _) to search for a specified pattern in a column.

This question belongs to: Computer Database Management System (DBMS)