JavaScript DOM Sec A

JavaScript DOM Sec A

University

20 Qs

quiz-placeholder

Similar activities

quizz tkinter

quizz tkinter

11th Grade - University

20 Qs

Intro to DBMS

Intro to DBMS

University

15 Qs

Design Thinking Overview

Design Thinking Overview

University

20 Qs

TOC Unit-4

TOC Unit-4

University

15 Qs

Lập trình trực quan

Lập trình trực quan

University

15 Qs

IT 209

IT 209

University

15 Qs

ISPFL8 Endterm Quiz #3

ISPFL8 Endterm Quiz #3

University

20 Qs

Monday Week#2

Monday Week#2

University

15 Qs

JavaScript DOM Sec A

JavaScript DOM Sec A

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Suresh N

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What does DOM stand for?

Data Object Model
Dynamic Object Manipulation
Document Object Model
Document Order Manipulation

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which method is used to access an HTML element by its ID?

getElementById()
selectElement()
findElement()
querySelector()

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How do you change the content of an HTML element using JavaScript?

textContent
innerHTML
innerText
contentText

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What does the document.write() method do in JavaScript?

Writes HTML expressions or JavaScript code to a document
Opens a new document
Deletes the current document
Appends text to an existing document

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What will the following code output? console.log(5 + '5');

10
'55'
55
Error

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the result of the following expression? typeof(undefined);

'string'
'null'
'object'
'undefined'

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What will the following code output? console.log(typeof NaN);

'NaN'
'null'
'undefined'
'number'

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?

Discover more resources for Computers