React Senior Developer Preparation Test Part 1

Інформатика
27 питань
14 червня

Режими тренування

Спробуйте різні формати для кращого засвоєння матеріалу

Питання тесту

Ознайомтесь з питаннями перед проходженням. Варіанти відповідей приховані для кращої підготовки.
Запитання 1
Один варіант відповіді
What is React, and what are its key benefits?
Запитання 2
Один варіант відповіді
What is the difference between a React Node, React Element, and a React Component?
Запитання 3
Один варіант відповіді
What is JSX and how does it work in React?
Запитання 4
Один варіант відповіді
What is the difference between state and props in React?
Запитання 5
Один варіант відповіді
What is the purpose of the key prop in React lists?
Запитання 6
Один варіант відповіді
What are the consequences of using array indices as keys in React lists?
Запитання 7
Один варіант відповіді
What is the difference between controlled and uncontrolled React components?
Запитання 8
Один варіант відповіді
What are some common pitfalls of using context in React?
Запитання 9
Один варіант відповіді
What are the benefits of using React hooks?
Запитання 10
Один варіант відповіді
What are the rules of React hooks?
Запитання 11
Один варіант відповіді
What is the difference between useEffect and useLayoutEffect in React?
Запитання 12
Один варіант відповіді
What is the purpose of the functional callback form of setState in React, and when should it be used?
Запитання 13
Один варіант відповіді
What does the dependency array of useEffect control?
Запитання 14
Один варіант відповіді
What is the primary reason React uses a virtual DOM during re-rendering?
Запитання 15
Один варіант відповіді
Which React feature allows grouping multiple elements without adding extra nodes to the DOM?
Запитання 16
Один варіант відповіді
Before React 19, why was forwardRef() commonly used in function components?
Запитання 17
Один варіант відповіді
How can you force a React component to reset its internal state completely?
Запитання 18
Один варіант відповіді
Why is mutating state directly discouraged in React?
Запитання 19
Один варіант відповіді
What method do error boundaries in React use to render fallback UI after an error is caught?
Запитання 20
Один варіант відповіді
Which of the following React components can act as an error boundary?
Запитання 21
Один варіант відповіді
Which testing tools are recommended for testing React components effectively?
Запитання 22
Один варіант відповіді
What advantage does React Testing Library offer over fireEvent for user interactions?
Запитання 23
Один варіант відповіді
How can you mock network requests effectively while testing React applications?
Запитання 24
Один варіант відповіді
What new root-level options were introduced in React 19 to handle errors globally?
Запитання 25
Один варіант відповіді
Which syntax can be used as a shorthand to declare React Fragments?
Запитання 26
Один варіант відповіді
In React, what is the consequence of mutating state directly on hooks like useState or useReducer?
Запитання 27
Один варіант відповіді
What is the recommended way to reset specific parts of a component's state when using useReducer?