Infosys Angular Interview Questions for 2 years
Shared question set for 2 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 a closure, and what types of scope are there in JavaScript?
- What is a callback function?
- What is the difference between find and filter? How do you check whether a specific element is present in an array?
- What is the difference between call, apply, and bind?
- What are the ES6 features?
- What is the difference between localStorage and sessionStorage?
- What is the difference between null and undefined?
- Using Date methods, extract the day, month, and year and create a formatted date string.
- What is the time complexity of the Array filter and find methods?
- Print the Fibonacci series.
- Create an ecommerce product object containing a nested object and an array of objects.
- What are components and modules?
- What is data binding?
- What is a directive? Can we create a custom structural directive like *ngIf?
- What is a pipe, and which command creates a custom pipe?
- What is the use of a service?
- Why is routing an important building block in Angular?
- How do you navigate with query parameters?
- What is the difference between template-driven and reactive forms?
- What are the different ways to create a reactive form?
- How have you handled API errors in your project?
- Create a reusable show-more/show-less component using @Input for the text and character limit. Then show the complete text as a tooltip using the title attribute with property binding.