WorksheetsReact Quiz I
Total questions: 10
Worksheet time: 5mins
What is React?
A front-end JavaScript library developed by Facebook in 2011.
A back-end framework like Node.js.
A database management system.
A CSS preprocessor.
What is a SPA (Single Page Application)?
A web application that dynamically updates the page without reloading it.
A website with multiple HTML pages loaded separately.
A mobile app that doesn't require a browser.
A React-specific feature.
Which of the following are features of React?
Uses the virtual DOM instead of the real DOM.
Supports server-side rendering.
Follows uni-directional data flow.
Requires Java to work.
What are some major advantages of React?
Increases application performance.
Can be used on both client and server sides.
JSX improves code readability.
Requires an internet connection at all times to function.
What is create-react-app used for?
A command-line tool to set up a new React application.
A database management tool.
A UI framework like Bootstrap.
A built-in React function to create components.
What is the use of empty tags (<> ) in React?
Used for declaring fragments.
Used to create an empty div.
Used to comment out JSX code.
Used to add external scripts.
What is JSX?
A syntax extension that looks like XML and works with JavaScript.
Syntactic sugar for React.createElement().
A new programming language for React.
A built-in JavaScript function.
Can the browser read JSX?
No, JSX must be transpiled into JavaScript using Babel.
Yes, browsers natively support JSX.
Only modern browsers can understand JSX directly.
JSX is just another form of JSON.
What is React props?
Props (short for properties) are used to pass data between components.
Props are functions that update the component state.
Props are only used for styling components.
Props are a built-in React hook.
Can we send a function as props in React?
Yes, functions can be passed as props.
No, only objects and strings can be passed as props.
Functions can only be defined inside components but not passed around.
Functions cannot be used inside JSX.
