Angular JS MCQs with answers Page - 17

Here, you will find a collection of MCQ questions on Angular JS. Go through these questions to enhance your preparation for upcoming examinations and interviews.

To check the correct answer, simply click the View Answer button provided for each question.

Have your own questions to contribute? Click the button below to share your MCQs with others!

+ Add Question

A

Admin • 833.24K Points
Coach

Q. What is the purpose of the `--standalone` flag in Angular CLI?

  • (A) To enable SSR
  • (B) To create a module-less component
  • (C) To add routing automatically
  • (D) To enable Ivy rendering

A

Admin • 833.24K Points
Coach

Q. Which Angular feature introduced in v16 provides reactive primitives?

  • (A) Observables
  • (B) Signals
  • (C) AsyncPipe
  • (D) ReactiveForms

A

Admin • 833.24K Points
Coach

Q. Which function is used to declare a signal in Angular?

  • (A) useSignal()
  • (B) createSignal()
  • (C) signal()
  • (D) defineSignal()

A

Admin • 833.24K Points
Coach

Q. Which method is used to read the current value of a signal?

  • (A) get()
  • (B) read()
  • (C) value()
  • (D) call()

A

Admin • 833.24K Points
Coach

Q. Which lifecycle hook is best for subscribing to a signal?

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

A

Admin • 833.24K Points
Coach

Q. What is the primary benefit of standalone components?

  • (A) They improve CSS loading
  • (B) They simplify modularity
  • (C) They auto-generate tests
  • (D) They support SSR only

A

Admin • 833.24K Points
Coach

Q. Which method enables lazy loading of standalone components?

  • (A) loadComponent
  • (B) loadChildren
  • (C) importComponent
  • (D) useComponent

A

Admin • 833.24K Points
Coach

Q. Which directive enables conditional rendering based on signal or boolean?

  • (A) *ngShow
  • (B) *ngVisible
  • (C) *ngIf
  • (D) *ngDisplay

A

Admin • 833.24K Points
Coach

Q. What does ChangeDetectionStrategy.OnPush do?

  • (A) Disables change detection
  • (B) Detects only on input changes
  • (C) Runs change detection on events only
  • (D) Forces manual triggering only

A

Admin • 833.24K Points
Coach

Q. Which file is updated when a new component is added via CLI?

  • (A) angular.json
  • (B) package.json
  • (C) app.module.ts
  • (D) tsconfig.json

Add MCQ in this Category

If you want to share an MCQ question in this category, it's a great idea! It will be helpful for many other students using this website.

Share Your MCQ