Loading

Quipoin Menu

Learn • Practice • Grow

react / Uncontrolled Components
mcq
Direction: Choose the correct option

Q1.

What is an uncontrolled component?
A. A component that uses uncontrolled rendering
B. A component that doesn't have state
C. A component without props
D. A component where form data is handled by the DOM itself, using refs
Direction: Choose the correct option

Q2.

How do you get the current value of an uncontrolled input?
A. Using value attribute
B. Using a ref and accessing the DOM node
C. Using state
D. Using event.target.value in onChange
Direction: Choose the correct option

Q3.

What is the equivalent of value for uncontrolled inputs to set an initial value?
A. initialValue
B. value
C. defaultValue
D. default
Direction: Choose the correct option

Q4.

When might you use an uncontrolled component?
A. When you need validation on each change
B. Always
C. When you need fine-grained control over every keystroke
D. When integrating with non-React code or simple forms
Direction: Choose the correct option

Q5.

Which statement about uncontrolled components is true?
A. They are the recommended approach in React
B. They use refs to access DOM nodes
C. They don't work with React
D. They cannot have default values