K Kartik Sharma 🎓 Tutor III ⭐ 8.30K Points 📊 Angular Q. Which Angular feature allows signals-based reactivity? (A) RxJS Subjects (B) Zone.js (C) Angular Signals (D) ChangeDetectorRef 👁️ Show Answer 💬 Discuss 🔗 Share ✅ Correct Answer: (C) Angular Signals Explanation: Angular Signals provide fine-grained reactivity without relying on RxJS.
K Kartik Sharma 🎓 Tutor III ⭐ 8.30K Points 📊 Angular Q. What does ChangeDetectorRef.detach() do? (A) Destroys the component (B) Stops change detection for the component (C) Refreshes the view (D) Triggers routing 👁️ Show Answer 💬 Discuss 🔗 Share ✅ Correct Answer: (B) Stops change detection for the component Explanation: detach() removes the component from change detection tree.
K Kartik Sharma 🎓 Tutor III ⭐ 8.30K Points 📊 Angular Q. Which lifecycle hook runs after every change detection cycle? (A) ngOnInit (B) ngAfterViewInit (C) ngDoCheck (D) ngOnDestroy 👁️ Show Answer 💬 Discuss 🔗 Share ✅ Correct Answer: (C) ngDoCheck Explanation: ngDoCheck runs during every change detection cycle.
K Kartik Sharma 🎓 Tutor III ⭐ 8.30K Points 📊 Angular Q. Which RxJS operator combines multiple observables and emits once all complete? (A) combineLatest (B) merge (C) forkJoin (D) zip 👁️ Show Answer 💬 Discuss 🔗 Share ✅ Correct Answer: (C) forkJoin Explanation: forkJoin emits once when all observables complete.
K Kartik Sharma 🎓 Tutor III ⭐ 8.30K Points 📊 Angular Q. What does ViewChild return by default? (A) Component instance only (B) ElementRef or component/directive instance (C) HTML string (D) Observable 👁️ Show Answer 💬 Discuss 🔗 Share ✅ Correct Answer: (B) ElementRef or component/directive instance Explanation: @ViewChild provides access to DOM element or component.
K Kartik Sharma 🎓 Tutor III ⭐ 8.30K Points 📊 Angular Q. Which Angular form type is immutable? (A) Template-driven forms (B) Reactive forms (C) Hybrid forms (D) Dynamic forms 👁️ Show Answer 💬 Discuss 🔗 Share ✅ Correct Answer: (B) Reactive forms Explanation: Reactive forms use immutable data structures.
K Kartik Sharma 🎓 Tutor III ⭐ 8.30K Points 📊 Angular Q. Which directive allows projecting external content? (A) ngTemplateOutlet (B) ngIf (C) ngContent (D) ngSwitch 👁️ Show Answer 💬 Discuss 🔗 Share ✅ Correct Answer: (C) ngContent Explanation: ngContent is used for content projection.
K Kartik Sharma 🎓 Tutor III ⭐ 8.30K Points 📊 Angular Q. Which Angular API enables manual change detection? (A) ApplicationRef (B) ChangeDetectorRef (C) NgZone (D) Injector 👁️ Show Answer 💬 Discuss 🔗 Share ✅ Correct Answer: (B) ChangeDetectorRef Explanation: ChangeDetectorRef provides methods to control change detection.
K Kartik Sharma 🎓 Tutor III ⭐ 8.30K Points 📊 Angular Q. Which guard is used to prevent navigation away from a route? (A) CanActivate (B) CanLoad (C) CanDeactivate (D) Resolve 👁️ Show Answer 💬 Discuss 🔗 Share ✅ Correct Answer: (C) CanDeactivate Explanation: CanDeactivate stops navigation if conditions fail.
K Kartik Sharma 🎓 Tutor III ⭐ 8.30K Points 📊 Angular Q. What is the purpose of NgZone.runOutsideAngular()? (A) Improves performance by skipping change detection (B) Disables routing (C) Triggers change detection (D) Stops HTTP calls 👁️ Show Answer 💬 Discuss 🔗 Share ✅ Correct Answer: (A) Improves performance by skipping change detection Explanation: runOutsideAngular avoids triggering change detection.