React Questions March 16, 2023 | No Comments 0 votes, 0 avg 108 123456789101112131415 React Questions 1 / 15 1. Regarding JSX attributes, Which of the following statement is true? A. Attribute names can be used in CAML case B. Attribute names can be used in Sentence case C. Any case can be used it does not matter like html D. none of these 2 / 15 2. Which of the following command is used to Install create-react-app? A. npm install create-react-app B. npm install -f create-react-app C. npm install -g create-react-app D. install -g create-react-app 3 / 15 3. Find the bug in this code : function car({make, model}) { return < h1 > {make} {model} < /h1 > ; }; A. Add parenthesis around the return value B. Remove the return statement C. Wrap the return in a fragment D. The first letter of the function must be capitalized 4 / 15 4. How can you combine the following arrays using the spread operator? A. const combined = [array1, array2]; B. const combined = …array1 + …array2; C. const combined = […array1, …array2]; D. const combined = array1 + array2; 5 / 15 5. Which operator can be used to conditionally render a React component? A. && B. :: C. ?? D. || 6 / 15 6. Props are __________ into other components A. Injected B. Methods C. Injected Methods D. All of these 7 / 15 7. What is the difference between the click behaviors of these two buttons (assuming that this.handleClick is bound correctly)? A. < button onClick={this.handleClick} > Click Me < /button > < /code> < /pre > B. < button onClick={event => this.handleClick(event)}> Click Me < /button > A. Button A will not have access to the event object on click of the button. B. Button B will not fire the handler this.handleClick successfully. C. Button A will not fire the handler this.handleClick successfully. D. There is no difference 8 / 15 8. Which of the following is true about the below syntax ?disabled = {false} A. rendered as disabled B. rendered at all C. rendered as enabled D. none of these 9 / 15 9. Who Develop React.js? A. Google B. facebook C. Apple D. HCL 10 / 15 10. What can you use to handle code splitting? A. React.split B. React.lazy C. React.memo D. react.fallback 11 / 15 11. What is the children prop? A. A property that lets you pass data to child components B. A property that lets you set an object as a property C. A property that lets you nest components in other components D. A property that adds child values to state 12 / 15 12. What helps react for keeping their data unidirectional.? A. jsx B. props C. flux D. Dom 13 / 15 13. React.js was Initially released in ……………. A. May 29, 2013 B. April 29, 2013 C. june 29,2013 D. May 29,2014 14 / 15 14. Which attribute is React’s replacement for using innerHTML in the browser DOM? A. injectHTML B. dangerouslySetInnerHTML C. weirdSetInnerHTML D. strangeHTML 15 / 15 15. In which of the following directory React Components are saved? A. Inside js/components/ B. Inside components/js/ C. Inside vendor/js/components/ D. Inside vendor/components/ Your score isThe average score is 43% LinkedIn Facebook VKontakte 0% Restart quiz By WordPress Quiz plugin Questions, Quiz