ReactJS Quiz Set - 6

Last Updated :
Discuss
Comments

Question 1

Which of the following is a basic hook in react?

  • A

    useReducer()
     

  • B

    useMemo()
     

  • C

    useCallback()
     

  • D

    useContext()

Question 2

React is a ___

  • A

    Frontend Framework
     

  • B

    Backend Framework
     

  • C

    JavaScript Library
     

  • D

    JavaScript Module

Question 3

JSX allows us to write____

  • A

    BootStrap in React
     

  • B

    Jquery in React
     

  • C

    HTML in React
     

  • D

    MongoDB in React

Question 4

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

  • A

    extends React.Component
     

  • B

    extends React

  • C

    extends ReactDOM
     

  • D

    extends ReactRouer

Question 5

Which of the following is the current definition of components?

  • A

    Components are the HTML elements.
     

  • B

    Components are the set of variables defined in ReactJS.
     

  • C

    Components are independent and reusable code that return HTML elements
     

  • D

    None of the above

Question 6

How many types of components are there in react?

  • A

    1
     

  • B

    2
     

  • C

    3
     

  • D

    4

Question 7

Which of the following is the correct definition of state?

  • A

    It is a temporary storage of elements
     

  • B

    It is the internal storage of components
     

  • C

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

  • D

    It is the permanent storage of elements

Question 8

What is the correct syntax for  arrow function?

  • A

    ()
     

  • B

    =>
     

  • C

    ()=>
     

  • D

    >=()

Question 9

What is the correct definition of prop drilling?

  • A

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

  • B

    Concept of passing data between sibling components
     

  • C

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

  • D

    Concept of passing data inside the component itself

Question 10

Which technique is used in React Memo?

  • A

    Hashing
     

  • B

    Memoization
     

  • C

    Sorting
     

  • D

    Pipelining

There are 15 questions to complete.

Take a part in the ongoing discussion