Relational Model MCQ Quiz - Objective Question with Answer for Relational Model - Download Free PDF

Last updated on Jun 27, 2025

Latest Relational Model MCQ Objective Questions

Relational Model Question 1:

In relational database minimal super keys is known as -

  1. Reference keys
  2. Candidate keys
  3. Foreign keys
  4. Primary keys
  5. None of the above

Answer (Detailed Solution Below)

Option 2 : Candidate keys

Relational Model Question 1 Detailed Solution

The correct option is (2)

Candidate key

Concept:-

The candidate key can be called a super key, as each candidate key is a subset of the super key. The super key with all necessary attributes is known as the candidate key. The super key with unnecessary attributes cannot be considered a candidate key.

Key Points

  • A Candidate key is a minimal super key, meaning that it would cease to be a super key if you removed any attribute from the set.
  • A minimum super key is referred to as a candidate and the main key since the primary key is chosen from the candidate keys.
  • The minimal set of attributes that can uniquely identify a tuple is known as candidate key. For example, STUD_NO in STUDENT relation. It is a minimal super key.

Additional InformationForeign keys:- The characteristic that establishes the relationship between tables is the foreign key of a table. A foreign key is a column or columns of data in one table that connects to the primary key data in the original table.

Primary key:- The very minimum set of characteristics necessary to identify each row in a database is known as the primary key. It is chosen from a list of potential keys. The primary key might be any candidate's key.

Reference key:- The primary key that is used as a reference in the other table is known as the Reference key.

Relational Model Question 2:

Consider the following statements regarding key -

(I) A super key is an attribute or combination of attributes that uniquely identify records in an RDBMS table.

(II) A candidate key is a subset of a super key.

(III) All super keys are candidate keys but vice versa is not true.

  1. Only (I) is true
  2. (I) and (III) are true
  3. Only (II) is true
  4. (I) and (II) are true
  5. None of the above

Answer (Detailed Solution Below)

Option 4 : (I) and (II) are true

Relational Model Question 2 Detailed Solution

The correct answer is (I) and (II) are true

Concept:

Statement 1: A super key is an attribute or combination of attributes that uniquely identify records in an RDBMS table.

True, A super key, or just key, is a combination of every attribute that may be used to specifically identify rows (or tuples) in a database. This indicates that a superkey may contain additional information that isn't required for uniquely identifying table rows.

Statement 2: A candidate key is a subset of a super key.

True, A Candidate key is a subset of Super keys and is clear of any unnecessary attributes that are not essential for tuple identification. For all tuples, the Candidate key value is distinct and non-null. Additionally, each table must include at least one Candidate key.

Statement 3: All super keys are candidate keys but vice versa is not true.

False, Candidate keys are a subset of Super keys. They contain only those attributes which are required to uniquely identify tuples. All Candidate keys are Super keys. But the vice-versa is not true.

Hence the correct answer is (I) and (II) are true.

Relational Model Question 3:

Which of the following is NOT a key in Relational Model?

  1. Foreign Key
  2. Primary Key
  3. Duplicate Key
  4. Composite Key

Answer (Detailed Solution Below)

Option 3 : Duplicate Key

Relational Model Question 3 Detailed Solution

The correct answer is Option 3) Duplicate Key.

Key Points

  • In the Relational Model of databases, keys are used to uniquely identify tuples (rows) in a relation (table).
  • Primary Key: A unique identifier for each record in a table. No two rows can have the same primary key, and it cannot contain NULLs.
  • Foreign Key: A field (or collection of fields) in one table that refers to the primary key in another table. It is used to establish and enforce a link between the data in the two tables.
  • Composite Key: A key made up of two or more attributes that together uniquely identify a record.
  • Duplicate Key ❌ is not a recognized concept in the relational model. The term contradicts the basic purpose of a key, which is to ensure uniqueness.

Additional Information

  • Candidate Key: A set of attributes that can uniquely identify a record. One of them is selected as the primary key.
  • Super Key: A set of attributes that uniquely identifies each record in a table. It may contain extra attributes not necessary for uniqueness.
  • All keys in relational models are meant to avoid duplication and enforce integrity.

Conclusion: Since the term "Duplicate Key" implies the presence of non-unique identifiers, it is not considered a valid key in the relational model.

Relational Model Question 4:

Which type of integrity constraint ensures that a foreign key references a valid primary key value?

  1. Primary key constraint
  2. Check constraint
  3. Foreign key constraint
  4. Unique constraint

