
React (The Last Act)
Authored by Saumya Verma
Mathematics
University
Used 14+ 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
What do you call the message wrapped in curly braces below?
let message = 'Hi there';
const element = <p>{message}</p>;
A JS function
A JS element
A JSX wrapper
A JS expression
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is not a disadvantage of React.js?
React.js has only a view layer. We have put your code for Ajax requests, events and so on.
The library of React.js is pretty large.
The JSX in React.js makes code easy to read and write.
The learning curve can be steep in React.js.
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What would be the output of the following example?
var Helloworld=(props)=> {
return(
<div>
Hello World 1
</div>
<div>
Hello World 2
</div>
);
}
ReactDOM.render(<Helloworld/>,mountNode)
Hello World 1
Hello World 2
Hello World 1 Hello World 2
Error
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
How many numbers of elements a valid react component can return?
1
2
3
4
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is used to pass data to a component from outside in React.js?
SetState
Render with arguments
Props
PropTypes
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What does ES6 stand for?
ECMAScript 6
ECMA 6
ECMAJavaScript 6
EJavaScript 6
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is Babel?
A JavaScript transpiler
A JavaScript interpreter
A JavaScript Compiler
None of the above
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 Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?