Angular JS MCQs with answers Page - 18

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 role of `provideRouter()` in Angular?

  • (A) To define services
  • (B) To configure lazy modules
  • (C) To provide router in standalone apps
  • (D) To add guards

A

Admin • 833.24K Points
Coach

Q. Which file holds default project configuration in Angular CLI?

  • (A) angular.config.js
  • (B) angular.json
  • (C) cli.config.json
  • (D) project.config.js

A

Admin • 833.24K Points
Coach

Q. Which CLI command updates Angular to the latest version?

  • (A) ng update
  • (B) ng upgrade
  • (C) ng refresh
  • (D) ng version

A

Admin • 833.24K Points
Coach

Q. What does the `zone.js` library do in Angular?

  • (A) Provides form validation
  • (B) Handles routing
  • (C) Tracks asynchronous operations
  • (D) Manages animations

A

Admin • 833.24K Points
Coach

Q. Which of the following is not a valid signal operation?

  • (A) computed()
  • (B) effect()
  • (C) watch()
  • (D) reactive()

A

Admin • 833.24K Points
Coach

Q. Which Angular CLI flag creates a flat folder structure?

  • (A) --skip-tests
  • (B) --flat
  • (C) --minimal
  • (D) --inline-style

A

Admin • 833.24K Points
Coach

Q. What does the `ng build` command do?

  • (A) Launch a local server
  • (B) Generate a production-ready app
  • (C) Run unit tests
  • (D) Open app in browser

A

Admin • 833.24K Points
Coach

Q. Which Angular directive is used to loop through an array?

  • (A) *ngLoop
  • (B) *ngEach
  • (C) *ngFor
  • (D) *ngRepeat

A

Admin • 833.24K Points
Coach

Q. Which signal method reacts to changes without returning data?

  • (A) signal()
  • (B) computed()
  • (C) effect()
  • (D) watch()

A

Admin • 833.24K Points
Coach

Q. Which library is commonly used for state management in Angular?

  • (A) RxJS
  • (B) NgRx
  • (C) Redux
  • (D) SignalR

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