All Coursera Quiz Answers

Module quiz: navigation, updating and assets in React.js Quiz Answers

In this article i am gone to share Coursera Course: React Basics by Meta Week 3 | Module quiz: navigation, updating and assets in React.js Quiz Answers with you..

Enroll Link: React Basics


Also visit this link:  Module quiz: Data and state Quiz Answers


 

Module quiz: navigation, updating and assets in React.js Quiz Answers

Question 1)
True or false? In React, you can use a ternary operator in a component’s return statement in React.

  • True
  • False

Question 2)
React Router is…

  • A stand-alone package that you can add to a React app.
  • A built-in part of React-DOM.
  • A built-in part of React.

Question 3)
React Router has a <Link> element.

  • True
  • False

Question 4)
Please choose the valid command to install react-player.

  • npm install react-player
  • npm-install react-player
  • npm-install-react-player

Question 5)
True or false? webpack is a module bundler.

  • True
  • False.

Question 6)
What will be the output of the code below?

let name; if (Math.random() > 0.5) { name = "Mike"} else { name = "Susan"}
  • It will be 0.5
  • It will always be Susan
  • It will always be Mike
  • It will be sometimes Mike, and sometimes Susan, randomly

Question 7)
Is the following component syntactically correct?

import car from "./assets/images/car.jpg";

function CarImage() {
return ( 
<img 
height={200}
src={car}
alt="Car image" 
/>
);
  • Yes
  • No

Question 8)
What is an asset?

  • Images, stylesheets, fonts
  • Components
  • Images, video, and components

Question 9)
What is the syntax used to add a new dev dependency to a React app? Select all that apply.

  • npm init some-package-name
  • npm install –save-dev some-package-name
  • npm i –save-dev some-package-name
  • node init some-package-name

Question 10)
If your app can compile without it, you can keep an asset in a public folder.

  • True
  • False