
WEB L7

Quiz
•
Information Technology (IT)
•
6th - 8th Grade
•
Easy
Alaa Ahmad
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
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.style("title").color = "red";
document.getElementById("title").style.textColor = "red";
document.getElementById("title").style.color = "red";
document.style("title").color = "red";
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if
prompt("What is your name?")
is left empty?
username is an empty string (" ")
The page reloads
JavaScript throws an error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
let title = document.getElementById("title");
What will
title.innerHTML = "Hello " + username;
do?
Create a new HTML element
Update the HTML content of an element with id "title"
Log a message to the console
Display a prompt asking for the user's name
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of addEventListener() in JavaScript?
To execute a function when a specified event occurs
To loop through an array
To create a new HTML element
To modify CSS styles dynamically
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of media query in CSS?
To create animation
to apply styles based on the device characteristics
to add java script to CSS
to change HTML
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which device width range does the following media query cover?
@media (min-width: 400px) and (max-width: 768px)
Less than 400px
Greater than 768px
Between 400px and 768px
All screen sizes
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid media query?
@media screen-width: 768px
@media (max-width = 768px)
@media (max-width: 768px)
media @ (min-width: 500px)
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Perangkat Keras Komputer (10 Soal)

Quiz
•
7th Grade
15 questions
Informatika_Kelas 8_Sistem Komputer

Quiz
•
8th Grade
10 questions
Kuis Sistem Komputer (Hardware dan Software)

Quiz
•
6th Grade
8 questions
Netzwerk Lektion 1

Quiz
•
7th Grade
10 questions
Input and Output Devices Challenge

Quiz
•
7th Grade - University
15 questions
ULANGAN HARIAN 1

Quiz
•
7th Grade
10 questions
LITERASI TEKNOLOGI

Quiz
•
7th Grade
11 questions
SISTEM KOMPUTER

Quiz
•
7th Grade
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Multiplying and Dividing Integers

Quiz
•
7th Grade
20 questions
Morpheme Mastery Quiz for Grade 7

Quiz
•
7th Grade