Sail E0 Webinar

MCQs

Total Questions : 37 | Page 2 of 4 pages
Question 11. Which method is not part of ReactDOM?
  1.    ReactDOM.destroy()
  2.    ReactDOM.hydrate()
  3.    ReactDOM.createPortal()
  4.    ReactDOM.findDOMNode()
 Discuss Question
Answer: Option B. -> ReactDOM.hydrate()
Question 12. What function allows you to render React content in an HTML page?
  1.    React.mount()
  2.    ReactDOM.start()
  3.    ReactDOM.render()
  4.    React.render()
 Discuss Question
Answer: Option D. -> React.render()
Question 13. What function can be used to update state?
  1.    setState()
  2.    updateState()
  3.    upState()
  4.    downState()
 Discuss Question
Answer: Option A. -> setState()
Question 14. What is JSX?
  1.    it is a syntax extension to JavaScript.
  2.    JSX produces data.
  3.    Tool to control the data
  4.    none of the above
 Discuss Question
Answer: Option A. -> it is a syntax extension to JavaScript.
Question 15. When it is recommended to pass this
  1.    When the new state should completely replace the old state
  2.    When the new state depends on the old state
  3.    When the new state does not depend on the old state
  4.    None of the above
 Discuss Question
Answer: Option B. -> When the new state depends on the old state
Question 16. Who Develop React
  1.    Apple
  2.    Facebook
  3.    Twitter
  4.    Google
 Discuss Question
Answer: Option B. -> Facebook
Question 17. What is state in React?
  1.    A persistant storage.
  2.    An internal data store (object) of a component.
 Discuss Question
Answer: Option B. -> An internal data store (object) of a component.
Question 18. Life cycle methods of a components fall under following categories?
  1.    Mounting, Unmounting
  2.    Mounting, Updating
  3.    Mounting, Updating, Unmounting
  4.    All of above
 Discuss Question
Answer: Option C. -> Mounting, Updating, Unmounting
Question 19. Which of the following below act as the input of a class-based component?
  1.    class and factory
  2.    render and mount
  3.    props
  4.    none of the above
 Discuss Question
Answer: Option A. -> class and factory
Question 20. React
  1.    Yes
  2.    No
 Discuss Question
Answer: Option A. -> Yes

Latest Videos

Latest Test Papers