Coursera Answers

Front-End Developer Capstone Coursera Quiz Answers

Hello Friends in this article i am gone to share Front-End Developer Capstone by Meta | Front-End Developer Capstone Coursera Quiz Answers with you..

Enrol Link:  Front-End Developer Capstone

Front-End Developer Capstone Coursera Quiz Answers


 

WEEK 1 QUIZ ANSWERS

Knowledge check: Setting up the project

Question 1)
Which of the following command allows you to quickly create a React project?

  • npx create-react-app
  • npx create-react-app app-name
  • npm build
  • npm test

Question 2)
Before pushing your changes to a Git repository, you need to commit the changes first.

  • True
  • False

Question 3)
Which of the following commands sends the local change to a remote git repository like GitHub?

  • git push
  • git commit
  • git tag
  • git fetch

Question 4)
What is the purpose of using this ES7+ React/Redux/GraphQL/React-Native extension in VS Code?

  • It helps you to debug the React and GraphQL-based projects.
  • It helps to convert your code for older JavaScript engines
  • It provides quick JavaScript snippets to help you code faster in your React and GraphQL-based projects.

Question 5)
In a project, which directory contains all the dependencies?

  • node_modules
  • src
  • build

 

Knowledge check: Planning the UX and UI

Question 1)
UX is an iterative process that solves usability problems.

  • True
  • False

Question 2)
What is a wireframe in UX design?

  • It’s representation of the interface concerned with placement and hierarchy of content and functionalities.
  • It’s a 3D printed view of the project
  • It’s a complete design of the product
  • It’s a simulation of the final functional product

Question 3)
Which of the following statements about designing forms are true?

  • It is important to design forms from the user’s perspective to create a good user experience.
  • Forms are not an important part of user experience and can be designed quickly without considering the user’s needs.
  • Time should be spent on good form design to create an appealing and approachable form that represents the brand.
  • Forms are only used to collect information for the stakeholder’s benefit, so it is not worth putting effort into designing them.

Question 4)
Which of the following is true about responsive design? Select all that apply.

  • Responsive design is a design approach that ensures a website or app looks good on all devices, regardless of screen size or resolution.
  • Responsive design only applies to desktop devices and is not necessary for mobile devices.
  • Responsive design is a technique that automatically scales and rearranges the layout of a website or app to fit the screen size and resolution of the device it is being viewed on.
  • Responsive design involves creating separate versions of a website or app for different devices.

Question 5)
How many columns are generally used in a desktop grid system?

  • 4
  • 12
  • 8

 

Visit this link:  Module Quiz: Starting the Project Quiz Answers

 


 

WEEK 2 QUIZ ANSWERS

Knowledge check: Semantic structure

Question 1)
Which of the following are semantic HTML tags? Choose all that apply.

  • <header>
  • <table>
  • <div>
  • <h1>
  • <article>

Question 2)
Complete the sentence: Semantic tags are a way to…

  • Create a table of data.
  • Add style to a webpage or document.
  • Create a layout for a webpage or document.
  • Give meaning to the content of a webpage or document.

Question 3)
What is Open Graph protocol (OGP)?

  • A protocol for transmitting audio and video over the internet
  • A protocol for encrypting data transmitted over the internet
  • A protocol for sending and receiving email messages
  • A protocol for describing the shared content on social media platforms

Question 4)
HTML meta tags are used to provide information about a webpage to search engines and other web services.

  • True
  • False

Question 5)
Which of the following meta tags are valid? Choose all that apply.

  • viewport
  • responsive
  • description
  • og:title

 

Knowledge check: Styling and responsiveness

Question 1)
What is the fr unit in CSS grid?

  • A flexible color unit to be used in the grid
  • A length unit used only for the texts in the grid
  • A flexible length unit used only for the images in the grid
  • A flexible length unit that grows or shrinks based on the available space in the grid

Question 2)
Choose the correct explanation for how the CSS code below works.

@media (max-width: 700px) {
.grid-adjustable-columns {
display: grid;
grid-auto-flow: row;
}
}

@media (min-width: 701px) {
.grid-adjustable-columns {
width: min(1000px,75rem);
  • This code doesn’t work.
  • On large resolutions it stacks the grid items in a column and on small resolutions it lines them up in a single row.
  • On small resolutions it stacks the grid items in a column and on large resolutions it lines them up in a single row.

Question 3)
Which of the following statements about CSS Grid is true?

  • CSS Grid is a design tool used for creating graphics and visual elements for webpages.
  • CSS Grid is a layout system that allows developers to create grid-based layouts using rows and columns.
  • CSS Grid is a styling system that allows developers to apply styles to specific elements of a webpage.
  • CSS Grid is a programming language used for creating dynamic and interactive web applications.

Question 4)
In CSS Grid, horizontal tracks are also known as:

  • Columns
  • Rows
  • Grid items

Question 5)
True or false: CSS Grid layout automatically adjusts the size of grid tracks.

  • True
  • False

 

Knowledge check: Adding components

