JavaScript Quiz

JavaScript Quiz

University

10 Qs

quiz-placeholder

Similar activities

Online Transaction laro oo laro

Online Transaction laro oo laro

University

10 Qs

Cyber Security 101

Cyber Security 101

University

10 Qs

Critical Approaches to Literature

Critical Approaches to Literature

University

10 Qs

hi

hi

KG - Professional Development

11 Qs

Physical Security Management 2

Physical Security Management 2

University

10 Qs

Quiz Sesi 1 - Datamine Event 2021

Quiz Sesi 1 - Datamine Event 2021

University - Professional Development

10 Qs

Mobile Computing quiz2

Mobile Computing quiz2

University

10 Qs

Rocket League

Rocket League

1st Grade - Professional Development

15 Qs

JavaScript Quiz

JavaScript Quiz

Assessment

Quiz

Other

University

Practice Problem

Medium

Created by

Gnaneshwar Reddy

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does document.getElementById("demo") do?

Changes the class of an element

Adds a new element

Selects an element with ID "demo"

Removes an element

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method adds a click event listener to a button?

button.listen("click")

button.addEvent("click", function)

button.addEventListener("click", function)

button.onClick(function)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will [].forEach() do in JavaScript?

Modify the array directly

Create a new array

Loop through each element

Remove elements from the array

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method returns a new array with transformed values?

filter()

map()

forEach()

reduce()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of typeof null in JavaScript?

"null"

"undefined"

"object"

"nulltype"

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a correct if statement?

if x == 5:

if x = 5

if (x == 5) {}

if x = 5 {}

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does filter() return?

A boolean

A single value

A modified original array

A new array with filtered elements

Access all questions and much more by creating a free account

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?