React Js MCQ Questions And Answers

ReactJs MCQ : This section focuses on "Basics" of React Js. These Multiple Choice Questions (MCQ) should be practiced to improve the React Js skills required for various interviews (campus interviews, walk-in interviews, company interviews), placements, entrance exams and other competitive examinations.

1. Which of the following is true about React?

A. React is a JavaScript library for building user interfaces.
B. React is used to build single page applications.
C. React allows us to create reusable UI components.
D. All of the above

View Answer


2. The ___________ is an officially supported way to create React applications.

A. create
B. create-react-app
C. react-app
D. create react app

View Answer


3. Which command is used Install create-react-app?

A. npm install -g create-react-app
B. npm install create-react-app
C. npm install -f create-react-app
D. install -g create-react-app

View Answer


4. Which company is Developer of react?

A. Microsoft
B. Google
C. Facebook
D. IBM

View Answer


5. Initial Release to the Public (V0.3.0) was in ?

A. 2011
B. 2012
C. 2013
D. 2014

View Answer


6. ES6 stands for ?

A. ECMAScript 6
B. ECMA 6
C. ECMAJavaScript 6
D. EJavaScript 6

View Answer


7. A class is a type of function, but instead of using the keyword function to initiate it, we use the keyword?

A. constructor
B. class
C. object
D. dataObject

View Answer


8. The properties are assigned inside a __________ method

A. get()
B. constructor()
C. destructor()
D. init()

View Answer


9. To create a class inheritance, use the ________ keyword.

A. create
B. inherits
C. extends
D. this

View Answer


10. Which method refers to the parent class?

A. inherits
B. self
C. super
D. this

View Answer


11. In ES6, how many ways of defining your variables?

A. 3
B. 4
C. 5
D. 6

View Answer


12. React renders HTML to the web page by using a function called?

A. ReactDOM.render()
B. render()
C. ReactDOM_render()
D. React.render()

View Answer


13. JSX allows us to write HTML elements in JavaScript and place them in the DOM without any?

A. createElement
B. appendChild
C. getElementById
D. Both A and B

View Answer


14. With JSX you can write expressions inside?

A. ()
B. []
C. " "
D. {}

View Answer


15. Does React creates a VIRTUAL DOM in memory.

A. TRUE
B. FALSE
C. Can be true or false
D. Can not say

View Answer


16. The constructor function is called automatically when the object is initialized.

A. TRUE
B. FALSE
C. Can be true or false
D. Can not say

View Answer


17. Everything in react is a?

A. Module
B. Package
C. Class
D. Component

View Answer


18. What is ReactJS?

A.  Server side Framework
B.  User-interface framework
C. Database
D.  A Library for building interaction interfaces

View Answer


19. In React, component properties should be kept in an object called?

A. component
B. super
C. state
D. props

View Answer


20. The component also requires a render() method, this method returns?

A. PHP
B. javascript
C. HTML
D. SQL

View Answer





Discussion


* You must be logged in to add comment.