TCS Angular Interview Questions for 5+ years
Shared question set for 5+ years of experience, Technical round. Topics and wording follow the supplied notes; these are questions, not official company guidance.
- What is a closure in JavaScript?
- What is an execution context in JavaScript?
- How does Angular bootstrap an application?
- What are Signals? In which scenarios would you prefer Signals over BehaviorSubject?
- What is Dependency Injection and why do we use it? How would you inject a service at the component level? What does a singleton object mean?
- How do you create a custom validator? How would you create a validator for a scenario like "enter email or password"?
- What are the different types of forms in Angular? How would you achieve two-way data binding using Reactive Forms?
- Explain change detection and Zone.js.
- What is the difference between switchMap, concatMap, mergeMap, and exhaustMap? What are their practical use cases?
- What is the difference between cold and hot observables?
- What is the difference between CanActivate and CanActivateChild?
- Explain the Angular lifecycle hooks and their execution order.
- How would you implement parent-child communication?
- How would you implement communication between sibling components?
- How would you improve the performance of an Angular application? For example, lazy loading, trackBy, pagination, etc.
- What are some approaches you would use to handle performance issues with large lists?
- How do you optimize images in a web application?
- Do you have experience with unit testing?
- How do you use AI for development after you have gathered the requirements of a feature?
- Will you be open to working on React.js or Next.js as well?
- Any exposure to cloud?