ASP.NET Quiz
See how much you remember from the ASP.NET Core tutorial. Answer each question and read the explanation.
Before You Start
- Answer from memory first
- For every wrong answer, go back to that lesson and run its example again
- A score of 7 or more out of 9 means you are ready for a small project
Quiz Questions
Exercise
1. On which operating systems does ASP.NET Core run?
Exercise
2. Which file is the starting point of an ASP.NET Core app?
Exercise
3. In Razor, which symbol switches from HTML to C#?
Exercise
4. What URL does the file Pages/Admin/Students.cshtml get?
Exercise
5. What does [BindProperty] do on a PageModel property?
Exercise
6. Why redirect after a successful form post?
Exercise
7. Which result returns status code 404?
Exercise
8. In EF Core, what does a DbSet<Student> represent?
Exercise
9. Which command applies migrations and creates or updates the database?
What Next?
Great work! Build a small project, such as a student admission system with Razor Pages and SQLite. Then learn about ASP.NET Core Identity for logins, and keep your project safe on GitHub using Git.
