Advanced Angular MCQs with answers Page - 1

You will find multiple-choice questions (MCQs) related to #Advanced Angular here. Go through these questions to prepare effectively for your upcoming exams and interviews.

To view the correct answer for any question, simply click the "Show Answer" button.

Have a question to share? Click on "Add Question" to contribute!

A

Admin • 825.56K Points
Coach

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

  • (A) Runs change detection on every event
  • (B) Improves performance by reducing change detection cycles
  • (C) Disables change detection completely
  • (D) Works only with services

A

Admin • 825.56K Points
Coach

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

  • (A) ngOnInit
  • (B) ngAfterViewInit
  • (C) ngAfterContentInit
  • (D) ngDoCheck

A

Admin • 825.56K Points
Coach

Q. What does the async pipe do?

  • (A) Subscribes and unsubscribes automatically
  • (B) Converts promises to observables
  • (C) Handles HTTP calls
  • (D) Improves routing speed

A

Admin • 825.56K Points
Coach

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

  • (A) mergeMap
  • (B) concatMap
  • (C) switchMap
  • (D) map

A

Admin • 825.56K Points
Coach

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

  • (A) @Component
  • (B) @NgModule
  • (C) @Injectable
  • (D) @Pipe

A

Admin • 825.56K Points
Coach

Q. What does ViewEncapsulation.ShadowDom do?

  • (A) Disables CSS
  • (B) Applies global styles
  • (C) Uses native Shadow DOM for style encapsulation
  • (D) Inlines styles

A

Admin • 825.56K Points
Coach

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

  • (A) CanActivate
  • (B) CanDeactivate
  • (C) CanLoad
  • (D) Resolve

A

Admin • 825.56K Points
Coach

Q. Which strategy allows preloading lazy-loaded modules?

  • (A) NoPreloading
  • (B) PreloadAllModules
  • (C) EagerLoading
  • (D) LoadOnDemand

A

Admin • 825.56K Points
Coach

Q. What is a pure pipe?

  • (A) Always recalculates
  • (B) Executes only when input changes
  • (C) Used only for numbers
  • (D) Executes every change detection

A

Admin • 825.56K Points
Coach

Q. Which Angular feature helps in reducing bundle size?

  • (A) NgModules
  • (B) Lazy loading
  • (C) Two-way binding
  • (D) Event binding
What's Tag

As you may know, questions are organized under broad categories. Each category can include various types of questions. For example, the "History" category might contain questions about the Revolt of 1857, Shivaji Maharaj, Ancient History, Buddhism, and more.

To further refine this organization, we've introduced tags, which act as sub-categories to group questions more specifically.

Verified users can add tags to any question. If you have any suggestions regarding this system, we'd love to hear from you. Contact Us

Learn More