What is a candidate key? MCQ with Answer and Explanation

What is a candidate key?
A. A column that allows duplicate values
B. A foreign key
C. A column that can be used as a primary key but is not chosen
D. A set of columns that uniquely identifies a row and can serve as a primary key
Answer: Option D
Solution (By JKSSB Mock Tests)
A candidate key is an attribute or set of attributes that can uniquely identify a tuple; one is selected as the primary key.

Discuss this Question (0)

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

Practice More Database Management System (DBMS) Questions

Question #1
Which of the following is a valid SQL string function?
A. All of the above
B. SUBSTRING
C. REPLACE
D. CONCAT

Correct Answer: Option A


Explanation:
SUBSTRING, CONCAT, and REPLACE are common string functions in SQL.

This question belongs to: Computer Database Management System (DBMS)
Question #2
In a Relational Database Management System (RDBMS), data is logically organized and stored in which form?
A. Trees
B. Flat text files
C. Tables
D. Graphs

Correct Answer: Option C


Explanation:
In an RDBMS, data is organized into relations, which are logically represented as two-dimensional tables consisting of rows and columns.

This question belongs to: Computer Database Management System (DBMS)
Question #3
What is a subquery in SQL?
A. A query nested inside another query
B. A query that is used to create a table
C. A query that is always correlated
D. A query that returns multiple results

Correct Answer: Option A


Explanation:
A subquery is a SELECT statement nested within another SQL statement (e.g., SELECT, INSERT, UPDATE, DELETE).

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