Which of the following statements about React is true?

JavaScript and React Quiz

Quiz
•
Professional Development
•
University
•
Medium
Karnam Bharath
Used 3+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
React is a backend framework.
React requires Babel to function.
React manipulates the DOM directly.
React is only for server-side rendering.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be logged? const user = { name: "John", age: 30 }; const { name } = user; console.log(name);
undefined
John
{ name: "John" }
30
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which HTTP method is commonly used for updating a resource?
GET
POST
PUT
DELETE
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? let x = 10; function modify() { x = 20; } modify(); console.log(x);
10
20
undefined
ReferenceError
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the useState hook in React?
To manage component side effects
To handle API requests
To create and manage state in functional components
To define routes
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the finally() method do in JavaScript Promises?
Runs only if the promise resolves successfully
Runs only if the promise rejects
Runs regardless of the promise state
Cancels a pending promise
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an advantage of using Axios over the Fetch API?
Fetch supports request cancellation, while Axios does not
Axios automatically parses JSON responses
Fetch supports interceptors, while Axios does not
Fetch works only in modern browsers
Create a free account and access millions of resources
Similar Resources on Wayground
25 questions
Introduction to Alexa Skills and APIs

Quiz
•
10th Grade - Professi...
17 questions
Green Store & Launching Vicks Jamu Quizez

Quiz
•
1st Grade - Professio...
20 questions
Monitoring and Analysis Mastery

Quiz
•
University
18 questions
Valentine's Day Quizzz

Quiz
•
University
24 questions
BCS Network Security Test 6

Quiz
•
University - Professi...
20 questions
React and JavaScript Quiz

Quiz
•
University
15 questions
QUIZ METEOROLOGI SESI-7

Quiz
•
University
25 questions
Q1: Systems Integration II

Quiz
•
University
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade