11.) Which directive disables a form control?
A) disableControl
B) disable
C) [disabled]
D) formControl.disable()
12.) What is the use of patchValue() in Reactive forms?
A) Updates all form controls
B) Updates specific form controls
C) Clears all form controls
D) Deletes form controls
13.) What is the default value of pristine in a new form?
A) true
B) false
C) undefined
D) null
14.) How can you reset a form in Angular?
A) form.update()
B) form.clear()
C) form.value = null
D) form.reset()
15.) How do you get the value of a form control in Reactive forms?
A) formControl.value
B) formControl.getValue()
C) formControl.fetch()
D) formControl.returnValue()
16.) What is the default value of status in a newly created form?
A) VALID
B) INVALID
C) PENDING
D) NULL
17.) What does touched mean in Angular forms?
A) The form has been submitted
B) The field has been modified
C) The user has clicked inside the field
D) The field is empty
18.) Which of the following is true about dirty in Angular forms?
A) It becomes true when the form is modified
B) It is always false
C) It checks if the form is valid
D) It resets the form
19.) How do you dynamically add form controls in a Reactive form?
A) Using form.addControl()
B) Using FormArray.push()
C) Using form.insertControl()
D) Using form.extend()
20.) What does updateValueAndValidity() do in Angular forms?
A) Clears all form errors
B) Resets the form to its default state
C) Updates the form value and revalidates it
D) Disables all validations
Related