wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Javascript Dom

Total questions: 134

Worksheet time: 1hrs 7mins

Name
Class
Date
1.

Indicates the beginning and the end of a JavaScript section. / Indique le début et la fin d'une section JavaScript.

a)

<html> </html>

b)

<style> </style>

c)

<article> </article>

d)

<script> </script>

2.

How can a developer show a pop-up message to the user on the browser window? / Comment un développeur peut-il afficher un message contextuel à l'utilisateur dans la fenêtre du navigateur?

a)

alert

b)

prompt

c)

console.log

d)

<p> tag

3.

Which message will the user see? / Quel message l'utilisateur verra-t-il?

a)

"Hello user"

b)

No message / Pas de message

c)

"Goodbye user"

d)

"message + user"

4.

Which of the following JavaScript methods are you most likely to use to activate a button? / Laquelle des méthodes JavaScript suivantes êtes-vous le plus susceptible d'utiliser pour activer un bouton?

a)

onmouseover

b)

onload

c)

whenclick

d)

onclick

5.

What DOM Property is used to update the text of an HTML tag? / Quelle propriété DOM est utilisée pour mettre à jour le texte d'une balise HTML?

a)

id

b)

innerHTML

c)

src

d)

style

6.

What is one key characteristic of an id? / Quelle est une caractéristique clé d'un identifiant?

a)

It must be capitalized / Il doit être capitalisé

b)

It must be unique to one tag / Il doit être unique à une balise

c)

It cannot include numbers / Il ne peut pas inclure de chiffres

d)

It must go in the closing tag / Il doit aller dans la balise de fermeture

7.

Which of the following is the proper way to call the testFunction() function when a button is clicked? / Laquelle des propositions suivantes est la bonne façon d'appeler la fonction testFunction () lorsqu'un bouton est cliqué?

a)

onclick=testFunction

b)

when button clicked = "testFunction()"

c)

onclick="testFunction()"

d)

onclick="testFunction"

8.

DOM get element by id is? / DOM get élément par id est?

a)

Document.Getelementbyid()

b)

document.getElementById()

c)

Document.getElementByID()

d)

DOM.getElmentById()

9.

<button onclick="aFunction()"> Click me </button>


What is output once the button is pressed? / Quelle est la sortie une fois que le bouton est enfoncé?

a)

aFunction() is called and its code get executed / aFunction () est appelée et son code est exécuté

b)

Click me is displayed / Cliquez sur moi s'affiche

10.

What do "purple", "green" in this code refer to? / À quoi font référence "violet", "vert" dans ce code?


var x1= document.getElementById("purple")

var x2= document.getElementById("green")

a)

They are the IDs / Ce sont les ID

b)

They are the names of the HTML / Ce sont les noms du HTML

c)

They are the names of <h1> tags / Ce sont les noms des balises <h1>

d)

They are the names of <p> tags / Ce sont les noms des balises <p>

11.

How can a developer show a pop-up window input box that the user can type in? / Comment un développeur peut-il afficher une zone de saisie de fenêtre contextuelle que l'utilisateur peut saisir?

a)

alert

b)

prompt

c)

console.log

d)

document.getElementById

12.
Which object is passed as the argument to handlers for keydown, keyup, and keypress events?
a)
KeyboardEvent
b)
Key Event
c)
Mouse Event
d)
Alphabet Event
13.

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

a)

getElementsByName

b)

getElementsByTagName

c)

getElementsByClassName

d)

getElementByClassName

14.

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

a)

getElementById

b)

setAttribute

c)

innerHTML

d)

removeAttribute

15.

Which method retrieves the corresponding value of an attribute?

a)

getAttribute

b)

setAttribute

c)

removeAttribute

d)

innerHTML

16.

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?

a)

getElementsByTagName

b)

getElementById

c)

innerHTML

d)

getElementsByName

17.

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

a)

getElementByID

b)

getElementsByName

c)

getElementsByTagName

d)

innerHTML

18.

Which method dynamically modifies the value of an element's attribute?

a)

setAttribute

b)

getAttribute

c)

removeAttribute

d)

getElementById

19.

Which property of the form object returns the number of elements in the form?

a)

target

b)

encoding

c)

elements

d)

length

20.

const body = document.body;

