Explore Online Courses
Free Courses
Hire from us
Become an Instructor
Reviews
All Courses
Submit
Submit
Take the Free Practice Test
Free Practice Test
Instructions:
FREE test and can be attempted multiple times.
60 Minutes
30 Multiple Choice Questions
Fill in the Details to Get Started
Select your preference
Self-learning and knowledge validation
Completed a course & revising
Just curious
By providing your contact details, you agree to our
Terms of Use
&
Privacy Policy
Welcome to your React JS Quiz
What does DOM stand for?
Document Object Model
Document Object Manipulator
Direct Object Manipulator
Document Options Model
React is a component based UI library.
True
False
Which library allows React to work well with the DOM?
ReactVR
ReactDOM
React Web
React Native
Which of the following is not an advantage of React?
Declarative
Better Performance
Better Looking UI
Portable
React uses Virtual DOM for improved performance.
True
False
What is JSX used for?
Making it easy to create react components
Making react components load faster
Creating react components with styles
Making react compatible with older versions
Props are passed from a parent components.
True
False
Props cannot be changed by component in which they are passed.
True
False
Which of the following is not True?
State is internal and props are external
State is provided by parents and props are derived internally
State can be changed but props should not be changed
Change in State and Props cause rerender
PropTypes are used for runtime validation of props.
True
False
Which of the following is not a problem in using class components?
Perfromance
call to usper in constructor
binding methods
duplicated lifecycle logic
What does useState hook does?
Allows you to add state in functional components
Creates state more efficient
Allows us to manage states in both class and functional components
Creates compiled version of JSX code
Can you use useEffect Hook to to add lifecycle methods in functional components?
True
False
Can we build our own custom hooks?
True
False
Which of the following is a hook that allows us to create objects that will persist even after component re-renders?
useState
useContext
useRef
usePersistence
How do controlled components manage form data?
State
Props
Refs
All of the above
How do uncontrolled components manage form data?
State
Props
Refs
All of the above
Which event handler gets triggered when a form value changes?
onChange
onUpdate
onCompare
None of the above
Which event handler gets triggered when a form submits?
onSubmit
onSend
onFormSubmission
None of the above
In ReactJS which is the recommended way to handle form data?
Controlled Components
Uncontrolled Components
Pain JavaScript
None of the above
Which of the following is used to add naviagation capabilities to a single page web application?
react-router-dom
react-router-native
All of the above
None of the above
Which of the following component gives you URL that have a hash in them?
BrowserRouter
HashRouter
StaicRouter
HistoryRouter
Which of the following component allows us to create a list of routes out of which the first one that is matched will be rendered?
Switch
Catch
Match
None of the above
Which of the following kinds of link allows us to add special styles to it when it's pointing to the current route?
Link
ActiveLink
NavLink
StaticLink
Which of the following hooks is used to get access to a URL parameter?
useParams
useUrlParams
useCurrentParams
useRouteMatch
Which of the following is state internal to a component?
Local State
Global State
Internal State
None of The Above
Which of the following is state that is not internal to a component?
Local State
Global State
External State
None of The Above
What technique is used to move state from child component to parent component so that it can be shared among multiple child components?
Lifting up State
Extracting State
Moving State
None of The Above
Which of the following is used to share state among multiple components?
Refs
Promise
Context
None of the above
Which of the following hooks are used to get data out of the nearest Provider Component like a Consumer Component?
useProvider
useContext
useState
useRef
Time is Up!