uCertify JavaScript Chapter 9 and 10

uCertify JavaScript Chapter 9 and 10

9th - 12th Grade

21 Qs

quiz-placeholder

Similar activities

2da prueba 6to aplicaciones 2022-2023

2da prueba 6to aplicaciones 2022-2023

12th Grade

20 Qs

Arduino_Quiz

Arduino_Quiz

12th Grade

20 Qs

History of the computer

History of the computer

12th Grade

20 Qs

Προγραμματισμός Β Λυκείου

Προγραμματισμός Β Λυκείου

9th Grade

20 Qs

Python Quiz For Starters

Python Quiz For Starters

3rd Grade - Professional Development

17 Qs

Django-quiz

Django-quiz

5th Grade - University

20 Qs

Logic Gates Quiz (A Level 3.2)

Logic Gates Quiz (A Level 3.2)

12th Grade

17 Qs

QUIZ 3 SAM

QUIZ 3 SAM

12th Grade

20 Qs

uCertify JavaScript Chapter 9 and 10

uCertify JavaScript Chapter 9 and 10

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Easy

Created by

Greg Baker

Used 12+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

21 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following methods returns an array of all the elements in a Webpage, with a specified class name?

getElementsByName

getElementsByTagName

getElementsByClassName

getElementByClassName

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method allows you to delete entire HTML attributes from an element?

getElementById

setAttribute

innerHTML

removeAttribute

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method retrieves the corresponding value of an attribute?

getAttribute

setAttribute

removeAttribute

innerHTML

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following methods will access all occurrences in the page of an element with a specified name value and return them in an array?

getElementsByTagName

getElementById

innerHTML

getElementsByName

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which line of code will center <div id="mydiv"> on the page?

document.getElementsByName("mydiv").setAttribute("align", "center");

document.getElementById("mydiv").getAttribute("align", "center");

document.getElementsByName("mydiv").getAttribute("align", "center");

document.getElementById("mydiv").setAttribute("align", "center");

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following methods lets you access all occurrences of an HTML tag in a Webpage?

getElementByID

getElementsByName

getElementsByTagName

innerHTML

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method will return only the first occurrence of a specified element in a script, rather than finding all occurrences of a specified element and returning them in an array?

getElementsByTagName

getElementById

innerHTML

getElementsByName

Access all questions and much more by creating a free account

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

Already have an account?