In JavaScript, what does it do?

a)

Creates a constant which reference to the body element

b)

Creates a duplication of the body element, and every change does not affect the body element

21.

const body = document.body;

What is the type of body?

(a)  

22.

How to get all elements by their tag name in JavaScript?

a)

document.getElementsByTagName();

b)

document.getElementsByTag();

c)

document.getElementsByTabName();

d)

document.getElementByTagName();

23.

How to get all elements by their class name in JavaScript?

a)

document.getElementsByClassName();

b)

document.getElementsByClass();

c)

document.getElementsByClassNames();

d)

document.getElementByClassName();

24.

document.querySelector('#bats');

What does it do in JavaScript?

a)

It uses CSS notation to find the first element with id 'bats'

b)

It uses CSS notation to find the element with class 'bats'

c)

It returns a node list of all the elements with id 'bats'

d)

It find the elements that matches a CSS selector '#bats'

25.

Are document.querySelectorAll('.bats') as same as document.getElementsByClassName('bats')?

a)

Yes

b)

No

26.

In Document Object Model (DOM), all the properties, methods and events that are available to a web developer for manipulating and creating web pages are organised into:

a)

Classes

b)

Objects

c)

Modules

d)

Variables

27.

DOM represents a webpage in what way?

a)

Dynamic structure

b)

Recursive structure

c)

Tree-like structure

d)

Hash table structure

28.

Which of the following is an appropriate event handler for input text?

a)

onclick

b)

onchange

c)

onkeyup

d)

onblur

29.

Which of the following is an appropriate event handler when the user clicks on an element?

a)

onclick

b)

onchange

c)

onkeyup

d)

onblur

30.

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

b)

document.getElementById ("name").value

c)

document.getElementByName ("name").value

d)

None of the these

31.

How to add event handler that would be invoked when the document's body is clicked?

a)

document.onclick = function (){

// do something

};

b)

document.body.addEventListener('click', doSomethingFunction);

c)

document.click = function (){

// do something

};

d)

document.body.addEventListener('onclick', doSomethingFunction);

e)

document.body.onclick = function (){

// do something

};

32.

document.body.addEventListener('click', () => alert('You clicked!'));

Which type of the handler function is in above JavaScript code?

a)

Arrow function

b)

Lambda function

c)

Parentheses function

d)

Short function

33.

What is the difference between keydown and keypress event in JavaScript?

a)

keydown event occurs when a key is pressed

b)

keypress event occurs after keydown event and only occurs for keys that produce character input

c)

keydown event occurs when a key released

d)

keypress event occurs when a key was pushed down

e)

keydown and keyup events occur when a any key is pressed

34.

Can you remove an event in JavaScript?

a)

Yes

b)

No

35.

Which of the method following are used to navigate around the DOM tree?

a)

parentNode()

b)

nextSibling()

c)

nextDaughter()

d)

childrenNodes()

e)

previousChild()

36.

Which of the following is the container for input elements?

a)

Form

b)

Page

c)

Canvas

d)

Input

37.

How many primitive data types in JavaScript?

a)

6

b)

7

c)

5

d)

4

38.

What is callback function?

A callback is a function that is provided as an (a)   to another function.

39.

What does JSON stand for?

a)

JavaScript Object Notation

b)

Java Object Notation

c)

JavaScript Object Normalization

d)

JavaScript Object-Oriented Notation

40.

What are the preferred (modern) coding conventions for declaring variables?

a)

const

b)

var

c)

let

d)

mkdir

41.

What is the correct jQuery code to set the background colour of all p elements to red?

a)

$("p").css("backgroundColor","red");

b)

$("p").layout("background-color","red");

c)

$("p").manipulate("background-color","red");

d)

$("p").css("background-color","red");

42.

What is the correct way(s) to access a property in an object?

a)

object.propertyName

b)

propertyName()

c)

propertyName

d)

object["propertyName"]

43.

What is the preferred way to loop through an object?

a)

for (const key in object)

b)

for (let i = 0; i < object.length; i++)

c)

console.log(loop my object)

d)

no idea

44.

What language or library is the following code written in? #function{

margin-left:20px;

}

a)

JavaScript

b)

jQuery

c)

German

d)

CSS

45.

What is the correct name for Javascript's variable syntax?

