
EF,ASP.NET,MVC, Microservices For YP
Authored by Dotnet Quiz
Professional Development
Professional Development
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
50 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is Entity Framework?
A database management system
An Object-Relational Mapping (ORM) framework
A web development framework
A testing framework
None of these
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which approach is used when you start with an existing database in Entity Framework?
Code First
Model First
Database First
Schema First
None of these
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is DbContext in Entity Framework?
A database connection string
A class that represents a session with the database
A data annotation attribute
A LINQ query provider
None of these
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which LINQ method is used to retrieve a single entity by its primary key?
Single()
First()
Find()
Where()
None of these
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the [Required] attribute do in Entity Framework?
Makes a property optional
Makes a property mandatory/not null
Sets default value for a property
Creates an index on the property
None of these
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to save changes to the database in Entity Framework?
Commit()
Save()
SaveChanges()
Update()
None of these
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is lazy loading in Entity Framework?
Loading data slowly
Loading related data automatically when accessed
Loading data in background
Loading data without queries
None of these
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?