JavaScript and React Quiz

JavaScript and React Quiz

University

20 Qs

quiz-placeholder

Similar activities

SAP DIAGNOSTIC TEST

SAP DIAGNOSTIC TEST

University

20 Qs

Informática Excel

Informática Excel

University

20 Qs

JavaScript and React Quiz

JavaScript and React Quiz

University

20 Qs

G1 - Dizajnimi dhe Zhvillimi i Uebit

G1 - Dizajnimi dhe Zhvillimi i Uebit

University

15 Qs

Day -1

Day -1

University

15 Qs

Basics of Python Programming Unit-1

Basics of Python Programming Unit-1

University - Professional Development

20 Qs

javascript_2

javascript_2

10th Grade - University

23 Qs

C++ Programming - MCQs

C++ Programming - MCQs

University

20 Qs

JavaScript and React Quiz

JavaScript and React Quiz

Assessment

Quiz

Professional Development

University

Medium

Created by

Karnam Bharath

Used 2+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be logged? console.log(typeof null);

"null"

"undefined"

"object"

"string"

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary purpose of useState in React?

To create static variables

To manage state in functional components

To modify the DOM directly

To fetch data from APIs

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which HTTP method is commonly used for updating existing data in REST APIs?

GET

POST

PUT

DELETE

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does fetch() return in JavaScript?

A resolved value

A callback function

A Promise

An XML object

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create a class in JavaScript?

function MyClass() {}

class MyClass {}

new class MyClass {}

MyClass() => {}

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is a pure function?

A function that modifies global variables

A function that always returns the same output for the same input

A function that depends on Math.random()

A function that performs AJAX requests

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default return value of a JavaScript function if no return statement is provided?

null

undefined

0

""

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?