All fields

“RxJS & Observables” in Information Technology

24 questions across 1 technology.

Information Technology

24 questions in 1 technology

#QuestionTechnologyTopicLevel
1What is an observable in RxJS, and how is it different from a promise? Angular › RxJS & ObservablesAngularRxJS & ObservablesBeginner
2What do the map, filter, and switchMap RxJS operators do, and when would you use each? Angular › RxJS & ObservablesAngularRxJS & ObservablesIntermediate
3What is the difference between a Subject, a BehaviorSubject, and a ReplaySubject in RxJS? Angular › RxJS & ObservablesAngularRxJS & ObservablesIntermediate
4Why is it important to unsubscribe from an RxJS observable, and what are common ways to do this correctly in Angular? Angular › RxJS & ObservablesAngularRxJS & ObservablesIntermediate
5How would you combine two or more observables together, such as combining a user's search term and a selected filter category? Angular › RxJS & ObservablesAngularRxJS & ObservablesAdvanced
6Why did Angular introduce signals, given that RxJS observables already existed for managing changing values? Angular › Angular SignalsAngularAngular SignalsBeginner
7How do signals simplify state management compared to relying entirely on RxJS observables? Angular › State ManagementAngularState ManagementIntermediate
8How does the async pipe simplify working with observables directly in an Angular template? Angular › Pipes (Built-in & Custom)AngularPipes (Built-in & Custom)Intermediate
9What is a Layout module in the Angular CDK used for? Angular › Angular CDK (Component Dev Kit)AngularAngular CDK (Component Dev Kit)Beginner
10How do you make a basic GET request to a server using Angular's HttpClient? Angular › HTTP Client & InterceptorsAngularHTTP Client & InterceptorsBeginner
11How do you send data to a server using a POST request with Angular's HttpClient? Angular › HTTP Client & InterceptorsAngularHTTP Client & InterceptorsBeginner
12How would you let a user switch the display language of an Angular app using a simple dropdown menu? Angular › Internationalization (i18n) in AngularAngularInternationalization (i18n) in AngularBeginner
13What is the difference between using a resolver and simply fetching data inside a component's ngOnInit method? Angular › Router Guards & ResolversAngularRouter Guards & ResolversBeginner
14What is server side rendering in Angular, and why would a team enable it using Angular Universal? Angular › Server-Side Rendering with Angular UniversalAngularServer-Side Rendering with Angular UniversalBeginner
15What is a computed signal, and how does it automatically stay in sync with the signals it depends on? Angular › Angular SignalsAngularAngular SignalsIntermediate
16How would you handle errors from an HTTP request in Angular, showing a friendly message to the user? Angular › HTTP Client & InterceptorsAngularHTTP Client & InterceptorsIntermediate
17What does ngOnDestroy do, and why is it important for cleaning up resources like subscriptions? Angular › Lifecycle HooksAngularLifecycle HooksIntermediate
18How do you select a specific piece of state from the NgRx store and use it in a component? Angular › NgRx State ManagementAngularNgRx State ManagementIntermediate
19How do you fetch data on the server before rendering a page with Angular Universal? Angular › Server-Side Rendering with Angular UniversalAngularServer-Side Rendering with Angular UniversalIntermediate
20How would you create a custom asynchronous validator that checks something against a server, such as whether a username is already taken? Angular › FormsAngularFormsAdvanced
21How would you use an interceptor to automatically retry a failed HTTP request a few times before giving up? Angular › HTTP Client & InterceptorsAngularHTTP Client & InterceptorsAdvanced
22How do NgRx Effects let you handle asynchronous operations, like an API call, in response to a dispatched action? Angular › NgRx State ManagementAngularNgRx State ManagementAdvanced
23How would you notify users when a new version of your Angular PWA is available and prompt them to refresh? Angular › Progressive Web Apps (PWA) with AngularAngularProgressive Web Apps (PWA) with AngularAdvanced
24How would you use ViewChildren to get references to multiple instances of the same child component or element? Angular › Template Reference Variables & ViewChildAngularTemplate Reference Variables & ViewChildAdvanced