Work
Work
Code First and Database First are mutually exclusive, and you must choose one
approach exclusively for an entire project.
a) True
b) False
In Code First, you can re-define the database schema using code-first migrations
after the initial model creation.
a) True
b) False
The Entity Data Model Designer in Database First allows you to visually design and
edit the database schema.
a) True
b) False
Which LINQ operator is used for joining two tables based on a common key?
a) Merge
b) Connect
c) Join
d) Combine
What is the annotation attributes that allows for the auto-generation of a field?
a) [DatabaseGenerated(DatabaseGenerated.Identity.Option)]
b) [AutoGenarateField(DatabaseGeneratedOption.Identity)]
c) [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
d) [DatabaseGeneratedField(DatabaseGeneratedOption.Identity)]
Which component of MVC handles the user interface and presentation logic?
a) Model
b) Repository
c) Controller
d) View
The Model First approach allows you to define the database schema visually and
generate entity classes from it.
a) True
b) False
Database First approach automatically generates the database schema based on the
entity classes without any additional configuration.
a) True
b) False
In Database First, any changes made to the entity classes are automatically
reflected in the database schema.
a) True
b) False
Code First migrations can automatically update the database schema when changes are
made to the entity classes.
a) True
b) False