What is a primary key in a database table? MCQ with Answer and Explanation

What is a primary key in a database table?
A. A key that uniquely identifies each row in a table
B. A key that references a column in another table
C. A key that is always numeric
D. A key that can contain duplicate values
Answer: Option A
Solution (By JKSSB Mock Tests)
A primary key is a column or set of columns that uniquely identifies each row in a table, ensuring entity integrity.

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 operator is used to check if a value is within a range?
A. LIKE
B. IN
C. EXISTS
D. BETWEEN

Correct Answer: Option D


Explanation:
BETWEEN checks if a value falls within a specified range (inclusive of boundaries).

This question belongs to: Computer Database Management System (DBMS)
Question #2
Who proposed the relational database model based on mathematical relation theory in 1970?
A. James Gosling
B. Dennis Ritchie
C. E.F. Codd
D. Charles Bachman

Correct Answer: Option C


Explanation:
Dr. Edgar Frank Codd (E.F. Codd) invented the relational model for database management while working for IBM in 1970.

This question belongs to: Computer Database Management System (DBMS)
Question #3
In SQL, the WHERE clause is used in:
A. Only CREATE statements
B. Only INSERT statements
C. SELECT, UPDATE, DELETE statements
D. Only SELECT statements

Correct Answer: Option C


Explanation:
WHERE clause filters records in SELECT, UPDATE, and DELETE operations.

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