Angular JS MCQs with answers Page - 13

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

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

  • (A) ReactiveFormsModule
  • (B) FormsModule
  • (C) HttpClientModule
  • (D) BrowserModule

A

Admin • 833K Points
Coach

Q. What directive is used to bind a form control in template-driven forms?

  • (A) formControlName
  • (B) ngForm
  • (C) ngModel
  • (D) ngSubmit

A

Admin • 833K Points
Coach

Q. Which class represents a form group in reactive forms?

  • (A) FormArray
  • (B) FormBuilder
  • (C) FormControl
  • (D) FormGroup

A

Admin • 833K Points
Coach

Q. How do you apply built-in validators in reactive forms?

  • (A) Directives
  • (B) Validators class
  • (C) ngModel
  • (D) FormArray

A

Admin • 833K Points
Coach

Q. What is the purpose of the 'asyncValidator' in Angular forms?

  • (A) Validate on the client side only
  • (B) Perform asynchronous validations like checking availability from API
  • (C) Track form status
  • (D) Reset form values

A

Admin • 833K Points
Coach

Q. What does the 'pristine' property of a form control indicate?

  • (A) The control has validation errors
  • (B) The control value has been changed
  • (C) The control has never been modified
  • (D) The control is invalid

A

Admin • 833K Points
Coach

Q. Which module is needed to use Angular Material components?

  • (A) MaterialComponentsModule
  • (B) MatModule
  • (C) AngularMaterialModule
  • (D) MatInputModule and others individually

A

Admin • 833K Points
Coach

Q. Which component in Angular Material is used for dialogs?

  • (A) MatFormField
  • (B) MatDialog
  • (C) MatSnackBar
  • (D) MatTable

A

Admin • 833K Points
Coach

Q. What command is used to add Angular Material to a project?

  • (A) ng material install
  • (B) ng add @angular/material
  • (C) npm install angular-material
  • (D) material init

A

Admin • 833K Points
Coach

Q. Which Angular feature allows creating components without a module?

  • (A) Ivy Engine
  • (B) Standalone components
  • (C) Dynamic imports
  • (D) Zone.js

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