Search Header Logo

js DOM

Authored by Vadivel Subramaniam

Computers

12th Grade - Professional Development

Used 105+ times

js DOM
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function among the following lets to register a function to be invoked once?

setTimeout()

setTotaltime()

setInterval()

settime()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How is everything treated in HTML DOM?

Node

Attributes

Elements

Arrays

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which object is the top of the hierarchy?

Window Object

Document Object

Form Object

Form Control Elements

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What among the following is an appropriate event handler for input text among the below options ?

onclick

onchange

onkeyup

onblur

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How are the objects organized in the HTML DOM?

Class-wise

Queue

Hierarchy

Stack

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Consider the below code:

Identify the correct code in order to fetch the value entered in username text field?

< body>

< form name="register">

Enter username < input value="John" id="name" name="username">

< /form>

< /body>

document.register.name.value

document.getElementById ("name").value

document.getElementByName ("name").value

None of the above

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be printed in the console on execution of the below code?

var materials = [

'Hydrogen',

'Helium',

'Lithium',

'Beryllium'

];

console.log(materials.map (material => material.length));

[8, 6, 7, 9]

4

[4]

8, 6, 7, 9

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?