Answer (Detailed Solution Below)

Option 3 : Foreign key constraint

Relational Model Question 4 Detailed Solution

The correct answer is Option 3) Foreign key constraint.

Key Points

  • A foreign key constraint is used to maintain referential integrity between two related tables.
  • It ensures that the value in a column (or a group of columns) matches a valid value in the referenced column of another table—typically a primary key.
  • This prevents "orphan" records (i.e., records that reference a non-existent row in another table).
  • For example, if Orders.CustomerID is a foreign key referencing Customers.CustomerID, then every value in Orders.CustomerID must exist in the Customers table.

Additional Information

  • Primary key constraint: Uniquely identifies each record in a table. It cannot have NULL or duplicate values.
  • Check constraint: Ensures that the value in a column satisfies a specific condition (e.g., Age > 0).
  • Unique constraint: Ensures all values in a column (or set of columns) are unique across rows, but unlike the primary key, it can contain NULLs.

Conclusion: A foreign key constraint guarantees that values in the referencing column exist in the referenced column, thereby ensuring referential integrity.

Relational Model Question 5:

Which relational algebra operator combines tuples from two relations based on a common attribute?

  1. Union
  2. Intersection
  3. Join
  4. Projection

Answer (Detailed Solution Below)

Option 3 : Join

Relational Model Question 5 Detailed Solution

The correct answer is Option 3) Join.

Key Points

  • Join is a relational algebra operator that combines tuples (rows) from two relations (tables) based on a common attribute.
  • It merges rows from both relations that satisfy a specified condition — typically where values of the common attribute(s) are equal.
  • There are several types of joins, such as:
    • Natural Join – joins on all common attributes automatically.
    • Theta Join – joins using a condition (like =, <, >, etc.).
    • Equi Join – a type of theta join using only the equality operator (=).
    • Outer Join – includes unmatched rows from one or both relations.
  • Join operations are essential for reconstructing data that has been normalized into multiple tables.

Additional Information

  • Option 1 – Union: Combines all tuples from two relations, eliminating duplicates. Both relations must be union-compatible (same number and type of attributes).
  • Option 2 – Intersection: Returns only those tuples that are present in both relations. Also requires union-compatibility.
  • Option 4 – Projection: Selects specific columns (attributes) from a relation, removing duplicates.
  • Join is the only operator among the options that uses a common attribute to combine related rows from two relations.

Top Relational Model MCQ Objective Questions

Consider the following statements S1 and S2 about the relational data model:

S1: A relation scheme can have at most one foreign key.

S2: A foreign key in a relation scheme R cannot be used to refer to tuples of R.

Which one of the following choices is correct? 

  1. S1 is true and S2 is false.  
  2. Both S1 and S2 are true.  
  3. Both S1 and S2 are false.  
  4. S1 is false and S2 is true. 

Answer (Detailed Solution Below)

Option 3 : Both S1 and S2 are false.  

Relational Model Question 6 Detailed Solution

Download Solution PDF

Answer: Option 3

Concept

Foreign Key :is the set of attributes in a particular relation whose values are belongs to primary key of same relation or other relation.

Explanation

Statement 1: A relation scheme can have at most one foreign key.

There is no such restriction on how many number of Foreign keys a particular relation can have. A relation can have as many number of Foreign keys as Required

So this statement is false.

Statement 2: foreign key in a relation scheme R cannot be used to refer to tuples of R.

There is no such constraint. Foreign key can be used to refer to primary key of the same relation. Self-referencing relations are examples of such foreign key. So this statement is also false.

So option 3 is the correct answer.

Consider the relation scheme R = (E, F, G, H, I, J, K, L, M, N) and the set of functional dependencies {(E, F} → {G}, {F} → {I, J}, {E, H} → {K, L}, {K} → {M}, {L} → {N}} on R. What is the key for R ?

  1. {E, F}
  2. {E, F, H}
  3. {E, F, H, K, L}
  4. {E}

Answer (Detailed Solution Below)

Option 2 : {E, F, H}

Relational Model Question 7 Detailed Solution

Download Solution PDF

Function Dependencies:

{(E, F} → {G}, {F} → {I, J}, {E, H} → {K, L}, {K} → {M}, {L} → {N}}

Option 1: {E, F}

{E, F}+ = {E, F, G, I, J}

Since K, L, M and N is missing in RHS ∴ it is not a key

Also, {E} cannot be a key because {E} is subset of {E, F}

Option 2: {E, F, H}

