REACT JS QUIZ
1 .
React is a ______

Correct Answer : Option (A)

Javascript library

Explanation : ReactJS is a javascript library for building user interfaces. its not a framework

  Show Answer
2 .
ReactJS covers _____

Correct Answer : Option (A)

User Interface layer in an application

Explanation : ReactJS is a javascript library for building user interfaces. it covers only user interface layer of an application

  Show Answer
3 .
Number of elements, a valid react component can return 

Correct Answer : Option (A)

1
  Show Answer
4 .
props in react can________

Correct Answer : Option (B)

Not be changed in the component
  Show Answer
5 .
What is the testing library most often associated with React?

Correct Answer : Option (D)

Jest
  Show Answer
6 .
What is state in react? 

Correct Answer : Option (A)

Internal storage of the component
  Show Answer
7 .
What will happen if you render an input element with disabled = {false} 

Correct Answer : Option (B)

It will be rendered as enabled
  Show Answer
8 .
To get the first item from the array ("cooking") using array destructuring, how do you adjust this line?

const topics = ['cooking', 'art', 'history'];

Correct Answer : Option (D)

const [first] = ["cooking", "art", "history"] 
  Show Answer
9 .
How do you handle passing through the component tree without having to pass props down manually at every level?

Correct Answer : Option (D)

React Context
  Show Answer
10 .
What should the console read when the following code is run?

const [, , animal] = ['Horse', 'Mouse', 'Cat'];
console.log(animal);‚Äč

Correct Answer : Option (B)

Cat 
  Show Answer