Learning Partner

Persistent Angular 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.

  1. What git commands are used for creating a branch?
  2. What git command is used for switching branches?
  3. What is cherry-pick?
  4. What is the best way to handle errors globally in a project?
  5. Write interceptor code for attaching a token to every request and handling errors.
  6. How do you optimize performance in an Angular application?
  7. What steps would you follow to find the bottleneck in a slow application?
  8. What is the ideal time for an API to give a response?
  9. What is a CDN and what is it used for?
  10. What is vanilla JS?
  11. What are promises, Promise.all, race and allSettled?
  12. What are best practices to follow for performance in an Angular app?
  13. Explain the event loop.
  14. What is async/await and what is the difference between promises and async/await?
  15. Generator function output-based questions.
  16. Prototypal inheritance based questions.
  17. What is variance in TypeScript?
  18. What is the difference between any and unknown?
  19. What is the difference between "as" and generics?
  20. What is shadowing in JS?
  21. What is the output of parseInt('08', 10) versus parseInt('08')?
  22. Predict the output of a generator function that uses yield* and yield and returns 4 when next() is called several times.
  23. What is the difference between slice and splice?
  24. Predict the output when a property is set on an instance, deleted, and then deleted from the prototype (function A with A.prototype.p = 1).

Browse Angular question sets