
React JS Quiz
Authored by Gnaneshwar Reddy
Other
University
Used 6+ 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
30 sec • 1 pt
What is React.js?
A) A back-end framework
B) A front-end JavaScript library
C) A database management system
D) A CSS preprocessor
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which company developed React.js?
A) Google
B) Microsoft
C) Facebook
D) Twitter
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is JSX?
A) A JavaScript extension syntax for writing HTML in JavaScript
B) A new version of JavaScript
C) A CSS framework
D) A database language
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is used to create a functional component in React?
A) class MyComponent extends React.Component
B) function MyComponent() { return <div>Hello</div>; }
C) React.createComponent(MyComponent)
D) new React.Component(MyComponent)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to update the state in a React class component?
A) updateState()
B) setState()
C) changeState()
D) modifyState()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct way to pass a prop to a component?
A) <MyComponent prop="value" />
B) <MyComponent {prop: "value"} />
C) <MyComponent.prop = "value" />
D) <MyComponent prop["value"] />
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which Hook is used to manage state in a functional component?
A) useEffect
B) useState
C) useReducer
D) useContext
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?