Brisk
Quiz
Practice. Learn. Score.
Home
🔍
🌙
🏆
Leaderboard
Login
IT
›
React
⏱
00:00
0/7 answered
Score: 0
🔀 Click here to get new question set
Sign up
to save this score to the leaderboard.
Question 1
What is the "virtual DOM" in React, and what is its main purpose?
A caching layer specifically used only for remote network requests
A duplicate, hidden copy of a page's actual real DOM elements
A special browser API exclusively provided for React applications
An in-memory representation of the UI, used to compute efficient updates
Question 2
What is the purpose of the "useDeferredValue" hook in React's concurrent rendering model?
Permanently freezes a given value so that it can genuinely never change
Converts any given numeric value into its equivalent formatted string form
Fetches a value directly and synchronously from a remote backend server
Returns a deferred, "lagging" copy of a value that updates at lower priority
Question 3
What is the purpose of passing a function, rather than a plain value, as the initial argument to useState, e.g. useState(() => expensiveInit())?
Runs the expensive initializer only once, on the component's first render
Runs the expensive initializer freshly on every single subsequent render
Converts the resulting state value automatically into a Promise instead
Permanently prevents that piece of state from ever being updated again
Question 4
What must a React functional component return?
Nothing; components must always be void functions
A plain JavaScript object with a render key
A string containing raw, unescaped HTML markup
A single React element, or null/an array/fragment
Question 5
What does React's Strict Mode () do during development?
Permanently disables every hook for all components nested within it
Automatically fixes any detected bugs in the wrapped component tree
Highlights potential problems by intentionally double-invoking certain functions
Compiles the application noticeably faster for a production deployment
Question 6
What is the purpose of the "aria-live" attribute sometimes applied to a dynamically updating region of a React component's rendered output?
Converts the region's text content into a different, unrelated spoken language
Automatically and visually highlights that region in a bright warning color
Permanently prevents that specific region from ever being updated again
Announces content changes in that region to assistive screen-reader technology
Question 7
What is the purpose of passing a function, rather than a plain new value, to a useState updater, e.g. setCount(prev => prev + 1)?
Forces the component to skip its very next scheduled re-render entirely
Permanently prevents that specific state value from ever changing again
Guarantees the update is based on the most current, up-to-date state value
Converts the underlying state value from a number into a string instead
🔀 Click here to get new question set
Sign up
to save this score to the leaderboard.
Share this quiz
𝕏
💬
f
in
🔗
📚 All Quizzes
Browse every category and see the full list of quizzes on BriskQuiz
→
🏠
Home
📚
Categories
🏆
Leaderboard
👤
Profile