frontend development using react coursera week 3 quiz answers
React Basics - Practice Quiz
1. What is React.js?
- A database management system.
- A JavaScript library for building user interfaces.
- A programming language for building mobile applications.
- A server-side scripting language.
2. What is the Virtual DOM in React.js?
- A physical device that interacts with the computer’s memory.
- A lightweight representation of the actual DOM (Document Object Model) in the browser memory.
- A server-side technology used for creating dynamic web pages.
- A tool for debugging web applications.
3. What is JSX in React.js?
- A programming language for creating mobile applications.
- A syntax extension to JavaScript for writing React components.
- A database management system used in React applications.
- A tool for compiling JavaScript code into machine code.
4. What is the purpose of "props" in React.js?
- To define the structure of a React component.
- To pass data from a parent component to a child component.
- To modify the styling of a React component.
- To store data within a React component.
5. What is the purpose of state in React.js?
- To define the structure of a React component.
- To pass data from a parent component to a child component.
- To modify the styling of a React component.
To store and manage data that affects how a component is rendered and behaves.
React Intermediate - Practice Quiz
6. What is JSX in React JS?
- A markup language used for styling web pages.
- A syntax extension for JavaScript that allows HTML-like syntax to be used to describe UI components.
- A programming language used to build server-side applications.
- A database management system for storing and retrieving data.
7. What are React Props?
- A way of specifying the styles for a React Component.
- Short for “properties”, they are used to pass data from a parent component to a child component.
- A way of managing the state of a React Component.
- A way of defining the behavior of a React Component.
8. What is the React State?
- A way of passing data from a parent component to a child component.
- A way of defining the behavior of a React Component.
- A way of specifying the styles for a React Component.
- An internal data structure that allows a React Component to keep track of its data and re-render when that data changes.
9. What is the purpose of the React Directory structure?
- To provide a visual representation of the components in a React application.
- To define the layout and styles of a React application.
- To manage the data flow between the components of a React application.
- To organize and structure the code of a React application into logical units.