Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.

Unit 1 MCQs Refreshing JavaScript and ReactJS installation

INT252 — Web App Development With Reactjs 50 questions. Pick an option to check it.

Read the notes

0 of 50 answered 0 right 0 wrong , 50 left

  1. Question 1 of 50

    In ES6, which keyword is used to declare a variable that cannot be reassigned?

  2. Question 2 of 50

    What is the scope of a variable declared using the 'let' keyword?

  3. Question 3 of 50

    Which of the following is the correct syntax for an Arrow Function in ES6?

  4. Question 4 of 50

    How does the 'this' keyword behave differently in Arrow Functions compared to regular functions?

  5. Question 5 of 50

    Which Array method creates a new array by applying a function to every element in the calling array?

  6. Question 6 of 50

    What does the Array.prototype.filter() method return?

  7. Question 7 of 50

    Which method checks if all elements in an array pass a specific test?

  8. Question 8 of 50

    What is the primary purpose of the Array.prototype.reduce() method?

  9. Question 9 of 50

    Which ES6 feature allows you to unpack values from arrays or properties from objects into distinct variables?

  10. Question 10 of 50

    What is the output of the following code: const [a, b] = [1, 2]; console.log(b);?

  11. Question 11 of 50

    Which operator is indicated by three dots (...) and expands an iterable into individual elements?

  12. Question 12 of 50

    In the context of function arguments, what does the Rest operator (...) do?

  13. Question 13 of 50

    How do you define a class in ES6?

  14. Question 14 of 50

    Which keyword is used to inherit a class from another class?

  15. Question 15 of 50

    What is the purpose of the 'export default' syntax in ES6 Modules?

  16. Question 16 of 50

    How do you import a named export 'data' from a module 'file.js'?

  17. Question 17 of 50

    Which method creates a new Array instance from an array-like or iterable object?

  18. Question 18 of 50

    What does the Array.prototype.find() method return?

  19. Question 19 of 50

    The Array.prototype.concat() method is used to:

  20. Question 20 of 50

    What is a Single Page Application (SPA)?

  21. Question 21 of 50

    What is a major difference between SPA and MPA (Multi-Page Application)?

  22. Question 22 of 50

    Which company maintains ReactJS?

  23. Question 23 of 50

    What is the standard command to create a new React project using Create React App?

  24. Question 24 of 50

    Which build tool is known for being faster than Webpack and is often used as an alternative to Create React App?

  25. Question 25 of 50

    Which folder in a React project structure typically contains images, index.html, and the manifest file?

  26. Question 26 of 50

    In a standard React folder structure, where does the source code (components, styles) primarily reside?

  27. Question 27 of 50

    What is 'node_modules' in a React environment?

  28. Question 28 of 50

    What does JSX stand for?

  29. Question 29 of 50

    Can browsers understand JSX directly?

  30. Question 30 of 50

    In React, what is the equivalent of the HTML 'class' attribute in JSX?

  31. Question 31 of 50

    What method is strictly used to render a React element into the DOM in older React versions (before React 18)?

  32. Question 32 of 50

    Which function is implicitly called when you write JSX tags?

  33. Question 33 of 50

    What are the first three arguments of React.createElement()?

  34. Question 34 of 50

    How do you embed a JavaScript expression inside JSX?

  35. Question 35 of 50

    Which of the following is a valid way to write an inline style in JSX?

  36. Question 36 of 50

    Component names in React must start with:

  37. Question 37 of 50

    What is the main advantage of using JSX over React.createElement?

  38. Question 38 of 50

    If you want to render a list of items in React, which array method is most commonly used?

  39. Question 39 of 50

    What acts as the entry point to a React application created with Vite?

  40. Question 40 of 50

    Which file typically contains the root DOM node <div id="root"></div>?

  41. Question 41 of 50

    In React, tags with no children (self-closing tags) must end with:

  42. Question 42 of 50

    What is the correct way to wrap multiple elements in JSX without adding an extra node to the DOM?

  43. Question 43 of 50

    What is the return type of a functional component?

  44. Question 44 of 50

    Which environment is required to run the 'create-react-app' command?

  45. Question 45 of 50

    What is the purpose of package.json in a React project?

  46. Question 46 of 50

    What does the Array.prototype.reverse() method do?

  47. Question 47 of 50

    How do you comment inside JSX?

  48. Question 48 of 50

    What happens if you try to render a Boolean value (true/false) in JSX?

  49. Question 49 of 50

    Which attribute is used in JSX to handle the 'for' attribute of labels?

  50. Question 50 of 50

    The 'forEach' array method returns:

That's unit 1

Answer a few questions and your score shows up here.