MCQs Feed | Page - 2

F

Fox Root • 490 Points
Goal Maker

Q. NgRx ensures state changes happen through:

  • (A) Direct variable modification
  • (B) Actions and reducers
  • (C) HTML events
  • (D) Services only

F

Fox Root • 490 Points
Goal Maker

Q. Which approach is more suitable for large enterprise applications?

  • (A) BehaviorSubject only
  • (B) NgRx Store
  • (C) Local variables
  • (D) Template variables

F

Fox Root • 490 Points
Goal Maker

Q. Which approach is better for small Angular applications?

  • (A) Always NgRx
  • (B) BehaviorSubject service
  • (C) Both mandatory
  • (D) Neither

F

Fox Root • 490 Points
Goal Maker

Q. What is the primary difference between NgRx Store and BehaviorSubject service?

  • (A) NgRx uses HTTP and BehaviorSubject does not
  • (B) NgRx provides structured state management with actions and reducers
  • (C) BehaviorSubject cannot share data
  • (D) NgRx cannot work with Observables

F

Fox Root • 490 Points
Goal Maker

Q. In Angular, which RxJS class is commonly used in service-based state management?

  • (A) Observable
  • (B) Subject
  • (C) BehaviorSubject
  • (D) ReplaySubject

F

Fox Root • 490 Points
Goal Maker

Q. What problem does NgRx primarily solve?

  • (A) Slow Angular compilation
  • (B) State sharing and predictability
  • (C) CSS styling
  • (D) Routing

F

Fox Root • 490 Points
Goal Maker

Q. Navigation should happen after login success. Where should routing logic be placed?

  • (A) Reducer
  • (B) Effect
  • (C) Selector
  • (D) StoreModule

F

Fox Root • 490 Points
Goal Maker

Q. Which solution is used to persist store data after refresh?

  • (A) HTTP interceptor
  • (B) Meta-reducer with localStorage
  • (C) Component service
  • (D) Router guard

F

Fox Root • 490 Points
Goal Maker

Q. You refresh the browser and store data disappears. Why?

  • (A) Reducer error
  • (B) Store is in-memory state
  • (C) Selector failed
  • (D) Angular bug

F

Fox Root • 490 Points
Goal Maker

Q. Multiple components need cart data. What is correct architecture?

  • (A) Each component calls API
  • (B) Store cart data in NgRx store
  • (C) Use localStorage only
  • (D) Use global variable
Jump to