{E, F, H}+ = {E, F, H, G, I, J, K, L, M, N}

∴ it is a key

Key for R is {E, F, H}.

Important Points:

In relation algebra, key is primary key or candidate key.

{E, F, H, K, L} is super key. 

A prime attribute of a relation schema R is an attribute that appears

  1. in all candidate keys of R
  2. in some candidate key of R
  3. in a foreign key of R
  4. only in the primary key of R

Answer (Detailed Solution Below)

Option 2 : in some candidate key of R

Relational Model Question 8 Detailed Solution

Download Solution PDF
  • Attributes of the relation which exist in at least one of the possible candidate keys, are called prime or key attributes
  • Candidate key is a minimal super key and a Super key is a set of attributes that uniquely identify a tuple in a relation.
  • Therefore, a prime attribute of a relation scheme R is an attribute that appears in some candidate key of R


Important Point:

  • Primary key is selected from a set of candidate keys of a relation.

Mistake Points 
Option 1) is not correct. Because a prime attribute is an attribute that can appear in any candidate key. The attribute need not appear in all candidate keys of R. Example:- if A is a prime attribute then for a relationship it is not required for A to be present in all candidate keys of relation R.

Which of the following is NOT a superkey in a relational schema with attributes V, W, X, Y, Z and primary key V Y?

  1. VXYZ
  2. VWXZ
  3. VWXY
  4. VWXYZ

Answer (Detailed Solution Below)

Option 2 : VWXZ

Relational Model Question 9 Detailed Solution

Download Solution PDF

Concept:

Superkey is a set of attributes within a table whose values can be used to uniquely identify a tuple. A candidate key is a minimal superkey.

Superkey is superset of candidate key or primary key.

Explanation:

Primary key is VY. (given)

All superkeys must contain this primary key VY. From the given keys, key, which doesn’t contain

the VY.

Here, option 2: VWXZ

“VWXZ” doesn’t contain the primary key VY. So, it is not a superkey.

In relational database minimal super keys is known as -

  1. Reference keys
  2. Candidate keys
  3. Foreign keys
  4. Primary keys

Answer (Detailed Solution Below)

Option 2 : Candidate keys

Relational Model Question 10 Detailed Solution

Download Solution PDF

The correct option is (2)

Candidate key

Concept:-

The candidate key can be called a super key, as each candidate key is a subset of the super key. The super key with all necessary attributes is known as the candidate key. The super key with unnecessary attributes cannot be considered a candidate key.

Key Points

  • A Candidate key is a minimal super key, meaning that it would cease to be a super key if you removed any attribute from the set.
  • A minimum super key is referred to as a candidate and the main key since the primary key is chosen from the candidate keys.
  • The minimal set of attributes that can uniquely identify a tuple is known as candidate key. For example, STUD_NO in STUDENT relation. It is a minimal super key.

Additional InformationForeign keys:- The characteristic that establishes the relationship between tables is the foreign key of a table. A foreign key is a column or columns of data in one table that connects to the primary key data in the original table.

Primary key:- The very minimum set of characteristics necessary to identify each row in a database is known as the primary key. It is chosen from a list of potential keys. The primary key might be any candidate's key.

Reference key:- The primary key that is used as a reference in the other table is known as the Reference key.

In context of a relation in database, choose a false statement:

  1. There can be more than one super keys.
  2. A candidate key is a minimal super key.
  3. One of the candidate keys is designated as primary key.
  4. Primary key is obtained by removing one or more attributes from a candidate key.

Answer (Detailed Solution Below)

Option 4 : Primary key is obtained by removing one or more attributes from a candidate key.

Relational Model Question 11 Detailed Solution

Download Solution PDF

Super Key

  • It is an attribute (or set of attributes) that is used to uniquely identifies all attributes in a relation. 
  • All super keys can’t be candidate keys but its reverse is true. 
  • There can be more than one super key.
  • In relation, the number of super keys is always greater than or equal to the number of candidate keys.
  • There always exists at least one super key in a table.

Candidate key

  • It is a minimal set of attributes necessary to identify a tuple; this is also called a minimal super key.
  • Candidate key can be more than one.
  • One of the candidate keys is designated as the primary key.

Primary key

  • Candidate key from the table selected by the database administrator to uniquely identify tuples in a table known as the primary key.
  • Since the candidate is a minimal set of attributes necessary to identify a tuple therefore the primary key is also  a minimal set of attributes necessary to identify a tuple and hence primary key cannot be obtained by removing one or more attributes from a candidate key.

