Question - 1
React Js is ______based architecture approach
- Module
- Component
- Package
- Class
Solutions
Answer- B
Question - 2
- Google
- Facebook
- Apple
- HCL
Solutions
Answer- B
Question - 3
- An interpreter
- A compiler
- A transpiler
- Both B & C
Solutions
Answer- D
Question - 4
In which directory react components are saved?
- inside js/components/
- inside node_modules/components/
- inside app/components/
- None the above
Solutions
Answer- A
Question - 5
Why React is faster then normal websites?
- It uses Original DOM
- It uses Virtual DOM
- It does not use any DOM
- None of the above
Solutions
Answer- B
Question - 6
What helps react for keeping their data unidirectional.?
Answer- C
Question - 7
Which of the following command is used to install create-react-app?
- npm install -g create-react-app
- npm install create-react-app
- npm install -f create-react-app
- install -g create-react-app
Solutions
Answer- A
Question - 8
In ReactJS, props can be used to pass
- Event handler to component
- Properties to the component
- Both A & B
- None of the above
Solutions
Answer- C
Question - 9
Which is not true about Virtual DOM in React JS?
- Can not directly update HTML.
- It updates faster.
- DOM manipulation is very easy.
- Too Much memory wastage.
Solutions
Answer- D
Question - 10
What is the default port where webpack-server runs?
Answer- B
Question - 11
The state in react can be updated by call to setState method. These calls are?
- Synchronous in nature
- Asynchronous in nature
- Are asynchronous but can be made synchronous when required
- None of these
Solutions
Answer- B
Question - 12
What is a state in React?
- A permanent storage.
- Internal storage of the component.
- External storage of the component.
- None of the above.
Solutions
Answer- B
Question - 13
As soon as the state of react component is changed, component will
- Does nothing , you have to call render method to render the component again
- re-renders the component
- be created again from scratch
- None of above
Solutions
Answer- B
Question - 14
Which of the following is a must API for every React.js component?
- renderComponent
- SetinitialComponent
- Render
- None of the above
Solutions
Answer- A
Question - 15
Which of the following is used to pass data to a component from outside in React.js?
- SetState
- Render with arguments
- Props
- PropTypes
Solutions
Answer- C
Question - 16
Which of the following function is used to change the state of the React.js component?
- this.setState
- this.setChangeState
- this.State{}
- None of the above.
Solutions
Answer- A
Question - 17
React Lifecycle method static getDerivedSateFromProps(props , state) is called when ___
- Component is created for the first time
- State of the component is updated
- Both A & B
- None of the above
Solutions
Answer- C
Question - 18
Which of the following method refers to the parent class in React.js?
- self()
- super()
- this()
- None of the above
Solutions
Answer- B
Question - 19
- Java Server eXtension
- JavaScript eXtension
- Java Script Extender
- None of above
Solutions
Answer- B
Question - 20
Regarding JSX attributes, Which of the following statement is true?
- Attribute names can be used in CAML case
- Attribute names can be used in Sentence case
- Any case can be used it does not matter like html
- None of the above
Solutions
Answer- A
Practice more set questions