Relationships interview questions

18 real Relationships questions from the EF Core bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.

1. What is one-to-many?

Junior
  1. A.a reference or collection member on an entity that lets code traverse to related entities in object form
  2. B.an association, supported directly since version 5, where rows on both sides relate to multiple rows on the other through an implicit join table
  3. C.an association where a single principal row is referenced by many dependent rows, the most common relationship cardinality
  4. D.the behavior where removing a principal row automatically removes the dependent rows that require it
Reveal the answer + AI explanation — free account

2. Which term means: "an association where a single principal row is referenced by many dependent rows, the most common relationship cardinality"?

Junior
  1. A.cascade delete
  2. B.principal and dependent
  3. C.foreign key
  4. D.one-to-many
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Junior
  1. A.one-to-many — the behavior where removing a principal row automatically removes the dependent rows that require it
  2. B.one-to-many — an association where a single principal row is referenced by many dependent rows, the most common relationship cardinality
  3. C.one-to-many — the two roles in an association where one end owns the key the other end refers to
  4. D.one-to-many — an association, supported directly since version 5, where rows on both sides relate to multiple rows on the other through an implicit join table
Reveal the answer + AI explanation — free account

4. What is many-to-many?

Mid
  1. A.the two roles in an association where one end owns the key the other end refers to
  2. B.the behavior where removing a principal row automatically removes the dependent rows that require it
  3. C.an association where a single principal row is referenced by many dependent rows, the most common relationship cardinality
  4. D.an association, supported directly since version 5, where rows on both sides relate to multiple rows on the other through an implicit join table
Reveal the answer + AI explanation — free account

5. Which term means: "an association, supported directly since version 5, where rows on both sides relate to multiple rows on the other through an implicit join table"?

Mid
  1. A.navigation property
  2. B.one-to-many
  3. C.principal and dependent
  4. D.many-to-many
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Mid
  1. A.many-to-many — the behavior where removing a principal row automatically removes the dependent rows that require it
  2. B.many-to-many — an association, supported directly since version 5, where rows on both sides relate to multiple rows on the other through an implicit join table
  3. C.many-to-many — an association where a single principal row is referenced by many dependent rows, the most common relationship cardinality
  4. D.many-to-many — the two roles in an association where one end owns the key the other end refers to
Reveal the answer + AI explanation — free account

7. What is foreign key?

Junior
  1. A.an association, supported directly since version 5, where rows on both sides relate to multiple rows on the other through an implicit join table
  2. B.the two roles in an association where one end owns the key the other end refers to
  3. C.a reference or collection member on an entity that lets code traverse to related entities in object form
  4. D.the dependent-side property holding the value that points back to the primary key of the principal row
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Junior
  1. A.foreign key — an association where a single principal row is referenced by many dependent rows, the most common relationship cardinality
  2. B.foreign key — the two roles in an association where one end owns the key the other end refers to
  3. C.foreign key — a reference or collection member on an entity that lets code traverse to related entities in object form
  4. D.foreign key — the dependent-side property holding the value that points back to the primary key of the principal row
Reveal the answer + AI explanation — free account

10. What is navigation property?

Junior
  1. A.the dependent-side property holding the value that points back to the primary key of the principal row
  2. B.an association, supported directly since version 5, where rows on both sides relate to multiple rows on the other through an implicit join table
  3. C.the two roles in an association where one end owns the key the other end refers to
  4. D.a reference or collection member on an entity that lets code traverse to related entities in object form
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Junior
  1. A.navigation property — an association where a single principal row is referenced by many dependent rows, the most common relationship cardinality
  2. B.navigation property — a reference or collection member on an entity that lets code traverse to related entities in object form
  3. C.navigation property — an association, supported directly since version 5, where rows on both sides relate to multiple rows on the other through an implicit join table
  4. D.navigation property — the two roles in an association where one end owns the key the other end refers to
Reveal the answer + AI explanation — free account

13. What is principal and dependent?

Mid
  1. A.an association where a single principal row is referenced by many dependent rows, the most common relationship cardinality
  2. B.the two roles in an association where one end owns the key the other end refers to
  3. C.an association, supported directly since version 5, where rows on both sides relate to multiple rows on the other through an implicit join table
  4. D.the behavior where removing a principal row automatically removes the dependent rows that require it
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Mid
  1. A.principal and dependent — a reference or collection member on an entity that lets code traverse to related entities in object form
  2. B.principal and dependent — the behavior where removing a principal row automatically removes the dependent rows that require it
  3. C.principal and dependent — the two roles in an association where one end owns the key the other end refers to
  4. D.principal and dependent — an association, supported directly since version 5, where rows on both sides relate to multiple rows on the other through an implicit join table
Reveal the answer + AI explanation — free account

16. What is cascade delete?

Senior
  1. A.an association, supported directly since version 5, where rows on both sides relate to multiple rows on the other through an implicit join table
  2. B.the dependent-side property holding the value that points back to the primary key of the principal row
  3. C.the two roles in an association where one end owns the key the other end refers to
  4. D.the behavior where removing a principal row automatically removes the dependent rows that require it
Reveal the answer + AI explanation — free account

18. Which statement is correct?

Senior
  1. A.cascade delete — an association, supported directly since version 5, where rows on both sides relate to multiple rows on the other through an implicit join table
  2. B.cascade delete — the behavior where removing a principal row automatically removes the dependent rows that require it
  3. C.cascade delete — an association where a single principal row is referenced by many dependent rows, the most common relationship cardinality
  4. D.cascade delete — the dependent-side property holding the value that points back to the primary key of the principal row
Reveal the answer + AI explanation — free account

Free to start

Answers, AI explanations, and a scored voice mock interview

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.

Practice Relationships free