ASP.NET 500 QUESTIONS AND ANSWERS | PART-1
- Version
- Download 611
- File Size 4.00 KB
- File Count 1
- Create Date January 15, 2025
- Last Updated February 6, 2025
ASP.NET 500 QUESTIONS AND ANSWERS | PART-1
Basic Questions
1.What is ASP.NET Core?
2. How is ASP.NET Core different from traditional ASP.NET?
3. What is the role of the Startup.cs file in ASP.NET Core?
4. What is dependency injection in ASP.NET Core?
5. How do you configure services in ASP.NET Core?
6. What is Middleware in ASP.NET Core?
7. What is a controller in ASP.NET Core MVC?
8. What is a view in ASP.NET Core MVC?
9. How do you create a new ASP.NET Core project?
10. What is the purpose of Program.cs in ASP.NET Core?
11. What is ViewData in ASP.NET Core MVC?
12. What is ViewBag in ASP.NET Core MVC?
13. What is Razor syntax in ASP.NET Core?
14. What is a model in ASP.NET Core MVC?
15. What is a DbContext in Entity Framework Core?
16. What is the appsettings.json file used for?
17. How do you add a new controller in ASP.NET Core?
18. What is the role of Configure method in Startup.cs?
19. How can you manage static files in ASP.NET Core?
20. What is model binding in ASP.NET Core MVC?
21. How do you use Entity Framework in ASP.NET Core?
22. How do you handle HTTP requests in ASP.NET Core?
23. What is IActionResult used for in ASP.NET Core?
24. How can you send data from controller to view?
25. How can you send data from view to controller?
26. How can you configure a connection string in ASP.NET Core?
27. What is the purpose of services.AddDbContext in ASP.NET Core?
28. What is a RedirectToAction in ASP.NET Core MVC?
29. What is the difference between ViewData and TempData?
30. How do you use dependency injection in controllers?
31. What is a singleton service in ASP.NET Core?
32. How do you secure an ASP.NET Core application with HTTPS?