JavaScript and React Quiz

JavaScript and React Quiz

University

20 Qs

quiz-placeholder

Similar activities

aptitude quiz

aptitude quiz

University

20 Qs

C Operators

C Operators

University - Professional Development

15 Qs

JavaScript Básico 2

JavaScript Básico 2

University

25 Qs

JavaScript and React Quiz

JavaScript and React Quiz

University

20 Qs

#100 Devs - LwL - class 15

#100 Devs - LwL - class 15

10th Grade - Professional Development

25 Qs

[FSW] PRE-Test Chapter 7

[FSW] PRE-Test Chapter 7

12th Grade - Professional Development

15 Qs

Arduino/Node MCU

Arduino/Node MCU

University

15 Qs

Quiz Js

Quiz Js

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?