TCS Angular + .NET Interview Questions for 4+ years
Shared question set for 4+ years of experience, L1 round. Topics and wording follow the supplied notes; these are questions, not official company guidance.
- Explain your current project, your role in it, its domain and user count.
- Explain the complete flow from Angular to Web API to Business Layer to Database.
- Which modules/features have you developed personally?
- What is Dependency Injection in .NET and why do we use it?
- Explain Transient, Scoped and Singleton. Where have you used them?
- What is Middleware in ASP.NET Core?
- How do you handle exceptions globally in a Web API?
- How does JWT authentication work between Angular and a .NET API?
- Explain Authentication and Authorization. How have you achieved them?
- What is async/await and why do we use it?
- What is the difference between Task and Thread?
- Have you integrated a third-party API?
- With Entity Framework, do we have to depend on stored procedures? Do you have experience with complex stored procedures? You may be asked to write one.
- A SQL query is taking 10 seconds. How would you investigate it?
- What is the difference between IEnumerable and IQueryable? What are the use cases for SingleOrDefault, Find and FirstOrDefault?
- What is AsNoTracking() and when would you use it?
- What are pipes in Angular?
- What are the use cases of services in Angular?
- How do you share data between parent and child components?
- What is the difference between Subject, BehaviorSubject and ReplaySubject?
- What is an HTTP interceptor? Where have you used it?
- How do you protect pages that should only be accessible after login?
- If an API returns 10,000 records, would you load everything in Angular? What would you do?
- How do you handle different API URLs/configuration for Dev, QA, UAT and Production?
- Have you worked with PrimeNG components?
- Do you have exposure to NgRx? Is your project using it?
- Explain how your Angular + .NET application gets deployed to Production.