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

1. building User Interface

2. building Database

3. building User Data Flow

4. building Shop

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

1. class = “myClass”

2. Class = “myClass”

3. className = “myClass”

4. I don’t know

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

1. filter

2. find

3. map

4. for

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

1. const { name, setName } = useState(“JingaLala”);

2. [name, setName] = UseState(“JingaLala”);

3. const ( name, setName ) = useState(“JingaLala”);

4. const [name, setName] = useState(“JingaLala”);

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

1. We should use class instead of className

2. class is a reserved keyword in javascript

3. We can use any name

Quiz 6 :  What is JSX?

1. Javascript Html

2. Javascript XML

3. React XML

4. Javascript Http

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

1. Uppercase

2. Lowercase

3. I can use Both

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

1. function nayika() { return <h3>Mousumi </h3>}

2. function Nokiya() [ return <h3> Mousumi <h3> ]

3. function Nayika() ( return <h3> Mousumi </h3> )

4. function Nayika() { return <h3> Mousumi </h3> }

Quiz Of React

0%

Total Quiz : 8

Correct : 0

Wrong : 0