Learning Partner

IBM Angular Interview Questions for 5 years

Shared question set for 5 years of experience, L1 round. Topics and wording follow the supplied notes; these are questions, not official company guidance.

  1. Explain the event loop with execution context and call stack.
  2. JavaScript is single-threaded, so how does it handle asynchronous operations?
  3. What is a closure? Explain with an example.
  4. Output-based question with block-scoped let x inside an if block and an outer let x in a function.
  5. Output-based question with an async function that logs 1, awaits a Promise.then, schedules a setTimeout, and logs 2.
  6. Mask email problem: given ['john.doe@gmail.com','aem@gmail.com',undefined,'ab@gmail.com','user123@yahoo.com',null], return masked emails like 'j******e@gmail.com' and skip null/undefined values.
  7. What is change detection? What is the use case of OnPush?
  8. What is zone.js?
  9. If 3 widgets out of 5 are not loading in a dashboard, how will you debug it? How will you identify and fix memory leaks?
  10. What are Angular application performance optimization techniques?
  11. How will you protect an application from XSS attacks?
  12. How will you implement multi-layer encryption?
  13. What is the difference between Subject, BehaviorSubject, ReplaySubject, and AsyncSubject?
  14. Write code with forkJoin, mergeMap, switchMap, concatMap and exhaustMap using API calls and explain the behavior in the network tab.
  15. As we have RxJS, what is the need for Signals? What are the different types of Signals? When do you use the set and update methods to change a Signal value?
  16. What do you know about interceptors? Can we use interceptors to achieve mocking?
  17. Demonstrate an SCSS function, include, and mixin.

Browse Angular question sets