Loading

Quipoin Menu

Learn • Practice • Grow

Direction: Choose the correct option

Q1.

What are the two approaches to building forms in Angular?
A. Simple and Complex
B. Static and Dynamic
C. Model-driven and View-driven
D. Template-driven and Reactive forms
Direction: Choose the correct option

Q2.

Which module is required for template-driven forms?
A. RouterModule
B. HttpClientModule
C. ReactiveFormsModule
D. FormsModule
Direction: Choose the correct option

Q3.

Which module is required for reactive forms?
A. FormsModule
B. FormBuilderModule
C. ControlModule
D. ReactiveFormsModule
Direction: Choose the correct option

Q4.

What is the difference between template-driven and reactive forms?
A. Reactive forms are more scalable and testable; template-driven are simpler
B. Template-driven are new
C. They are the same
D. Reactive forms use HTML, template-driven use TypeScript
Direction: Choose the correct option

Q5.

What is `FormGroup` in reactive forms?
A. A class that tracks the value and validity state of a group of FormControl instances
B. A validation group
C. A form template
D. A group of HTML elements
Direction: Choose the correct option

Q6.

What is `FormControl` used for?
A. Controls submission
B. Controls validation
C. Controls the form
D. Tracks the value and validity of an individual form control
Direction: Choose the correct option

Q7.

What is `FormArray` used for?
A. To manage array inputs
B. To create arrays
C. To handle arrays
D. To manage a collection of form controls dynamically
Direction: Choose the correct option

Q8.

What is the role of `FormBuilder`?
A. Validates forms
B. Creates forms
C. Builds forms
D. A service that provides convenient methods for generating form controls
Direction: Choose the correct option

Q9.

How do you reset a form in Angular?
A. `form.restart()`
B. `form.reset()` method
C. `form.set()`
D. `form.clear()`
Direction: Choose the correct option

Q10.

What is the `valueChanges` observable?
A. A value change event
B. A change detector
C. A change listener
D. An observable that emits whenever the form value changes