placeholder image to represent content

React (Day-2)

Quiz by Khemraj Shrestha

Our brand new solo games combine with your quiz, on the same screen

Correct quiz answers unlock more play!

New Quizalize solo game modes
9 questions
Show answers
  • Q1

    File or folder where we should make changes to customize the run syntax is (npm run <<...>>)...

    both

    some other files

    package.json

    package-lock.json

    30s
  • Q2

    I have to import component as {Navbar} instead of Navbar. So for this what might be the exported command from that particular component?

    export Navbar

    export {Navbar}

    both a and c

    export default Navbar

    30s
  • Q3

    I have to create same navbar with different values in 2 pages like (in first navbar=> home & contact) and (in second=> home and about). So which feature in react provides me to do so?

    states

    hooks

    props

    router

    30s
  • Q4

    We can customize url and navigate to the particular page using the concept of...

    states

    hooks

    router

    props

    20s
  • Q5

    Props are used for inter-component communication, while states are used for intra-component communication.

    true
    false
    True or False
    30s
  • Q6

    Which file is not pushed in github and why?

    app.js file because it's already in github

    node modules folder because of its large size and can access again from terminal

    public folder because of its large size and can access again from terminal

    node modules folder because it is not necessary

    30s
  • Q7

    Code to deploy the react app in github is...

    npm run-deploy

    npm run deploy

    npm-deploy run

    npm deploy run

    30s
  • Q8

    Command to install node modules in existence files...

    npm install node modules

    npm install node

    npm install node module

    npm install

    30s
  • Q9

    How's the josh...?

    Impressive

    All of this...

    Phenomenal

    Amazing

    30s

Teachers give this quiz to your class