Quizzes for React

Quiz: 1

React is mainly used for _______ (if needed, google it)

building User Interface
building Database
building User Data Flow
building Shop

Quiz: 2

How do you declare a class called “myClass” in react?

class = “myClass”
Class = “myClass”
className = “myClass”
I don’t know

Quiz: 3

Which method will you use in react to display components for each object in an array?

filter
find
map
for

Quiz: 4

How will create a state with a default value “JingaLala”?

const { name, setName } = useState(“JingaLala”);
[name, setName] = UseState(“JingaLala”);
const ( name, setName ) = useState(“JingaLala”);
const [name, setName] = useState(“JingaLala”);

Quiz: 5

Why can’t we declare a class with the “class” keyword in React?

We should use class instead of className
class is a reserved keyword in javascript
We can use any name

Quiz: 6

What is  JSX?

Javascript Html
Javascript XML
React XML
Javascript Http

Quiz: 7

When creating a component in React, the first letter of that function name should be in ____

Uppercase
Lowercase
I can use Both

Quiz: 8

What is the correct way of creating a component in react?

function nayika() { return <h3>Mousumi </h3>}
function Nokiya() [ return <h3> Mousumi <h3> ]
function Nayika() ( return <h3> Mousumi </h3> )
function Nayika() { return <h3> Mousumi </h3> }

ScoreBoard

Correct Ans:

0

Incorrect Ans:

0