Sunday, December 15, 2019

Angular 2+ interview questions

This post summaries the interview questions commonly asked in Angular interviews based on the experience. You can find the answer for most of the questions in angular.io site itself. Here I just try to give few hints for the few questions. Prepare yourself for the remaining questions.

List of questions asked in interviews ?

  • What is the architecture of Angular ?
Tell your own story with this image.

  • What are the main features of angular ?
    1. Cross platforms - Progressive web apps, Native and desktop
    2. Speed and performance - Light weight due to differential loading
    3. Productivity - Angular CLI, IDEs
    4. Testing - Karma
    5. Animation - High performance animations
    6. Accessibility - ARIA enabled components
  • What is the different between angular modules and javascript modules?
    1. Angular NgModule is different from javascript modules.
    2. In javascript, each file is a module and objects defined in that file belongs to that module.
    3. Javascript exposes the object defined in a module using export keyword and import the objects in another module using import.
    4. Angular module is just a class decorated with NgModule decorator which is a building block of angular application.
    5. Angular modules are responsible for a work flow or a closely related set of capabilities. We can import one module into another to use the capabilities.
  • What is the difference between angular and angularJS?
  • What is metadata?
  • What is decorator?
  • What is dependency injection?
  • Tell me about angular life cycle hooks?
  • Tell me about angular compilation process?
  • What is difference between AOT and JIT?
  • Explain about angular bootstrapping?
  • Tell me about types of forms in angular ?
  • What is the difference between ngAfterContentInit and ngAfterViewInit ?
  • What is the difference between observable and a promise ?
  • What is a pipe in angular?
  • What is a polyfill?
  • Tell me about routing in angular ?
  • What is the difference between ForChild and ForRoot?
  • Tell me about server side rendering in angular ?
  • What is the difference between compilation and transpilation?
  • What is ngZone?
  • Explain about angular change detection?
  • What is view encapsulation in angular?
  • What is the difference between pure and impure pipe?
  • What is lazy loading?
  • What is internalization in angular ? 
  • What is service worker in angular ?
  • What is differential loading?
  • What is renderer in angular?
  • Why we should use renderer ?
  • Tell me about angular project file structure?
  • What for package.lock file ?
  • What is proxy.config file?
  • What is the use of tsconfig.json file?
  • What is a web worker ?
  • How will you refer external scripts in angular ?
  • What is the security feature in angular?
  • What is XSS attack and how can we avoid it?
  • How to create a nested routing?
  • What is immutability in angular ?
  • What is the life cycle of a service?
  • What is the use of BrowserModule and CommonModule?
  • What kind of importing is used in angular?
  • How will you communicate between components?
  • When will you use ngDoCheck ?
  • What is a directive? Tell me about its types?
  • What is the difference between viewChild and viewChildren?
  • Explain about ngContent, ngTemplate and ngContainer ?
  • What is the difference between reactive and template driven forms?
  • What is a entry component?
  • What is the use main.ts?
  • What is the difference between Subject and Behaviour subject?
  • What is a feature module? What are the types?
  • What is a provider?
  • What is the difference between useClass and useFactory?
  • How will you make one module available to other modules?
  • What if I import the same module twice?
  • Can we re-export classes and modules?
  • Why is a service provided in a lazy-loaded module visible only to that module system?
  • What if two modules provide the same service?
  • Why does lazy loading create a child injector?
  • Why does Angular need entryComponents?
  • What is a template reference?

I will update the answers when ever I get time. All the best.

7 comments:

  1. The main motive of the Automated big data engineering is to spread the knowledge so that they can give more big data engineers to the world.

    ReplyDelete
  2. The information which you have provided in this blog is really useful to everyone. Thanks for sharing.
    Mean Stack Online Training

    Mean Stack Training in Hyderabad

    ReplyDelete
  3. Thanks for the wonderful share. Your article has proved your hard work and experience you have got in this field. Brilliant. I love it reading. AngularJs Development CompanyHire AngularJs Developers

    ReplyDelete
  4. Good day. I was impressed with your article. Keep it up . You can also visit my site if you have time. Thank you and Bless you always.
    Angular js Development company in India

    ReplyDelete

Whats new in Angular 8

Angular 8 was released in May 2019 and  th e key features of angular 8 are as follows in brief, Differential loading Dynamic imports ...