Java Script

Java Script

7th Grade

10 Qs

quiz-placeholder

Similar activities

AppLab

AppLab

6th - 8th Grade

10 Qs

JavaScript quiz for beginners

JavaScript quiz for beginners

7th Grade

10 Qs

Front-end quiz

Front-end quiz

1st - 10th Grade

12 Qs

Comenzando a programar

Comenzando a programar

3rd - 8th Grade

10 Qs

HTML Quiz

HTML Quiz

KG - Professional Development

6 Qs

Использование DOM

Использование DOM

4th - 7th Grade

15 Qs

Comandos essenciais JavaScript

Comandos essenciais JavaScript

1st Grade - University

10 Qs

HTML Quiz-1

HTML Quiz-1

6th - 12th Grade

10 Qs

Java Script

Java Script

Assessment

Quiz

Computers

7th Grade

Easy

Created by

Alaa Ahmad

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct keyword to define a function in JavaScript?

func

local

function

def

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the two main types of scope in JavaScript?

Public and Private

Global and Local

Static and Dynamic

Open and Closed

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to find the length of an array or string in JavaScript?

pop()

push()

length

reverse()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following events is triggered when an element is clicked?

onclick

onmouseover

onkeydown

onchange

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which syntax is used to change the text color of an element with id="title" in JavaScript?

document.getElementById("title").color = "red";

document.getElementById("title").style.textColor = "red";

document.getElementById("title").style.color = "red";

document.style("title").color = "red";

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator checks both value and type for equality in JavaScript?

=

==

===

====

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the Math object in JavaScript?

To perform mathematical tasks without creating an instance

To store user data

To manipulate strings

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?