Module quiz: navigation, updating and assets in React.js :React Basics (Meta Front-End Developer Professional Certificate) Answers 2025
1. You can use a ternary operator in a component’s return statement.
✔️ True
❌ False
2. React Router is…
❌ A built-in part of React
✔️ A stand-alone package you add to a React app
❌ Built-in part of React-DOM
3. React Router has a <Link> element.
✔️ True
❌ False
4. Valid command to install react-player
✔️ npm install react-player
❌ npm-install react-player
❌ npm-install-react-player
5. webpack is a module bundler
✔️ True
❌ False
6. Output of the random name assignment
❌ 0.5
❌ Always Mike
✔️ Sometimes Mike, sometimes Susan randomly
❌ Always Susan
7. Is the CarImage component syntactically correct?
✔️ Yes
❌ No
(The component is valid JSX and properly imports the asset.)
8. What is an asset?
✔️ Images, stylesheets, fonts
❌ Components
❌ Images, video, and components
9. Syntax to add a new dev dependency
✔️ npm i --save-dev some-package-name
✔️ npm install --save-dev some-package-name
❌ npm init some-package-name
❌ node init some-package-name
10. If your app can compile without it, you can keep an asset in public folder.
✔️ True
❌ False
📘 Summary Table
| Q | Correct Answer |
|---|---|
| 1 | True |
| 2 | Stand-alone package |
| 3 | True |
| 4 | npm install react-player |
| 5 | True |
| 6 | Randomly Mike or Susan |
| 7 | Yes |
| 8 | Images, stylesheets, fonts |
| 9 | npm i/install –save-dev package |
| 10 | True |