JavaScript Quiz

JavaScript Quiz

University

20 Qs

quiz-placeholder

Similar activities

Metode BK

Metode BK

University

16 Qs

Java_MCQ_3

Java_MCQ_3

University

15 Qs

Questionário sobre Inteligência Artificial

Questionário sobre Inteligência Artificial

University

15 Qs

Parcial de Sistemas Operativos

Parcial de Sistemas Operativos

University

19 Qs

Quiz desarrollo app moviles

Quiz desarrollo app moviles

University

20 Qs

Asesmen Harian Informatika Kelas 7

Asesmen Harian Informatika Kelas 7

7th Grade - University

18 Qs

UL_FPAS_S1

UL_FPAS_S1

University

15 Qs

LibreOffice Writer Styles Quiz

LibreOffice Writer Styles Quiz

10th Grade - University

15 Qs

JavaScript Quiz

JavaScript Quiz

Assessment

Quiz

Information Technology (IT)

University

Practice Problem

Medium

Created by

Abhishek Swami

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the main difference between let and const?

let is block-scoped, const is global-scoped

let can be reassigned, const cannot

let creates immutable variables, const creates mutable ones

let is function-scoped, const is block-scoped

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which method is used to make HTTP requests with Axios?

axios.get()

axios.fetch()

axios.request()

axios.http()

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will this code output? console.log(typeof null);

"null"

"object"

"undefined"

"string"

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which function is an example of a recursive function?
function countdown(num) {

if (num <= 0) return;

console.log(num);

countdown(num - 1);

}

Yes

No

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is NOT a valid HTTP method?

PATCH

FETCH

PUT

DELETE

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the purpose of JSON.parse()?

Converts an object to a string

Parses a string into a JSON object

Fetches data from an API

Validates JSON syntax

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is a higher-order function?

A function that only works with arrays

A function that returns an object

A function that takes another function as an argument or returns a function

A function that executes immediately

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

Already have an account?