Aptitude Reasoning English GK Computer Knowledge Programming Skill Banking Software Testing



Question - 1

React Js is ______based architecture approach

  • Module
  • Component
  • Package
  • Class
Solutions
Question - 2

Who Develop React.js?

  • Google
  • Facebook
  • Apple
  • HCL
Solutions
Question - 3

Babel is a __________?

  • An interpreter
  • A compiler
  • A transpiler
  • Both B & C
Solutions
Question - 4

In which directory react components are saved?

  • inside js/components/
  • inside node_modules/components/
  • inside app/components/
  • None the above
Solutions
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
Question - 6

What helps react for keeping their data unidirectional.?

  • JSX
  • Props
  • Flux
  • DOM
Solutions
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
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
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
Question - 10

What is the default port where webpack-server runs?

  • 3600
  • 8080
  • 3030
  • 8000
Solutions
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
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
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
Question - 14

 Which of the following is a must API for every React.js component?

  • renderComponent
  • SetinitialComponent
  • Render
  • None of the above
Solutions
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
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
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
Question - 18

Which of the following method refers to the parent class in React.js?

  • self()
  • super()
  • this()
  • None of the above
Solutions
Question - 19

JSX is acronym for 

  • Java Server eXtension
  • JavaScript eXtension
  • Java Script Extender
  • None of above
Solutions
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
Tags:
React Js MCQ (Multiple Choice Questions), Advanced React Js MCQ, React Js MCQ Online test,React Js MCQ Questions and answers PDF, React Js Interview Questions With Answers, React Js Technical Questions with full explanation