Loading

Quipoin Menu

Learn • Practice • Grow

react / SyntheticEvent in React
mcq
Direction: Choose the correct option

Q1.

What is a SyntheticEvent in React?
A. A fake event used for testing
B. A cross-browser wrapper around the browser's native event
C. An event that only works in development
D. A React-specific event type
Direction: Choose the correct option

Q2.

What happens to a SyntheticEvent after the event handler has run?
A. It remains unchanged
B. It is pooled and reused, so properties are nullified
C. It is converted to a native event
D. It is persisted and can be accessed later
Direction: Choose the correct option

Q3.

How can you access the native event from a SyntheticEvent?
A. event.originalEvent
B. event.nativeEvent
C. event.target
D. event.baseEvent
Direction: Choose the correct option

Q4.

If you need to access event properties asynchronously, what should you do?
A. Store the event in a variable
B. Use event.nativeEvent
C. Call event.persist()
D. It's not possible
Direction: Choose the correct option

Q5.

Which of the following is true about SyntheticEvent?
A. It has the same interface as native events, including stopPropagation and preventDefault
B. It cannot be used in functional components
C. It only supports a subset of native events
D. It is slower than native events