• +91 9723535972
  • info@interviewmaterial.com

RxJS Interview Questions and Answers

RxJS Interview Questions and Answers

Question - 61 : -
What is NgRx?

Answer - 61 : -

NgRx stands for Angular Reactive Extensions, NgRx Store provides reactive state management for Angular apps inspired by Redux. NgRx has libraries for managing both global and local state. Isolation of side effects in order to achieve a more streamlined component architecture. Developer tooling that makes it easier for developers to construct a variety of applications

Question - 62 : -
What is the Reactive Manifesto?

Answer - 62 : -

Reactive Manifesto helps in defining the core principles of reactive programming and it underpins the principles of reactive programming.

Types of Reactive Systems are as follows:

  • Responsive – helps in detecting and dealing the problems quickly, by providing rapid and consistent response times.It also simplifies error handling, builds end user confidence, and encourages further interaction.
  • Resilient – it helps in recovering each componenet that are delegated with external component and also ensures high availibility by replication.
  • Elastic – helps by implying designs which have no contention points in resulting the ability for sharding and replicating components.
  • Message Driven – acts as an asynchronous message-passing for establishing a boundary between the components that ensures loosecoupling, isolation and location transparency.

Question - 63 : -
What is the difference between Imperative, Functional and Reactive Programming?

Answer - 63 : -

Imperative Programming: Imperative programming is a programming paradigm where each line of code is sequentially executed to produce the desired result. This programming paradigm forces programmers to write “how” a program will solve a certain task.

Functional Programming: Functional programming is a programming paradigm where we can set everything as a result of a function that avoids changing states and mutating data.

Reactive Programming: Reactive programming is a programming paradigm with asynchronous data streams or event streams. An event stream can be anything like keyboard inputs, button taps, gestures, GPS location updates, accelerometer, iBeacon etc. Here, we can listen to a stream and react to it according to the situation.

Question - 64 : -
What are the operators in RxJS ?

Answer - 64 : -

Some of the operators in RxJS are as follows-

  • tap()
  • catchError()
  • switchAll()
  • finalize()
  • throwError() etc..


NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners