React.js Quiz | Set-1

    Last Updated :
    Discuss
    Comments

    Question 1

    Which of the following command is used to create react-js-app ?
    • npx create-react-app appname
    • npm install create-react-app
    • npx install create-react-app -g
    • install - l create-react-app

    Question 2

    In React.js which one of the following is used to create a class for Inheritance ?
    • Create
    • Extends
    • Inherits
    • Delete

    Question 3

    What is the default port number in which the application run ?
    • 3000
    • 8080
    • 5000
    • 3030

    Question 4

    Which of the following valid component return type of React ?
    • 2
    • 5
    • 1
    • 3

    Question 5

    Which of the following is a way to handle data in React.js ?
    • State & Props
    • Services & Components
    • State & Services
    • State & Component

    Question 6

    Which of the following is must for the API in React.js ?
    • SetinitialComponent
    • renderComponent
    • render
    • All of the above

    Question 7

    Which of the following is true regarding Babel ?
    • Compiler
    • Transpilar
    • Both of the above
    • None of the above

    Question 8

    In React.js, how we can pass the data from one component to another in React.js ?
    • SetState
    • Render with arguments
    • Props
    • PropTypes

    Question 9

    Which of the following function is true about changing the state in React.js ?
    • this.State{}
    • this.setState
    • this.setChangeState
    • All of the above

    Question 10

    Which of the following method is true about referring parent class in React.js ?
    • self()
    • inherits()
    • this()
    • super()

    There are 15 questions to complete.

    Take a part in the ongoing discussion