What type of key uniquely identifies each record in a table and cannot contain NULL values? MCQ with Answer and Explanation

What type of key uniquely identifies each record in a table and cannot contain NULL values?
A. Primary Key
B. Foreign Key
C. Candidate Key
D. Secondary Key
Answer: Option A
Solution (By JKSSB Mock Tests)
A Primary Key is a unique identifier for each tuple in a relation. It enforces entity integrity and strictly cannot accept NULL values.

Discuss this Question (0)

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

Practice More Database Management System (DBMS) Questions

Question #1
What is a self join?
A. Joining more than two tables
B. Joining two different tables
C. Joining a table with itself
D. Joining tables without a common column

Correct Answer: Option C


Explanation:
A self join is a join where a table is joined with itself, often used to compare rows within the same table.

This question belongs to: Computer Database Management System (DBMS)
Question #2
What type of join returns all rows from the right table, paired with matching records from the left table, or filling in NULL values if no match is found?
A. Left Outer Join
B. Full Join
C. Right Outer Join
D. Inner Join

Correct Answer: Option C


Explanation:
A Right Outer Join retains all rows from the right table, pairing them with matching left table entries or supplying NULL values if matches do not exist.

This question belongs to: Computer Database Management System (DBMS)
Question #3
Which SQL component is used to specify a fallback default value for a column when no value is provided during an insert operation?
A. CHECK
B. DEFAULT
C. UNIQUE
D. NOT NULL

Correct Answer: Option B


Explanation:
The DEFAULT constraint assigns a predefined default value to a column when an INSERT statement does not explicitly provide a value for that column.

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