React Js MCQ Questions
11. 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
Ans : B
Explanation: The create-react-app is an officially supported way to create React applications.
12. Which company is Developer of react?
A. Microsoft
B. Google
C. Facebook
D. IBM
View Answer
Ans : C
Explanation: React.JS was first used in 2011 for Facebook's Newsfeed feature.Facebook Software Engineer, Jordan Walke, created it.
13. ES6 stands for ?
A. ECMAScript 6
B. ECMA 6
C. ECMAJavaScript 6
D. EJavaScript 6
View Answer
Ans : A
Explanation: ES6 stands for ECMAScript 6.ECMAScript was created to standardize JavaScript, and ES6 is the 6th version of ECMAScript, it was published in 2015, and is also known as ECMAScript 2015.
14. The properties are assigned inside a __________ method
A. get()
B. constructor()
C. destructor()
D. init()
View Answer
Ans : B
Explanation: The properties are assigned inside a constructor() method.
15. Which method refers to the parent class?
A. inherits
B. self
C. super
D. this
View Answer
Ans : C
Explanation: The super() method refers to the parent class. By calling the super() method in the constructor method, we call the parent's constructor method and gets access to the parent's properties and methods.
16. 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
Ans : A
Explanation: React renders HTML to the web page by using a function called ReactDOM.render().
17. With JSX you can write expressions inside?
A. ()
B. []
C. " "
D. {}
View Answer
Ans : D
Explanation: With JSX you can write expressions inside curly braces { }.
18. 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
Ans : A
Explanation: True, The constructor function is called automatically when the object is initialized.
19. What is ReactJS?
A. Server side Framework
B. User-interface framework
C. Database
D. A Library for building interaction interfaces
View Answer
Ans : D
Explanation: ReactJS is a Library for building interaction interfaces
20. The component also requires a render() method, this method returns?
A. PHP
B. javascript
C. HTML
D. SQL
View Answer
Ans : C
Explanation: The component also requires a render() method, this method returns HTML.
Discussion