21 real Modeling 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 entity?
Junior
A.a type that has no identity of its own and is always persisted as part of its owner, typically mapped into the same table
B.a plain CLR class whose instances map to rows of a table in the model
C.the default rules that infer keys, table names, and column types from class and property names without explicit configuration
D.attributes placed directly on classes and properties, such as Key or Required, that declare mapping rules inline
A.conventions — the default rules that infer keys, table names, and column types from class and property names without explicit configuration
B.conventions — the chained method-based configuration written in OnModelCreating that overrides conventions and annotations with the highest precedence
C.conventions — a plain CLR class whose instances map to rows of a table in the model
D.conventions — a type that has no identity of its own and is always persisted as part of its owner, typically mapped into the same table
11. Which term means: "the chained method-based configuration written in OnModelCreating that overrides conventions and annotations with the highest precedence"?
A.Fluent API — the overridable method receiving a ModelBuilder where the shape of the model is configured programmatically
B.Fluent API — the chained method-based configuration written in OnModelCreating that overrides conventions and annotations with the highest precedence
C.Fluent API — a field that exists in the model and is stored in the database but has no corresponding CLR property on the entity class
D.Fluent API — attributes placed directly on classes and properties, such as Key or Required, that declare mapping rules inline
A.shadow property — the chained method-based configuration written in OnModelCreating that overrides conventions and annotations with the highest precedence
B.shadow property — a field that exists in the model and is stored in the database but has no corresponding CLR property on the entity class
C.shadow property — a type that has no identity of its own and is always persisted as part of its owner, typically mapped into the same table
D.shadow property — attributes placed directly on classes and properties, such as Key or Required, that declare mapping rules inline
A.owned entity type — attributes placed directly on classes and properties, such as Key or Required, that declare mapping rules inline
B.owned entity type — the chained method-based configuration written in OnModelCreating that overrides conventions and annotations with the highest precedence
C.owned entity type — the overridable method receiving a ModelBuilder where the shape of the model is configured programmatically
D.owned entity type — a type that has no identity of its own and is always persisted as part of its owner, typically mapped into the same table
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.