This set of 30 multiple-choice questions (MCQs) covers essential topics related to ASP.NET Core for web development. It includes questions on MVC Architecture, RESTful API Development, Entity Framework Core, Authentication, Authorization, and Middleware. Perfect for anyone looking to master web development using C# and ASP.NET Core.
UseExceptionHandler methodCatchExceptions middleware| Qno | Answer (Option with Text) |
|---|---|
| 1 | B) Build web applications and APIs |
| 2 | C) ASP.NET Core 8 |
| 3 | C) Built-in support for Web Forms |
| 4 | B) In a Linux or Windows environment |
| 5 | A) Visual Studio |
| 6 | D) Controller |
| 7 | C) Controllers |
| 8 | B) Model |
| 9 | A) By returning a View |
| 10 | B) [Controller] |
| 11 | C) GET |
| 12 | C) To allow communication between client and server |
| 13 | A) [Route] |
| 14 | C) JSON |
| 15 | C) HttpPost() |
| 16 | B) To perform database operations |
| 17 | A) SaveChangesAsync() |
| 18 | B) To handle database connections and queries |
| 19 | D) All of the above |
| 20 | D) Both B and C |
| 21 | A) To ensure the user has proper access rights |
| 22 | C) CookieAuthentication |
| 23 | A) [Authorize] |
| 24 | D) JWT Tokens |
| 25 | B) To assign permissions and roles to users |
| 26 | B) A set of components that handle HTTP requests and responses |
| 27 | C) UseMiddleware() |
| 28 | D) All of the above |
| 29 | A) Using the UseExceptionHandler method |
| 30 | A) Authentication → Authorization → MVC |