Home / Kartik Sharma / Programming MCQs Solution

Programming Portal Solution

You will find all Programming Portal MCQs whose solution is updated by Kartik Sharma

Q. Which API is used to dynamically create components?

Q. Which Angular feature supports tree shaking?

Q. Which operator is used to handle errors in RxJS?

Q. Which lifecycle hook is called when an input property changes?

Q. What does the router-outlet directive do?

Q. Which Angular feature enables hydration in SSR?

Q. What does the inject() function replace?

Q. Which Angular testing utility creates a test environment?

Q. Which operator shares a single subscription among multiple subscribers?

Q. What is the purpose of NgZone.runOutsideAngular()?

Q. Which guard is used to prevent navigation away from a route?

Q. Which Angular API enables manual change detection?

Q. Which directive allows projecting external content?

Q. Which Angular form type is immutable?

Q. What does ViewChild return by default?

Q. Which RxJS operator combines multiple observables and emits once all complete?

Q. Which lifecycle hook runs after every change detection cycle?

Q. What does ChangeDetectorRef.detach() do?

Q. Which Angular feature allows signals-based reactivity?

Q. What is the purpose of HttpInterceptor?

Q. Which Angular feature replaces constructor injection in functional APIs?

Q. What does trackBy function improve in *ngFor?

Q. Which operator is best for sequential HTTP calls?

Q. What is the main benefit of standalone components?

Q. Which directive is used to dynamically load templates?

Q. Which lifecycle hook is used to clean up subscriptions?

Q. What does providedIn: 'root' do?

Q. Which Angular feature helps in reducing bundle size?

Q. What is a pure pipe?

Q. Which strategy allows preloading lazy-loaded modules?

Q. Which guard prevents loading of lazy-loaded modules?

Q. What does ViewEncapsulation.ShadowDom do?

Q. Which decorator is used to make a class injectable?

Q. Which RxJS operator is used to cancel previous HTTP calls?

Q. What does the async pipe do?

Q. Which Angular lifecycle hook is called after content projection?

Q. What is the main purpose of ChangeDetectionStrategy.OnPush?

Q. Which operator is used to bind data from component to template?

Q. Which service is used to make HTTP calls in Angular?

Q. Which file is the root module of an Angular application?

Q. Which directive is used for looping in Angular templates?

Q. What is the purpose of NgModule in Angular?

Q. Which language is Angular primarily written in?

Q. Angular is mainly used for building: