JP Morgan Chase Angular Interview Questions for 5+ years
Shared question set for 5+ years of experience. Topics and wording follow the supplied notes; these are questions, not official company guidance.
- What are Core and Shared modules? Explain the difference with a practical example.
- Give a practical example of the fromEvent operator.
- What are practical use cases of pure and impure pipes in industry?
- What are an access token and a refresh token?
- How can you improve Angular application performance?
- What is Angular Universal and why is it used?
- How can you dynamically load a component in Angular?
- How do you create a custom pipe in Angular? Write code.
- What is the role of the Injector in Angular?
- What are Angular guards and their different types?
- What is trackBy in ngFor and why is it important?
- What is ngZone in Angular?
- Explain Angular lifecycle hooks and their real usage.
- What is the difference between template-driven and reactive forms?
- Explain the Angular change detection mechanism.
- What is the purpose of the @Input and @Output decorators?
- What is the difference between hot and cold observables?
- Create a service in Angular and perform CRUD operations. Write generic reactive form code with validations.
- Can we write [ngIf]? If yes, how? If no, explain.
- What is the difference between constructor and ngOnInit?
- How do you secure Angular applications from XSS attacks?
- Explain RxJS operators.
- What is the difference between ViewChild and ContentChild?
- How would you debug an Angular application?
- Write code using switchMap, concatMap, mergeMap and forkJoin in scenario-based examples.
- Write code where an API fails the first time and succeeds the second time.