Showing posts with label infosys .net interview questions. Show all posts
Showing posts with label infosys .net interview questions. Show all posts

Wednesday, February 15, 2023

Infosys .net Interview Questions

Infosys .net Interview Questions

2022-Jan

Position :SSE ,Skills : Asp.net Core, C#.net , Oops, Design Patterns ,Sql Server

  1. How do you use dependency Injection in asp.net core ?
  2. Can you please explain DI container service lifetime ?
  3. Can you explain the concept of async programming in C# and give an example of how you have used it in a project? 
  4. Can you write a sample Asynchronous programming code to serve the web api request ?
  5. how you would implement security in an ASP.NET Core web application and how can you handle authentication and authorization ?
  6. Can you give an example of how to implement a RESTful API in ASP.NET Core?
  7. Can you walk me through how you would implement unit testing in an ASP.NET Core application using xUnit or MSTest ?
  8. Can you discuss your experience with designing and implementing multithreaded applications in C#?
  9. Can you give an example of using delegates in C#?
  10. Can you write a sample piece of code to query a Employeecontext with dynamic parameters by using lambda expressions, let’s say I have dictionary variable
  11. Eg:   Dictionary<string, string> employe= 
  12.            new Dictionary<string, string>();
  13.             employe.Add("EmpName", "Subhash");
  14.             employe.Add("Department", "IT");
  15.  
  16.  Can you explain how do you implemented security for web API ?
  17. Ans : I said like we implemented JWT tokens
  18. Can you walk through the how JWT token works ? and how do you validate the token is expired or not ?
  19. How do you identify from execution plan the query is not optimized ?