a)

camelCase

b)

kebab-case

c)

snake_case

d)

js_case

46.

What is the meant by "this"?

a)

that

b)

depends who's asking

c)

`this` in a higher pitch

d)

the object of which the function is a property

47.

Which of the following are valid keywords for JavaScript?

a)

let

b)

var

c)

const

d)

def

48.

A callback is a function that is passed as an argument to another function.

a)

True

b)

False

49.

Which symbol is used as an abbreviation for the jQuery function?

a)

%

b)

&

c)

$

d)

@

50.

JavaScript is a simpler form of Java built for the web.

a)

True

b)

False

51.

The Document Object Model (DOM) can be used to:

a)

Find elements by class

b)

Create new elements

c)

Retrieve data from a server

d)

Change element styles

52.

The code in a function can access variables declared outside of the function.

a)

True

b)

False

53.

Variables declared inside of a function are accessible outside of the function?

a)

True

b)

False

54.

The syntax for JavaScript objects is similar to the syntax for Python dictionaries?

a)

True

b)

False

55.

What is the name of the JavaScript standard?

a)

JavaScript

b)

ECMA Script

c)

JS

d)

PEP

56.

The ++ operator increments the value of the operand by one.

a)

True

b)

False

57.

The ______ nethod returns an array of elements that match a specified tag name.

a)

getElementById()

b)

getElementByTagName()

c)

getElementByClass()

d)

querySelector()

58.

Which of the following is the correct syntax for accessing an element with the id value for a headline?

a)

document. getElementByID("headline")

b)

document. getElementByID(headline)

c)

document. getElementById("headline")

d)

document. GetElementByID("headline")

59.

The following code returns a list of all elements where the id = "intro"

var x = document.getElemensByClassName("intro");

a)

TRUE

b)

FALSE

60.

What is the correct Javascript syntax to change the content of the HTML element below?

<p id="demo">This is a demonstration.</p>

a)

document.getElementbyId('demo").innerHTML="Hello World!";

b)

document.getElementById('demo").innerHTML="Hello World!"; #demo.innerHTML = "Hello World!";

c)

document.getElementbyId('demo").innerHTML=Hello World!;

d)

document.GetElementById('demo").innerHTML="Hello World!";

61.

The Document Object Model (DOM) is a World Wide Web Consortium (W3C) standard.

a)

TRUE

b)

FALSE

62.

Each element on a web page is represented in the HTML DOM by its own object.

a)

TRUE

b)

FALSE

63.

The ____ property of the Image object allows Javascript to dynamically change an image.

a)

id

b)

class

c)

size

d)

src

64.

Which of these lines of code is valid javascript for defining a variable?

a)

var noseSize = 10;

b)

var noseSize == 10;

c)

noseSize is 10;

d)

var nose Size = 10;

65.

Which of these is a valid variable name in Javascript?

a)

123abc

b)

abc 123

c)

abc123

d)

abc123!

66.

What is the correct syntax to use an external script called "new.js"?

a)

<script src = "new.js">

b)

<script name = "new.js">

c)

<script href = "new.js">

d)

<script content = "new.js">

67.

Can you test Javascript code inside web browsers like Firefox, Chrome, Microsoft Edge?

a)

TRUE

b)

FALSE

68.

Who created Javascript Language?

a)

Brendan Eich

b)

Douglas Crockford

c)

James Gosling

d)

Ryan Dahl

69.

Javascript works inside web browsers only?

a)

TRUE

b)

FALSE

70.

What is Javascript?

a)

Scripting Language that follows ECMAScript standard

b)

Client-side scripting language (web browsers)

c)

Server-side scripting language

d)

All of the choices are correct

71.

Inside what HTML tag you would put JavaScript code?

a)

<js>

b)

<scripting>

c)

<script>

d)

<javascript>

72.

Here is a sample HTML file with a submit button. Now modify the style of the paragraph text through javascript code.

(a)  

73.

Write a JavaScript function to get the values of the First and Last name of the following form.

4 lines
74.

Write a JavaScript program to set the background color of a paragraph.

4 lines
75.

Here is a sample HTML file with a submit button. Write a JavaScript function to get the value of the href, hreflang, rel, target, and type attributes of the specified link.

4 lines
76.

