Home / CSE MCQs / ReactJS ::

CSE MCQs :: ReactJS

  1. What is ReactJS?
  2. A.
    Server-side Framework
    B.
    User-interface framework
    C.
    Both
    D.
    None

  3. What are the limitations of ReactJS?
  4. A.
    React is only for view layer of the app so we still need the help of other technologies to get a complete tooling set for development
    B.
    React is using inline templating and JSX. This can seem awkward to some developers
    C.
    The library of react is too large
    D.
    All of these

  5. How can you access the state of a component from inside of a member function?
  6. A.
    this.getState()
    B.
    this.prototype.stateValue
    C.
    this.state
    D.
    this.values

  7. Props are __________ into other components
  8. A.
    Injected
    B.
    Methods
    C.
    Both A and B
    D.
    All of these

  9. Which of the following API is a MUST for every ReactJS component?
  10. A.
    getInitialState
    B.
    render
    C.
    renderComponent
    D.
    None

  11. At the highest level, React components have lifecycle events that fall into
  12. A.
    Initialization
    B.
    State/Property Updates
    C.
    Destruction
    D.
    All of these

  13. What are the advantages of React JS?
  14. A.
    React can be used on client and as well as server side too
    B.
    Using React increases readability and makes maintainability easier. Component, Data patterns improves readability and thus makes it easier for manitaining larger apps
    C.
    React can be used with any other framework (Backbone.js, Angular.js) as it is only a view layer
    D.
    All of the above

  15. How does React handle Web Accessibility Initiative - Accessible Rich Internet Applications (WAI-ARIA) standard?
  16. A.
    aria-* HTML attributes are fully supported in JSX. Where most DOM properties and attributes in React are camelCased, these attributes should be lowercased
    B.
    aria-* attributes should be converted to camelCase like other attributes eg. className, onChange and so on
    C.
    React processes aria-* attributes separately and update the DOM for accessibility if the user requires it
    D.
    React is yet to support WAI-ARIA standard

  17. What does the "webpack command do?
  18. A.
    Transpiles all the Javascript down into one file
    B.
    Runs react local development server
    C.
    Both A and B
    D.
    None

  19. What is a react.js in MVC?
  20. A.
    Controller
    B.
    Middleware
    C.
    Model
    D.
    Router