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.
- What git commands are used for creating a branch?
- What git command is used for switching branches?
- What is cherry-pick?
- What is the best way to handle errors globally in a project?
- Write interceptor code for attaching a token to every request and handling errors.
- How do you optimize performance in an Angular application?
- What steps would you follow to find the bottleneck in a slow application?
- What is the ideal time for an API to give a response?
- What is a CDN and what is it used for?
- What is vanilla JS?
- What are promises, Promise.all, race and allSettled?
- What are best practices to follow for performance in an Angular app?
- Explain the event loop.
- What is async/await and what is the difference between promises and async/await?
- Generator function output-based questions.
- Prototypal inheritance based questions.
- What is variance in TypeScript?
- What is the difference between any and unknown?
- What is the difference between "as" and generics?
- What is shadowing in JS?
- What is the output of parseInt('08', 10) versus parseInt('08')?
- Predict the output of a generator function that uses yield* and yield and returns 4 when next() is called several times.
- What is the difference between slice and splice?
- 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).