WEB L7

WEB L7

6th - 8th Grade

10 Qs

quiz-placeholder

Similar activities

PERANGKAT KERAS

PERANGKAT KERAS

7th Grade - University

10 Qs

Informatif-Sumatif Perangkat Keras dan Lunak Kelas VII

Informatif-Sumatif Perangkat Keras dan Lunak Kelas VII

7th Grade

13 Qs

Quiz TIK kelas 7

Quiz TIK kelas 7

7th Grade

10 Qs

Computer software

Computer software

7th Grade

10 Qs

UH SISTEM KOMPUTER KELAS 7

UH SISTEM KOMPUTER KELAS 7

7th Grade

10 Qs

Unit 7: Research Vocabulary

Unit 7: Research Vocabulary

8th Grade

10 Qs

Latihan Soal Sistem Komputer

Latihan Soal Sistem Komputer

8th Grade

10 Qs

Creative Mind ICT Competition for Grade 8 and 9

Creative Mind ICT Competition for Grade 8 and 9

8th Grade

10 Qs

WEB L7

WEB L7

Assessment

Quiz

Information Technology (IT)

6th - 8th Grade

Practice Problem

Easy

Created by

Alaa Ahmad

Used 2+ 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

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

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?