Skip to content

Module Quiz :React Basics (Meta React Native Specialization) Answers 2025

1. Why is React using components?

✔️ It allows you to build more modular apps.
❌ It allows the browser to render pages faster.
❌ Helps accessibility readers.
❌ Improves styling.


2. Minimum code a component must have to render something:

✔️ A named function declaration and a return statement with at least a single element containing text.
❌ A named function with array
❌ A named function with variables
❌ Only a named function


3. Benefits of using props:

✔️ Props allow parent components to pass data to children.
❌ Write custom HTML tags
❌ Children can update props independently


4. Preferred layout component structure:

✔️ Header, Main, Product, Footer (Product rendered 3 times inside Main).
❌ All inside App component
❌ Component for every link/heading


5. Keywords usually found in a React component:

✔️ function, props, return, export, default
❌ modular, expression, prop
❌ module, function, prop
❌ function, props, export, import, contain


6. What is create-react-app?

✔️ An npm package used to build a boilerplate React app.
❌ Stand-alone app
❌ Command inside a component
❌ Command to serve app


7. Command to create new React app “example”:

✔️ npm init react-app example
❌ npm initialize react-app example
❌ node init react-app example
❌ npm install react-app example


8. Arrow functions: parentheses compulsory unless single parameter?

✔️ True
❌ False


9. Can you use function calls in JSX?

✔️ True
❌ False


10. Arrow function with single parameter — parentheses optional?

✔️ True
❌ False


📘 Summary Table

Q Correct Answer
1 Build more modular apps
2 Named function + return element
3 Props let parents pass data to children
4 Header, Main, Product, Footer structure
5 function, props, return, export, default
6 npm package to build boilerplate React app
7 npm init react-app example
8 True
9 True
10 True