IBM Angular Interview Questions for 3+ years
Shared question set for 3+ years of experience. Topics and wording follow the supplied notes; these are questions, not official company guidance.
- What is the difference between var, let, and const?
- What is hoisting in JavaScript?
- What is a closure? Have you used closures anywhere?
- What is the difference between == and ===?
- What is the difference between map(), filter() and reduce()?
- What is a callback function?
- What is the difference between a Promise and an Observable?
- Suppose I give you an array of employees. How will you find only the employees whose salary is greater than 50,000?
- Explain your current Angular project. Which modules/features have you worked on?
- What is a component in Angular?
- What are directives? What types of directives have you used?
- What is data binding? What are the different types of data binding in Angular?
- What are lifecycle hooks? Which lifecycle hooks have you used in your project? In which lifecycle hook would you normally call an API?
- How does routing work in Angular?
- How will you navigate from one component to another and pass an ID with the route?
- How do you share data between parent and child components? Suppose two components don't have a parent-child relationship. How will you share data between them?
- Why do we create services in Angular?
- What are pipes? Have you created any custom pipes?
- What is the difference between Template-Driven Forms and Reactive Forms? Which one have you used?
- How do you add required, minLength or custom validation to a Reactive Form?
- I give you an API URL which returns an array of employees. You need to display those employees in a table. How will you implement it from API call to UI?
- Some pages should only be accessible after the user logs in. How will you implement this in Angular?
- How do you avoid memory leaks in an Angular application?
- Do you have experience working with a role-based application?
- How is your current project deployed to the live server?
- Have you created any custom directive in your project?
- What is the difference between Subject and BehaviorSubject?