
REACT
Authored by Shital Madake
Professional Development
Professional Development
Used 11+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
One can define default values for properties, props, using which of the following method?
getDefaultProps
getPropsValue
getInitialState
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Life cycle methods of a components fall under following categories?
Mounting, Unmounting
Mounting, Updating
Mounting, Updating, Unmounting
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following API is a MUST for every ReactJS component?
getInitialState
render
renderComponent
None of the above
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which method is not part of ReactDOM?
ReactDOM.destroy()
ReactDOM.hydrate()
ReactDOM.createPortal()
ReactDOM.findDOMNode()
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following API is a MUST for every ReactJS component?
getInitialState
render
renderComponent
None of the above
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
At the highest level, React components have lifecycle events that fall into
Initialization
State/Property Updates
Destruction
All of these
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What happens when the following render() method executes?<br /><br /> render(){<br /> let langs = ["Ruby","ES6","Scala"]<br /> return (<div><br /> {langs.map(it => <p>{it}</p>)}<br /> </div>)<br /> }<br />
Displays the list of languages in the array
Error. Cannot use direct JavaScript code in JSX
Displays nothing
Error. Should be replaced with a for..loop for correct output
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?