Web L4 (Advanced)

Web L4 (Advanced)

6th - 8th Grade

10 Qs

quiz-placeholder

Similar activities

Perangkat Lunak

Perangkat Lunak

7th Grade

15 Qs

Grade 7-8

Grade 7-8

7th Grade

15 Qs

Lesson 2 Part 1 Review

Lesson 2 Part 1 Review

7th - 8th Grade

10 Qs

COM 6- Blog Editor Quiz

COM 6- Blog Editor Quiz

6th Grade

10 Qs

Programming with a GUI and Hardware

Programming with a GUI and Hardware

8th Grade

8 Qs

Editing Colors

Editing Colors

7th - 8th Grade

15 Qs

Google Sheets - Beginner

Google Sheets - Beginner

6th - 8th Grade

15 Qs

Basic Concepts of Email

Basic Concepts of Email

5th - 6th Grade

15 Qs

Web L4 (Advanced)

Web L4 (Advanced)

Assessment

Quiz

Computers

6th - 8th Grade

Easy

Created by

Alaa Ahmad

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In this line, what is the purpose of addEventListener?

btn.addEventListener("click", function(){ ... })

To create a new element

To style the button

To run the function when the page loads

To execute a function when the button is clicked

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be printed by the following code?

let name = "Maryam";

name = "Menna";

console.log(name)

Maryam

Menna

Error

Undefined

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens if you try to reassign pi in this code?

const pi = 3.14;

pi = 3.14159;

pi will change to 3.14159

It will log both values

It will throw an error

Nothing happens

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to access the type property of the laptop object?

let laptop = {

type:hp,

ram:16,

price:40000

}

laptop[type]

laptop.type

laptop->type

laptop::type

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

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

function

func

def

local

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following developer tools shows the code for the web page ?

console

Elements/inspector

network

sources

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?