Therefore option 4 is false

Assume that AB → C, C  → D and D → A are simultaneously satisfied by a relation r(R). What are the candidate keys of this relation?

  1. AB, CD and AD
  2. AB and CD
  3. AB and DB
  4. ABCD and BC

Answer (Detailed Solution Below)

Option 3 : AB and DB

Relational Model Question 12 Detailed Solution

Download Solution PDF

If closure defined the complete relation then become the candidate key.

  • Closure of AB =  (AB)+ = {A,B,C,D}         /candidate key
  • Closure of BC =  (BC)+ = {A,B,C,D}        /candidate key
  • Closure of CD = (CD)+ = {C,D,A} 
  • Closure of DB = (DB)+= {B,C,D,A}         /candidate key
  • Closure of ABCD = (ABCD)+= {A,B,C,D}    /super key
  • Closure of AD = (AD)+ = {A,B,D}

The candidate keys are AB. BC, BD

Consider the schema R = (A, B, C, D, E, F) on which the following functional dependencies hold:

A ➝ B

B, C ➝ D

E ➝ C

D ➝ A

What are the candidate keys of R?

  1. AEF, BEF and DEF
  2. AEF, BEF and BCF
  3. AE and BE
  4. AE, BE and DE

Answer (Detailed Solution Below)

Option 1 : AEF, BEF and DEF

Relational Model Question 13 Detailed Solution

Download Solution PDF

Concept:

Candidate key: it is the set of attributes which uniquely identifies a relation. It is also known as superkey with no repeated attributes.

Explanation:

Given relation R = {A, B, C, D, E}

A ➝ B

B, C ➝ D

E ➝ C

D ➝ A

Find the closure of keys given. If all the attributes of relation are present in the closure, then it will be the candidate key of that relation.

Option1: AEF, BEF and DEF

(AEF)+ = {A, E, F, B, C, D}

(BEF)+ = {B, E, F, C, D, A}

(DEF)+ = {D, E, F, C, A, B}

These are the candidate keys of given relation.

Option2: AEF, BEF and BCF

(AEF)+ = {A, E, F, B, C, D}

(BEF)+ = {B, E, F, C, D, A}

(BCF)+ = {B, C, F, D, A}        / E is not present in the closure. Not the candidate key

Option3: AE and BE

(AE)+ = {A, E, C, B, D, }       /F is not present, not a candidate key

(BE)+ = {B, E, C, D, A}        /F is not present, not a candidate key

Option4: AE, BE and DE

(AE)+ = {A, E, C, B, D, }       /F is not present, not a candidate key

(BE)+ = {B, E, C, D, A}        /F is not present, not a candidate key

(DE)+ = {D, E, A, C, B}        /F is not present, not a candidate key

A minimal super key (i.e., one of the super keys for which no proper subset is a super key) is called:

  1. Super Key
  2. Candidate Key
  3. Primary Key
  4. Both Candidate and Primary Key

Answer (Detailed Solution Below)

Option 4 : Both Candidate and Primary Key

Relational Model Question 14 Detailed Solution

Download Solution PDF
  • A candidate key is a minimal super key or a super key with no redundant attribute.
  • It is called a minimal super key because we select a candidate key from a set of super keys such that the selected candidate key is the minimum attribute required to uniquely identify the table.
  • It is selected from the set of the super key which means that all candidate keys are super key.
  • Primary key is selected from the set of candidate keys and hence A minimal super key is called Candidate and Primary Key.

The following entities/attributes in a relational database should not have null values:

  1. keys 
  2. variables 
  3. relations 
  4. All options are correct 

Answer (Detailed Solution Below)

Option 1 : keys 

Relational Model Question 15 Detailed Solution

Download Solution PDF

The correct option is (1)

Keys

Concept:-

Every relation has at least one candidate key because at least the combination of all its attributes has a unique property. 

Key Points

  •  In the case of base relations, one candidate key is designated as the primary key and the remaining candidate keys are called alternate keys.
  • The terms 'key' has too many meanings in the database world. In the relational model alone, there are candidate keys, primary keys, alternate keys, foreign keys, search keys, and so on.
  • A null value is a special marker used in SQL to indicate that a data value does not exist in the database.
  • A related variable is a sign that can refer to various values at various times, hence the word variable.
  • The NOT NULL constraint ensures that the null value is never allocated to a column in a table.
Get Free Access Now
Hot Links: teen patti teen patti club apk teen patti master apk best teen patti neta