What is the purpose of the SQL 'NULL' value? MCQ with Answer and Explanation

What is the purpose of the SQL 'NULL' value?
A. To represent zero
B. To represent an error
C. To represent empty string
D. To represent missing or unknown data
Answer: Option D
Solution (By JKSSB Mock Tests)
NULL is a special marker indicating that a value is unknown or missing, not the same as zero or empty string.

Discuss this Question (0)

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

Practice More Database Management System (DBMS) Questions

Question #1
Which SQL function returns the current date and time?
A. GETDATE()
B. CURDATE()
C. NOW()
D. All of the above depending on the DBMS

Correct Answer: Option D


Explanation:
Different DBMSs have different functions: MySQL NOW(), SQL Server GETDATE(), etc. But all return current date/time.

This question belongs to: Computer Database Management System (DBMS)
Question #2
The JOIN operation in SQL is used to:
A. Delete rows
B. Sort data
C. Combine rows from two or more tables
D. Create a new database

Correct Answer: Option C


Explanation:
JOIN combines data from multiple tables based on related columns.

This question belongs to: Computer Database Management System (DBMS)
Question #3
In SQL, which statement is used to change a user's password?
A. ALTER USER
B. MODIFY USER
C. UPDATE USER
D. CHANGE USER

Correct Answer: Option A


Explanation:
ALTER USER is used in many DBMS to change user attributes, including password. The exact syntax varies by DBMS.

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