Write a JavaScript program to remove items from a dropdown list.

4 lines
77.

Write a JavaScript program to count and display the items of a dropdown list, in an alert window.

4 lines
78.

Write a JavaScript program to get the width and height of the window (any time the window is resized).

4 lines
79.

Write a JavaScript program to highlight the bold words of the following paragraph, on mouse over a certain link.

[On mouse over here bold words of the following paragraph will be highlighted]

We have just started this section for the users (beginner to intermediate) who want to work with various JavaScript problems and write scripts online to test their JavaScript skills.

4 lines
80.

Write a JavaScript program to display a random image (clicking on a button) from the following list.

Sample Image information :

"http://farm4.staticflickr.com/3691/11268502654_f28f05966c_m.jpg", width: "240", height: "160"

"http://farm1.staticflickr.com/33/45336904_1aef569b30_n.jpg", width: "320", height: "195"

"http://farm6.staticflickr.com/5211/5384592886_80a512e2c9.jpg", width: "500", height: "343"

4 lines
81.

_________________ allows a string of text to be written to the document

a)

write()

b)

string()

82.

The title of the document, as displayed at the top of the browser window

a)

title

b)

head

83.

For this HTML, how do I select the heading element?

a)

A

b)

B

c)

C

84.

What do you type to create a variable?

(a)  

85.

Is document.getElementById() a DOM property or method?

a)

DOM property

b)

DOM method

86.

Is document.className a DOM property or method?

a)

DOM property

b)

DOM method

87.

How do you change the text to "Alma Thomas"?

a)

A

b)

B

c)

C

88.

document.getElementById(id) has one argument: the ID.

How many arguments does this function have:

updateLocation(painting, museum)



(a)  

89.

Which argument should we use to get the right DOM element?

(a)  

90.

What method can select both artists?

(a)  

91.

const body = document.body;

In JavaScript, what does it do?

a)

Creates a constant which reference to the body element

b)

Creates a duplication of the body element, and every change does not affect the body element

92.

const body = document.body;

What is the type of body?

(a)  

93.

How to get all elements by their tag name in JavaScript?

a)

document.getElementsByTagName();

b)

document.getElementsByTag();

c)

document.getElementsByTabName();

d)

document.getElementByTagName();

94.

How to get all elements by their class name in JavaScript?

a)

document.getElementsByClassName();

b)

document.getElementsByClass();

c)

document.getElementsByClassNames();

d)

document.getElementByClassName();

95.

document.querySelector('#bats');

What does it do in JavaScript?

a)

It uses CSS notation to find the first element with id 'bats'

b)

It uses CSS notation to find the element with class 'bats'

c)

It returns a node list of all the elements with id 'bats'

d)

It find the elements that matches a CSS selector '#bats'

96.

Are document.querySelectorAll('.bats') as same as document.getElementsByClassName('bats')?

a)

Yes

b)

No

97.

In Document Object Model (DOM), all the properties, methods and events that are available to a web developer for manipulating and creating web pages are organised into:

a)

Classes

b)

Objects

c)

Modules

d)

Variables

98.

DOM represents a webpage in what way?

a)

Dynamic structure

b)

Recursive structure

c)

Tree-like structure

d)

Hash table structure

99.

Which of the following is an appropriate event handler for input text?

a)

onclick

b)

onchange

c)

onkeyup

d)

onblur

100.

Which of the following is an appropriate event handler when the user clicks on an element?

a)

onclick

b)

onchange

c)

onkeyup

d)

onblur

101.

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

b)

document.getElementById ("name").value

c)

document.getElementByName ("name").value

d)

None of the these

102.

How to add event handler that would be invoked when the document's body is clicked?

a)

document.onclick = function (){

// do something

};

b)

document.body.addEventListener('click', doSomethingFunction);

c)

document.click = function (){

// do something

};

d)

document.body.addEventListener('onclick', doSomethingFunction);

e)

document.body.onclick = function (){

// do something

};

103.

document.body.addEventListener('click', () => alert('You clicked!'));

Which type of the handler function is in above JavaScript code?

a)

Arrow function

b)

Lambda function

c)

Parentheses function

d)

Short function

104.

What is the difference between keydown and keypress event in JavaScript?

a)

