JS Practice: ITS Certification

JS Practice: ITS Certification

12th Grade

10 Qs

quiz-placeholder

Similar activities

DOM manipulation

DOM manipulation

9th - 12th Grade

13 Qs

JavaScript #4: DOM

JavaScript #4: DOM

12th Grade

10 Qs

FE METER REVIEW 5

FE METER REVIEW 5

12th Grade

15 Qs

Website Development

Website Development

6th - 12th Grade

14 Qs

Arrays += Chan

Arrays += Chan

9th - 12th Grade

12 Qs

Evaluasi dan Refleksi - 4

Evaluasi dan Refleksi - 4

12th Grade

10 Qs

JavaScript Practices #5

JavaScript Practices #5

12th Grade

12 Qs

Gmetrix HTML & CSS Session 4 Test

Gmetrix HTML & CSS Session 4 Test

9th - 12th Grade

10 Qs

JS Practice: ITS Certification

JS Practice: ITS Certification

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Nixon Lopez

Used 3+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What line of code should you use to display each room type on a new line?

document.getElementById("para").innerHTML += rooms[i] + "<br/>";

document.getElementById("para").innerHTML += rooms[i] + <br/>;

document.getElementById("para").innerHTML += rooms[i] ";

document.getElementById("para").innerHTML = rooms[i] + "<br/>";

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which event attributes should be used to change the text when the mouse hovers over a paragraph?

onmouseover, onmouseout

onclick, onchange

onchange, onmouseup

onmouseover, onmouseup

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How do you access the element with id section1?

getElementsByTagName('section1')

getElementById('section1')

getElementsByName('section1')

getElementsByClassName('section1')

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What line of code correctly appends an item to an existing array fruits?

push

append

add

insert

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How do you handle an exception in JavaScript to ensure a block of code executes regardless of whether an error occurs?

finally

done

complete

end

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Several HTML pages need to reference the same JavaScript code.

Where should the JavaScript code live?

In a .css file

Within the head tags of each document

In a .js file

Within the body tags of each document

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You need to determine whether the variable x is null.

What is the correct syntax?

x == null

x == “null”

x = null

x typeof null

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?

Discover more resources for Computers