Question 1)
Choose the correct statement about the following code:

<> 
<h1>...</h1> 
<p>...</p> 
</>
  • This is valid JavaScript code
  • This is valid React code.
  • This is not valid React code
  • This is a valid HTML tag

Question 2)
In React, you can only have one root element in a component.

  • True
  • False

Question 3)
Which of the following statements are true about JSX? Choose all that apply.

  • JSX elements must be self-closing.
  • JSX elements must be written in all uppercase.
  • JSX allows you to include expressions in your code.
  • JSX allows you to use JavaScript functions as attributes
  • JSX elements can have multiple children.

Question 4)
What is the output of the following JSX code block?

const listItems = myList.map((item) => 
<li key={item}>{item}</li> 
); 
return (
  • <ul> [<li>apple</li>, <li>banana</li>, <li>orange</li>] </ul>
  • <ul><li>apple</li><li>banana</li><li>orange</li></ul>
  • <li>apple</li><li>banana</li><li>orange</li>
  • [<ul>,<li>apple</li>, <li>banana</li>, <li>orange</li>,<ul>]

Question 5)
Which of the following is true about props in React?

  • Props should be used for values that will not change within a component.
  • Props are mutable and can be changed within a component.
  • The prop value must be wrapped in quotes.
  • Props should only be used for simple data types, such as strings and numbers.

 

Visit this link:  Module Quiz: Project Foundations Quiz Answers

 


 

WEEK 3 QUIZ ANSWERS

Knowledge check: Table booking system

Question 1)
What is the purpose of the useState hook in React?

  • To bind an event handler to an element.
  • To manage the component’s state
  • To manage the component’s context
  • To bind a value to the props of a component.

Question 2)
What is missing from the code below?

import { useState } from "react";

export default function App() {
const [restaurantName, setRestaurantName] = useState();
return <h1>{restaurantName}</h1>;
}
  • The setRestaurantName function.
  • An initial value for the state variable restaurantName
  • The useState hook import statement
  • useReducer hook was not used

Question 3)
Controlled components keep their internal state in the DOM

  • True
  • False

Question 4)
What is unit testing in React?

  • A type of testing that ensures that a complete application is working as intended.
  • A type of testing that ensures that individual units of code are working as intended.
  • A type of testing that involves manually testing a component’s UI.
  • A type of testing that ensures that a component’s props and state are correctly being passed down to its children.

Question 5)
What is the main difference between the useState and useReducer hooks in React?

  • useState is used for managing component state, while useReducer is used for managing the component’s UI.
  • useState is used for managing component state, while useReducer is used for managing global state.
  • useState is used for simple state updates, while useReducer is used for complex state updates.
  • useState is used for managing component state, while useReducer is used for managing the component lifecycle.

 

Knowledge check: Interacting with the API

Question 1)
Why should you never call hooks inside a nested function in react?

  • To ensure that the component updates correctly
  • To avoid unnecessary re-renders of the component
  • Because hooks can only be called from the top level of a function component
  • To prevent memory leaks

Question 2)
True or false. The fetch function should be used inside the componentDidMount lifecycle method or useEffect hook.

  • True
  • False

Question 3)
When you receive a HTTP response using the fetch() API, how do you parse the data into a JavaScript object?

  • The fetch() API automatically parses the response data as a JSON object.
  • You should use the json() method of the response object to parse the data as a JSON object.
  • You should use the JSON.parse() method to parse the response data as a JSON object.
  • You should use the text() method of the response object to parse the data as a JSON object

Question 4)
Which of the following statements are true? Choose all that apply.

  • You can load local JSON files in your React project
  • The fetch() API call cannot make DELETE request
  • If the external API returns JSON data, you need to exclusively parse it in the fetch() API
  • You cannot make multiple fetch() calls in the useEffect hook

Question 5)
Complete the sentence: JSON is ______________.

  • Only a file format
  • Only a data exchange format
  • A file format and a data exchange format

 

Knowledge check: Improving the experience

Question 1)
What is a heuristics evaluation?

  • A heuristics evaluation examines and assesses the usability of a particular project.
  • A heuristics evaluation detects accessibility problems.
  • A heuristics evaluation applies the brand style to a product,

Question 2)
Which of the following people are notable for making various product and UI design recommendations? Choose all that apply.

  • Donald Knuth
  • Jakob Nielson
  • Dennis Ritchie
  • Dieter Rams

Question 3)
There are four core principles of accessibility upon which WCAG (Web Content Accessibility Guidelines) has been built. Choose all that apply.

  • Understandable
  • Robust
  • Readable
  • Operable
  • Perceivable

Question 4)
What is the term for the technical procedure where information is checked to determine if the data entered by the user is accurate?

  • Verification
  • Validation
  • Double entry

Question 5)
In client-side validation, the form data is validated in the browser

  • True
  • False

 

Visit this link:  Module Quiz: Project Functionality Quiz Answers

 


 

WEEK 4 QUIZ ANSWERS

Visit this link:  Front-End Developer Capstone Final Graded Quiz Answers