React Removal Exam

React Removal Exam

University

20 Qs

quiz-placeholder

Similar activities

Java_Parcial

Java_Parcial

University

19 Qs

frame alignment S&S week 4

frame alignment S&S week 4

University

20 Qs

AC Circuits

AC Circuits

University

20 Qs

web tech frontend

web tech frontend

University

20 Qs

LV13 Transmission diagnostics

LV13 Transmission diagnostics

University

20 Qs

IT 23 Quiz

IT 23 Quiz

University

20 Qs

Signal processing

Signal processing

University

24 Qs

IT 402 - Quiz 1 (BSIT 4O)

IT 402 - Quiz 1 (BSIT 4O)

University

20 Qs

React Removal Exam

React Removal Exam

Assessment

Quiz

Instructional Technology

University

Medium

Created by

ELVIN SAAVEDRA

Used 1+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary purpose of useState in React?

To fetch data from an API

To manage state in functional components

To navigate between pages

To style React components

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the useEffect hook allow you to do?

Directly change the DOM

Perform side effects like fetching data

Declare variables

Update component props

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command initializes a new React app using Vite?

npx create-react-app app-name

vite build

npm create vite@latest

npx react-vite

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In JSX, how do you insert a JavaScript variable inside HTML?

[variable]

{{ variable }}

<%= variable %>

{variable}

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to pass a prop from parent to child component?

childComponent={value}

<Child value ={value}/>

<Child.prop=value>

useProps(value)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What keyword is used to define a functional React component?

class

new

function

component

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following can trigger a component re-render?

Changing a constant variable

Changing the page title

Updating a state with setState

Using console.log

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?