Relationships interview questions

18 Relationships questions from the EF Core bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.

Free to start: the 2-minute IT readiness check — six questions and a result.

Take the free IT readiness check

or take a mock interview set up for this area

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

8. Which term means: "the dependent-side property holding the value that points back to the primary key of the principal row"?

Junior
  1. A.foreign key
  2. B.navigation property
  3. C.cascade delete
  4. D.principal and dependent

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

11. Which term means: "a reference or collection member on an entity that lets code traverse to related entities in object form"?

Junior
  1. A.many-to-many
  2. B.navigation property
  3. C.foreign key
  4. D.one-to-many

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

14. Which term means: "the two roles in an association where one end owns the key the other end refers to"?

Mid
  1. A.many-to-many
  2. B.one-to-many
  3. C.principal and dependent
  4. D.navigation property

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

17. Which term means: "the behavior where removing a principal row automatically removes the dependent rows that require it"?

Senior
  1. A.foreign key
  2. B.cascade delete
  3. C.many-to-many
  4. D.principal and dependent

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

Free to start

Start with a free readiness check

Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every Relationships question come with Pro.

Take the free IT readiness check

or take a mock interview set up for this area

24,000+ questions & coding problemsSoftware & IT16,274 questionsGovernment jobs26 examsAptitudenew questions every timeAI practice interviewwith feedback65 topics to practiseMechanical1,149 questionsGATE ME9 papersEngineering Mathematics381 questions2-minute checkfreeDSA Problems1,422Civil1,005 questionsGATE CE9 papersCS Fundamentals1,209 questionsYour scores6 skillsSystem Design25Electrical / EEE1,047 questionsGATE EE9 papersRun your codeC++ · Java · PythonLow-Level Design144Electronics & Comm.975 questionsGATE EC9 papersAI help on every questionFull-Stack6,282Chemical1,005 questionsGATE CH9 papersAI whiteboardsystem designWork abroadEurope · remote · transfersESE ME1 paperGATE practice papers2019–2026ESE CE1 paperDate alertsbefore the last dateESE EE1 paperBehavioural courseHR round practiceESE ET1 paperResume optimizerProSSC JE ME1 paperApplication trackerSSC JE CE1 paperCompany-wise prepSSC JE EE1 paperRole roadmapsRRB JE1 subjectPriced in ₹UPI · cardsISRO SC1 paperGATE CS9 papersIBPS SO IT1 paperUGC NET CS1 paperSSC CGL26 papersIBPS PO26 papersRRB NTPC26 papersSSC CHSL26 papersIBPS Clerk26 papersSBI Clerk26 papersRRB Group D26 papersSSC CPO26 papersSSC GD26 papers