keydown event occurs when a key is pressed

b)

keypress event occurs after keydown event and only occurs for keys that produce character input

c)

keydown event occurs when a key released

d)

keypress event occurs when a key was pushed down

e)

keydown and keyup events occur when a any key is pressed

105.

Can you remove an event in JavaScript?

a)

Yes

b)

No

106.

Which of the method following are used to navigate around the DOM tree?

a)

parentNode()

b)

nextSibling()

c)

nextDaughter()

d)

childrenNodes()

e)

previousChild()

107.

Which of the following is the container for input elements?

a)

Form

b)

Page

c)

Canvas

d)

Input

108.

How many primitive data types in JavaScript?

a)

6

b)

7

c)

5

d)

4

109.

What is callback function?

A callback is a function that is provided as an (a)   to another function.

110.

What does JSON stand for?

a)

JavaScript Object Notation

b)

Java Object Notation

c)

JavaScript Object Normalization

d)

JavaScript Object-Oriented Notation

111.

The output of the below code is:


<p id="demo"></p>


<script>

var text = "";

var i;

for (i = 0; i < 5; i++) {

text += "The number is " + i + "<br>";

}

document.getElementById("demo").innerHTML = text;

</script>

a)

The number is 0

The number is 1

The number is 2

The number is 3

The number is 4

The number is 5

b)

The number is 0

The number is 1

The number is 2

The number is 3

The number is 4

c)

The number is 1

The number is 2

The number is 3

The number is 4

The number is 5

d)

Why is that person using "var"???

112.

The output of the below code is:


<p id="demo"></p>


<script>

var text = "";

var i;

for (i = 0; i < 5; i++) {

text += "The number is " + i + "<br>";

}

document.getElementById("demo").innerHTML = text;

</script>

a)

The number is 0

The number is 1

The number is 2

The number is 3

The number is 4

The number is 5

b)

The number is 0

The number is 1

The number is 2

The number is 3

The number is 4

c)

The number is 1

The number is 2

The number is 3

The number is 4

The number is 5

d)

Why is that person using "var"???

113.

What is the difference between == and ===?

a)

The === operator compares two values, without taking into account their types. == compares the values, but also makes their types into account.

b)

Do I really need to reply this?

c)

The == operator compares two values, without taking into account their types. === compares the values, but also makes their types into account.

d)

The == operator is used to assign a value to a variable. === is used to compare the values of two variables.

114.

What is the DOM?

a)

Is an open standard file format, and data interchange format, that uses human-readable text to store and transmit data objects consisting of attribute–value pairs and array data types

b)

Is the standard markup language for documents designed to be displayed in a web browser. It can be assisted by technologies such as Cascading Style Sheets (CSS) and scripting languages such as JavaScript

c)

Is a markup language that defines a set of rules for encoding documents in a format that is both human-readable and machine-readable

d)

The Document Object Model is a cross-platform and language-independent interface that treats an XML or HTML document as a tree structure wherein each node is an object representing a part of the document

115.

What are the Javascript data types?

a)

There are seven data types: Boolean, Null, Undefined, Number, String, Symbol, Object.

b)

There are eighth data types: Boolean, Null, Undefined, Number, String, Symbol, Object, Date.

c)

There are nine data types: Boolean, Null, Undefined, Number, String, Symbol, Object, Date, JSON.

d)

Sorry, what do you mean by data type?

116.

What are the pop-up boxes types available in JavaScript?

a)

Alert, Redirect and Prompt

b)

Alert, Confirm and Prompt

c)

Nice try, a pop-up can be done only using jquery or a similar library

d)

Alert, Confirm, Redirect and Prompt

117.

Which image best describes the meaning of null and undefined?

a)
b)
c)
d)
118.

What are HTML Tags?

a)

HTML tags are composed of three things: an opening tag, content and ending tag. Some tags are unclosed tags.

b)

HTML tags are composed of three things: an opening tag, content and ending tag. All tags need to be closed.

c)

HTML tags define metadata about an HTML document. Metadata is data (information) about data.

d)

I didn't know that I was supposed to be studying

119.

What is the use of the required attribute in HTML5?

Name: <input type="text" name="name" required>

a)

This adds a red border over the input box for the user to visually recognize that it is required.

b)

