Correct Answer: Orange && Worng Answer: Red
1. Which of the following is used to access a function fetch() from h1 element in JSX?
View Answer
Explanation: The correct command is <h1>{fetch()}</h1>.
2. When setState() is called inside render() method, which of the following events takes place?
View Answer
Explanation: Stackoverflow error occurs when setState() is called inside render() method.
3. What happens if you render an input element with disabled = {false}?
View Answer
Explanation: It will be rendered as enabled if you render an input element with disabled = {false}.
4. When is useReducer used over useState in React component?
View Answer
Explanation: When we want to replace redux, useReducer is used over useState.
5. React is a ___________
View Answer
Explanation: React is a JavaScript library.
6. Choose the library which is most often associated with react?
View Answer
Explanation: Jest is most often associated with react.
7. What is used to handle code-splitting?
View Answer
Explanation: React.lazy is used to handle code splitting.
8. Why is useLayoutEffect used?
View Answer
Explanation: When you need the browser to paint before the effect runs, useLayoutEffect used.
9. Which of the following terms commonly described react applications?
View Answer
Explanation: Declarative is commonly used to describe react applications.
10. Why is ref used?
View Answer
Explanation: Ref is used to directly access the DOM node.
Categories
C Programming MCQsC++ Programming MCQsJAVA MCQsVisual Basic MCQsData Structure MCQsSoftware Package MCQsComputer Organization and Architecture MCQsOperating System MCQsDigital Electronics MCQsDBMS MCQsSystem Analysis and Management Information System MCQsSystem Maintenance MCQsData Communication and Networking MCQsInternet & Web Technology MCQsSoftware Engineering MCQsManagement (Common) MCQsSystem Software MCQsComputer Graphics MCQsArtificial Intelligence & Expert System MCQsE-Commerce MCQsMultimedia MCQsPower Electronics MCQsTesting & Maintenance Electrical Machine MCQsAutomatic Control System MCQsAdvance Communication System MCQsDigital Electronics MCQs