Learning Partner

Nagarro Angular Interview Questions for 5-7 years

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

  1. Explain prototype in JavaScript.
  2. What are polyfills and explain a real-time use case.
  3. What is the difference between shallow copy and deep copy? What are the various ways to achieve a deep copy?
  4. What is the difference between spread and rest operators? Explain object destructuring.
  5. What are callbacks and pure functions?
  6. What is the role of angular.json?
  7. What is JIT and AOT? What is the difference between them?
  8. How can a singleton service be shared only among a few components?
  9. What is the difference between @ViewChild and @ContentChild?
  10. What is change detection?
  11. What is the difference between Promise and Observable?
  12. How do you add dynamic fields in Reactive Forms?
  13. In Angular routing, when navigating from Com1 to Com2, how can we prevent the Back button from returning to Com1?
  14. Demonstrate role-based routing (pseudo code in notepad).
  15. Demonstrate how an Observable works (pseudo code in notepad).
  16. How does virtual scroll improve performance?
  17. How do you optimize Angular application performance?
  18. What is deferred loading?
  19. What are dumb and smart components?
  20. How can we use Signals for state management?
  21. Predict the output of a snippet with console.log("Start"), setTimeout(0), Promise.resolve().then and console.log("End").
  22. Predict the output of an async function that logs 1, awaits a Promise.then, then schedules a setTimeout and logs 2.
  23. Predict the output of: "test".includes(""), "abc".includes(""), "".includes(""), [] == false, [] === false.

Browse Angular question sets