HTML, Javascript, CSS Week 4 Homework
Quiz
•
Computers
•
11th Grade
•
Practice Problem
•
Easy
Bayden Schellein
Used 2+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does .textContent do in JavaScript?
Sets or gets the HTML inside an element
Sets or gets the text inside an element
Changes the background color of an element
Creates a new HTML element
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the .onclick property in JavaScript?
Adds a new element to the page
Changes an element’s text automatically
Attaches a function to execute when the element is clicked
Removes an element from the page
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will happen when the button is clicked in the following program?
An error will occur because lastPlanet is not defined.
The text inside the lastPlanet id will change to "Neptune is the last planet" when the button is clicked.
The text inside the button will change to "Neptune is the last planet" when clicked.
Nothing will happen because the function clickAction() is never called.
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will happen when the button is clicked?
An error will occur because fruit is not defined.
The text inside the will change to "Banana" when the button is clicked.
Nothing
Nothing will happen because updateFruit() is not called manually.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will happen when the button is clicked?
The text inside the message id will change to "Welcome, user!" when the button is clicked.
An error will occur because message is not properly declared.
The button text will change to "Welcome, user!".
Nothing will happen because loginUser() is not executed.
6.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Complete the JavaScript code to change the heading text when the button is clicked from 'Sydney' to 'Melbourne'. use single quotations (' ').
7.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Complete the JavaScript code to change the heading text when the button is clicked from 'Cat' to 'Dog'. Use single quotations (' ').
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
Cyber Security KS4
Quiz
•
8th - 12th Grade
15 questions
Linux-2 Quiz 2 -- LAMP
Quiz
•
1st - 12th Grade
11 questions
Youtube
Quiz
•
4th Grade - University
12 questions
Windows 10 Installation
Quiz
•
11th - 12th Grade
10 questions
Soal Ujian Komputer
Quiz
•
10th - 12th Grade
15 questions
Empowerment Technologies
Quiz
•
KG - 12th Grade
15 questions
Excel
Quiz
•
10th - 12th Grade
14 questions
Pre-test: On Online searching by Innovative Teaching Ideas)
Quiz
•
6th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
