JS Practice: ITS Certification

Quiz
•
Computers
•
12th Grade
•
Medium

Nixon Lopez
Used 3+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
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
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
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
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
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
Similar Resources on Wayground
10 questions
12 CS 6-10 One Mark

Quiz
•
12th Grade
12 questions
JavaScript Practices #5

Quiz
•
12th Grade
15 questions
Web I: CSS Debug

Quiz
•
9th - 12th Grade
10 questions
Evaluasi dan Refleksi - 4

Quiz
•
12th Grade
15 questions
JavaScript and Graphics

Quiz
•
9th - 12th Grade
15 questions
Просвещения Web-программирование №10 Тест 2024

Quiz
•
9th - 12th Grade
15 questions
8

Quiz
•
11th - 12th Grade
6 questions
Translate to Math

Quiz
•
9th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th 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