3.0 Component State

3.0 Component State

University

5 Qs

quiz-placeholder

Similar activities

Frontend Web Development with React Session 1

Frontend Web Development with React Session 1

University

5 Qs

PREACT

PREACT

University

10 Qs

IT Consulting 2 - Technology change management

IT Consulting 2 - Technology change management

University

8 Qs

Computer Storage

Computer Storage

KG - University

10 Qs

Behavioral Design Patterns

Behavioral Design Patterns

University

10 Qs

Automata Theory

Automata Theory

University

10 Qs

Algorithms

Algorithms

University

10 Qs

GROUP 3 HCI ICE BREAKER

GROUP 3 HCI ICE BREAKER

University

10 Qs

3.0 Component State

3.0 Component State

Assessment

Quiz

Computers

University

Medium

Created by

Mike Denton

Used 2+ times

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What kind of React components traditionally have state?

Functional Components

Class Components

All Components

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What statement is correct about props in React?

Props are readonly and cannot change

Props can change at any time

Props manage their own internal state

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What statement is correct about state in React?

State is readonly and cannot change

There is no state in React

State can change internally at any time

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How do we change state in React?

We change state directly using state keyword

We change state indirectly using setState

We can never change state

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What does the extends mean in JavaScript?

It is used to create a child class of another class (parent)

It is used to create a parent class of another class (child)

It is used to extend the Node.js architecture