It forces a user to fill text on the text field or text area before submitting the form. It is used for form validation. But, the "required" attribute is not properly written in this example.

c)

It would be nice to have that functionality, but due to browser compatibility it does not work and manual validation is required.

d)

It forces a user to fill text on the text field or text area before submitting the form. It is used for form validation.

120.

What are the new <input> types for form validation in HTML5?

a)

The new input types for form validation are text, textarea, radio, email, URL, number, tel, and date.

b)

The new input types for form validation are text, area, radio, email, URL, number, tel, and date.

c)

The new input types for form validation are email, URL, number, tel, and date.

d)

All these options are available since previous versions of HTML.

121.

How to write HTML code dynamically using JavaScript?

a)

document.getElementById('some-div-id').innerHTML="<h2>This is heading using JavaScript</h2>";

b)

document.getElementById('some-div-id').innerHTML.val("<h2>This is heading using JavaScript</h2>";)

c)

document.getElementById('some-div-id').innerHTML.html("<h2>This is heading using JavaScript</h2>";)

d)

document.getElementByTagName('some-div-id').innerHTML="<h2>This is heading using JavaScript</h2>";

122.

What is the output of 10+20+"30" in JavaScript?

a)

102030 because since there is a string, all the + will be treated as string concatenation operator (not binary +).

b)

102030 because before you perform arithmetic operations you would have to explicitly convert those values to an actual number.

c)

That will throw an unhandled exception, a try catch block is required to prevent it.

d)

3030 because 10+20 will be 30. If there is numeric value before and after +, it treats as binary + (arithmetic operator).

123.

How to submit a form using JavaScript by clicking a link?

a)

<form name="myform">

<a href="javascript: document.myform.submit();">Submit</a>

</form>

b)

<form name="myform">

<button type="button" onclick="javascript: document.myform.submit();">Click Me!</button>

</form>

c)

<form name="myform">

<input type="submit" value="Submit">

</form>

d)

<form name="myform">

<span id="link" onclick="javascript: document.myform.submit();"></span>

</form>

124.

Select the correct option:

a)

The getElementsByName() method returns a live HTMLCollection of elements with the given tag name.

The getElementsByTagName() method returns a collection of all elements in the document with the specified name (the value of the name attribute), as an HTMLCollection object.

b)

The innerHTML property sets or returns the text content of the specified node, and all its descendants.

The innerText property sets or returns the HTML content of an element.

c)

let allows you to declare variables that are limited to the scope of a block statement, or expression on which it is used, unlike the var keyword, which declares a variable globally, or locally to an entire function regardless of block scope

d)

The difference between POST and PUT is that POST requests are idempotent. That is, calling the same POST request multiple times will always produce the same result. In contrast, calling a PUT request repeatedly have side effects of creating the same resource multiple times.

125.

•The __________ property can be used to write the dynamic text on the html document. Here, text will not be interpreted as html text but a normal text.

a)

innerHTML

b)

innerDocument

c)

innerText

d)

innerTag

126.

It is used mostly in the web pages to generate the dynamic content such as writing the validation message, password strength etc

a)

innerHTML

b)

innerDocument

c)

innerText

d)

innerTag

127.

•The __________________property can be used to write the dynamic html on the html document.

a)

innerHTML

b)

innerDocument

c)

innerText

d)

innerTag

128.

•It is used mostly in the web pages to generate the dynamic html such as registration form, comment form, links etc.

a)

innerHTML

b)

innerDocument

c)

innerText

d)

innerTag

129.

writes the given string on the doucment.

a)

write("puihaha")

b)

document.innerHTML

c)

document.innerText

d)

document.innerTag

130.

•The document object represents the whole html document.

a)

True

b)

False

131.

•The W3C Document Object Model (DOM) is a platform and language-neutral interface that allows programs and scripts to dynamically access and update the content, structure, and style of a document."

a)

True

b)

False

132.

JavaScript DOM , could be manipulated using these except for:

a)

Finding HTML elements by tag name

b)

Finding HTML elements by value

c)

Finding HTML elements by class name

d)

Finding HTML elements by id

133.

JavaScript can't change all the HTML elements in the page

a)

True

b)

False

134.

JavaScript can change all the HTML attributes in the page

a)

Fact

b)

Baseless