JavaScript and React Quiz

JavaScript and React Quiz

University

20 Qs

quiz-placeholder

Similar activities

WebTech 2025 Intro quiz

WebTech 2025 Intro quiz

University

24 Qs

DW (EM25) - Introducción al Internet [T1]

DW (EM25) - Introducción al Internet [T1]

University - Professional Development

15 Qs

DEVELOPING A POSITIVE ATTITUDE

DEVELOPING A POSITIVE ATTITUDE

University

20 Qs

JavaScript Basics

JavaScript Basics

12th Grade - University

15 Qs

Susulan PBO XIRPL (2021/2022)

Susulan PBO XIRPL (2021/2022)

11th Grade - University

20 Qs

Java Quiz1 @ VCE (CSE (AI&ML))

Java Quiz1 @ VCE (CSE (AI&ML))

University

15 Qs

Android Studio 2

Android Studio 2

1st Grade - Professional Development

15 Qs

Diagnóstica TBD

Diagnóstica TBD

University

15 Qs

JavaScript and React Quiz

JavaScript and React Quiz

Assessment

Quiz

Professional Development

University

Medium

Created by

Karnam Bharath

Used 3+ times

FREE Resource

AI

Enhance your content

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements about React is true?

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

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?