Search Header Logo

After Activity

Authored by Ms STAFF

Computers

Professional Development

Used 2+ times

After Activity
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following lifecycle methods is available in class components but NOT in functional components?

  • useEffect

  • useState

  • render

componentDidMount

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to pass props to a component?

<Welcome message="Hello" />

<Welcome.prop message="Hello" />

<Welcome.props message="Hello" />

<Welcome, message="Hello">

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In class components, how do you access props?

props.message

this.props.message

message.props

prop.message

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is correct about JSX?

JSX is mandatory in React

JSX makes HTML writing easier inside JavaScript

JSX is compiled by Python

JSX does not support expressions

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to create a basic React app?

npx create-react-app myApp

npm build myApp

react init myApp

create-react-app myApp --init

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?