--:--









Quiz for Handling Input Fields

Course: REACT | Subject: React | Topic: Forms in React



Logo

Q1: What attribute is used to bind input value in a controlled component?

Logo

Q2: Which event is commonly used to update the state when user types in an input box?

Logo

Q3: Which hook is commonly used to manage form field values in React functional components?

Logo

Q4: What is the role of the "name" attribute in form input fields?

Logo

Q5: What happens if you don’t provide an onChange handler for an input with value?

Logo

Q6: How can you prevent default form submission in React?

Logo

Q7: What is required to make an input controlled?

Logo

Q8: Which of the following is best practice for multiple input fields?

Logo

Q9: Which is the correct way to extract value from input event?

Logo

Q10: How do you bind the "checked" property of a checkbox input?

Logo

Q11: Which HTML element is NOT used with text input in React?

Logo

Q12: How to reset input fields in a form?

Logo

Q13: Why use controlled inputs in React?

Logo

Q14: What will happen if state is not updated on input change?

Logo

Q15: How do you manage form state for multiple fields in one state?

Logo

Q16: What’s the default type of <input> element?

Logo

Q17: How to initialize form field state?

Logo

Q18: Which property in event object holds input data?

Logo

Q19: Which is more flexible for validation: controlled or uncontrolled input?

Logo

Q20: How can you detect changes in a form field?

Are you ready to start test? Set your time limit