Angular JS MCQs with answers Page - 11

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 • 831.35K Points
Coach

Q. What is the purpose of NgRx in Angular applications?

  • (A) Routing
  • (B) Animation handling
  • (C) State management
  • (D) HTTP communication

A

Admin • 831.35K Points
Coach

Q. Which NgRx feature is used to dispatch actions?

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

A

Admin • 831.35K Points
Coach

Q. What is the main role of NgRx effects?

  • (A) To handle animations
  • (B) To reduce data
  • (C) To handle side effects like API calls
  • (D) To route users to components

A

Admin • 831.35K Points
Coach

Q. What is a selector in NgRx?

  • (A) A router directive
  • (B) A function to fetch a part of the state
  • (C) An Angular component
  • (D) A variable for storing IDs

A

Admin • 831.35K Points
Coach

Q. Which decorator is used to define input properties in Angular?

  • (A) @ViewChild
  • (B) @Input
  • (C) @Output
  • (D) @Injectable

A

Admin • 831.35K Points
Coach

Q. How do you emit an event from a child to parent component?

  • (A) Using @Input
  • (B) Using @ViewChild
  • (C) Using @Output and EventEmitter
  • (D) Using @Injectable service

A

Admin • 831.35K Points
Coach

Q. Which HTTP method is used in Angular to fetch data from a server?

  • (A) post()
  • (B) put()
  • (C) get()
  • (D) delete()

A

Admin • 831.35K Points
Coach

Q. What is Angular Universal?

  • (A) Mobile app framework
  • (B) CLI tool
  • (C) Server-side rendering platform
  • (D) Package manager

A

Admin • 831.35K Points
Coach

Q. Which mechanism helps secure Angular applications against XSS?

  • (A) DomSanitizer
  • (B) HttpInterceptor
  • (C) NgModules
  • (D) Lazy loading

A

Admin • 831.35K Points
Coach

Q. What is the purpose of HttpInterceptor in Angular?

  • (A) Add interceptors for routing
  • (B) Handle change detection
  • (C) Modify HTTP requests and responses
  • (D) Create new observables

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