Learning Partner

Other Companies (Name Not Shared) Angular Interview Questions for 7+ years

Shared question set for 7+ years of experience, L2 round, MNC (Angular + React). Topics and wording follow the supplied notes; these are questions, not official company guidance.

  1. Explain Angular component lifecycle hooks.
  2. What is the use of the constructor and ngOnInit?
  3. How do we pass data between components? (Subject, BehaviorSubject, query parameter, ViewChild, Signals, Input and Output, service variable)
  4. Within a sprint both the UI and API teams started and UI work is done but the API is not ready. How do you test the whole code without the API and how do you mock the API response?
  5. Structural directives and control flow: which do you prefer in the latest Angular?
  6. How can you create a custom directive which behaves like *ngIf (for example, role-based show/hide)?
  7. setInterval or RxJS timer: which guarantees execution at the same interval?
  8. What is the difference between ng-container and ng-template?
  9. What is a custom pipe real use case in your project?
  10. Which RxJS operators have you used?
  11. Search box API call: which RxJS operator would you use for caching the API response?
  12. How do you implement a common search box in the navbar that works from all pages instead of having a search box in every page?
  13. How do you reduce unnecessary and duplicate API calls?
  14. What are hot and cold observables?
  15. When we want to keep track of a stream of data, what do you use?
  16. What is the combineLatest use case?
  17. NgRx store implementation (basic flow only asked).
  18. Unit testing in Angular (Jasmine, Karma): comfort level.
  19. Angular app performance optimization and what structure was followed in the existing project.
  20. Routing and reading query params.
  21. How do you handle big forms if we have more than 100 fields in a form?
  22. If the same app is developed in React.js and Angular, which one will be faster? If you had to choose between Angular and React, what parameters would you consider for your next project?
  23. React.js performance: useRef, useEffect, axios.

Browse Angular question sets