Saturday, 6 July 2024

ASP.Net MVC Core Interview Questions

 

1.     Defining preparation scope   

2.     What is ASPNET MVC Core ?   

3.     Can you explain the difference between MVC core vs MVC  vs Webforms?   

4.     Can you explain MVC Architecture?   

5.     Where do we store configuration in ASPNET Core ?   

6.     How can we read configuration file in ASPNET Core ?   

7.     What is dependency injection?   

8.     Why do we need dependency injection?   

9.     How to implement dependency injection?   

10.  Explain the concept of middleware?   

11.  How to implement middleware in MVC Core ?   

12.  Explain the importance of Startupcs file in ASPNET Core ?   

13.  Explain the various way of doing DI in MVC?   

14.  What are the various ways of doing session management in ASPNet Core ?   

15.  ConfigureServices vs Configure method ?   

16.  Explain Razor pages ?   

17.  How can we pass model data to the view ?   

18.  What is a strongly typed view ?   

19.  Explain the concept of viewModel ?   

20.  Explain kestrel web server ?   

21.  Why kestrel web server when we have IIS ?   

22.  Explain concept of reverse proxy ?   

23.  What are cookies ?   

24.  What is the need session management ?   

25.  What are the various ways of doing Session management in ASPNET ?   

26.  What exactly is a session ?   

27.  Explain "HTTP is a stateless protocol" ?   

28.  What are various way of doing session management ?   

29.  Are sessions enabled by default ?   

30.  How to enable sessions in MVC core ?   

31.  Are sessions variables shared(global) between users ?  

32.  Do session variables use cookies ?   

33.  What is a cookie ?   

34.  Explain idle time out in sessions ?   

35.  What does a Context means in HTTP ?   

36.  When should we use viewdata ?   

37.  How to pass data from controller to view ?   

38.  In same request can viewdata persist across actions ?   

39.  ViewBag vs ViewData ?   

40.  How does ViewBag work internally ?   

41.  Explain viewModels ?  

42.  ViewBag vs ViewModel Whats the best practice ?   

43.  Explain tempdata ?   

44.  Can tempdata persist across action redirects ?   

45.  How is tempdata different from viewdata ?   

46.  If tempdata is read is it available for next request ?   

47.  How to persist tempdata ?   

48.  What does Keep do in tempdata ?  

49.  Explain Peek in tempdata ?  

50.  How is tempdata different from session variables ?  

51.  If i restart the server does tempdata,session stay ?  

52.  Is tempdata private to a user ? 

53.  ViewData vs ViewBag vs Tempdata vs Session variables  

54.  What is WebAPI ?  

55.  What is the advantage of WebAPI ?  

56.  Explain REST and Architectural constraints of REST?  

57.  Can we use UDP/TCPIP protocol with Web API?  

58.  How WebAPI different from MVC controller ?  

59.  What is content negotiations in Web API ?  

60.  WebAPI vs WCF ? 

61.  WCF REST vs WebAPI REST ?  

62.  How to return HTTP status codes ?  

63.  For error which status code is returned ?  

64.  How did you secure your web API ?  

65.  How do current JS frameworks work with webAPI ?  

66.  Further questions for self learning  

67