Learning Partner

Other Companies (Name Not Shared) Angular Interview Questions for Not specified

Shared question set for Not specified of experience, Angular, RxJS, forms and JavaScript. Topics and wording follow the supplied notes; these are questions, not official company guidance.

  1. Output of a for loop with var and setTimeout (i < 5, 1 second delay). How do you fix it to print 0 1 2 3 4 without using let?
  2. Given an array of objects (name, city), group the names by city. Expected output: { Bangalore: [Rahul, Rohit, Ram], Mumbai: [James] }.
  3. What is an Observable? How is it different from a Promise?
  4. Subject vs BehaviorSubject vs ReplaySubject.
  5. A search box calls the API on every keystroke and previous requests should not go through. Which operator will you use? Are the previous subscriptions cancelled?
  6. How do you restrict unauthenticated users or role-based access to pages? Which route guard would you use for a role-specific route? Which guard avoids loading the entire module?
  7. How do you fetch data before a route is activated?
  8. Have you worked on reactive forms? How do you handle conditional validators (a subscribe checkbox that makes the email field required)?
  9. How do you validate that confirm password matches password in a reactive form?
  10. What are mixins in CSS?
  11. How do you place a loader exactly in the middle of the screen?
  12. What are generics in TypeScript? Give an example.
  13. How have you used a custom component in AG Grid in your project?
  14. Build a timer using setInterval that shows hh:mm:ss (starting from 0).

Browse Angular question sets