Angular JS MCQs with answers Page - 2

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

Q. Which type of data binding uses square brackets?

  • (A) Property binding
  • (B) Event binding
  • (C) Two-way binding
  • (D) Interpolation

A

Admin • 802.91K Points
Coach

Q. What is the correct syntax for two-way data binding?

  • (A) [(ng-bind)]
  • (B) [[ngModel]]
  • (C) [(ngModel)]
  • (D) {(ngModel)}

A

Admin • 802.91K Points
Coach

Q. Which file contains the metadata for an Angular project?

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

A

Admin • 802.91K Points
Coach

Q. Which Angular package is needed for routing?

  • (A) @angular/router
  • (B) @angular/forms
  • (C) @angular/platform-browser
  • (D) @angular/common

A

Admin • 802.91K Points
Coach

Q. What is a module in Angular?

  • (A) A class that manages routes
  • (B) A function that handles events
  • (C) A container for components, directives, and services
  • (D) A built-in directive

A

Admin • 802.91K Points
Coach

Q. Which command is used to start the Angular development server?

  • (A) ng make
  • (B) ng start
  • (C) ng serve
  • (D) ng build

A

Admin • 802.91K Points
Coach

Q. What is the purpose of the RouterModule?

  • (A) To define animations
  • (B) To manage forms
  • (C) To enable routing in the app
  • (D) To handle HTTP requests

A

Admin • 802.91K Points
Coach

Q. How do you pass data to a child component?

  • (A) Using @Inject
  • (B) Using @ViewChild
  • (C) Using @Input
  • (D) Using @Output

A

Admin • 802.91K Points
Coach

Q. What does the async pipe do in Angular?

  • (A) Transforms strings to lowercase
  • (B) Subscribes to Observables or Promises
  • (C) Handles routing
  • (D) Manages HTTP requests

A

Admin • 802.91K Points
Coach

Q. Which module is used for template-driven forms?

  • (A) ReactiveFormsModule
  • (B) TemplateFormsModule
  • (C) FormsModule
  • (D) NgFormModule