Module quiz: navigation, updating and assets in React.js :React Basics (Meta React Native Specialization) Answers 2025
1. Ternary operator allowed in return?
✔️ True
❌ False
2. React Router is…
✔️ A stand-alone package you can add to a React app.
❌ Built-in React
❌ Built-in 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. What will the code output?
✔️ Sometimes Mike, sometimes Susan (randomly).
❌ Always Mike
❌ Always Susan
❌ 0.5
7. Is this component syntactically correct?
✔️ Yes
❌ No
8. What is an asset?
✔️ Images, stylesheets, fonts
❌ Components
❌ Images, videos, and components
9. Syntax to add a dev dependency (select all that apply):
✔️ 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 –save-dev / npm install –save-dev |
| 10 | True |