ReactJS Quiz Set - 6

Last Updated :
Discuss
Comments

Question 1

Which of the following is a basic hook in react?

  • useReducer()
     

  • useMemo()
     

  • useCallback()
     

  • useContext()

Question 2

React is a ___

  • Frontend Framework
     

  • Backend Framework
     

  • JavaScript Library
     

  • JavaScript Module

Question 3

JSX allows us to write____

  • BootStrap in React
     

  • Jquery in React
     

  • HTML in React
     

  • MongoDB in React

Question 4

Which of the following statement must be written in a class component heading

  • extends React.Component
     

  • extends React

  • extends ReactDOM
     

  • extends ReactRouer

Question 5

Which of the following is the current definition of components?

  • Components are the HTML elements.
     

  • Components are the set of variables defined in ReactJS.
     

  • Components are independent and reusable code that return HTML elements
     

  • None of the above

Question 6

How many types of components are there in react?

  • 1
     

  • 2
     

  • 3
     

  • 4

Question 7

Which of the following is the correct definition of state?

  • It is a temporary storage of elements
     

  • It is the internal storage of components
     

  • It is used to know about the current state of the element
     

  • It is the permanent storage of elements

Question 8

What is the correct syntax for  arrow function?

  • ()
     

  • =>
     

  • ()=>
     

  • >=()

Question 9

What is the correct definition of prop drilling?

  • Concept of passing data as props through intermediate components until data is reached where it is required.
     

  • Concept of passing data between sibling components
     

  • Concept of passing data to required destination as states until data is reached where it is required
     

  • Concept of passing data inside the component itself

Question 10

Which technique is used in React Memo?

  • Hashing
     

  • Memoization
     

  • Sorting
     

  • Pipelining

There are 15 questions to complete.

Take a part in the ongoing discussion