Question Bank
98 approved questions from the community
Which `box-sizing` value includes padding and border within the element's specified width?
What are the main parts of the CSS box model?
How do you select all direct child `<li>` elements of a `<ul>`?
Which selector matches elements by attribute presence or value?
What is the main difference between class selectors and ID selectors in CSS?
Which of the following are standard ways to include CSS in an HTML document?
What does CSS stand for and what is its primary use?
Virtual DOM is an in-memory representation used to compute efficient real DOM updates.
React composition encourages developers to:
Static generation is ideal for pages that change infrequently.
A Higher-Order Component takes a component and returns a new component.
React Portals are most useful when you need to:
Mutating React state directly is recommended for performance.
React Fragments let you return multiple children without adding extra DOM wrappers.
Which statement is correct about `props` vs `state`?
In a list render, what is the primary purpose of `key`?
JSX must be transpiled before browsers can run it.
Which description best matches React's role in frontend development?