Tommy Phan
Quiz por , criado more than 1 year ago

Good luck everyone!

16
0
0
Sem etiquetas
Tommy Phan
Criado por Tommy Phan aproximadamente 5 anos atrás
Fechar

I Will Pass Quiz

Questão 1 de 42

1

Which of the following will return a live HTML collection?

Selecione uma das seguintes:

  • document.querySelector()

  • document.getElementByClassName()

  • document.getElementById()

  • document.querySelectorAll()

Explicação

Questão 2 de 42

1

Which method would you use to stop a default action?

Selecione uma das seguintes:

  • stopDefault()

  • preventDefault()

  • endDefault()

  • you can’t stop a default action

Explicação

Questão 3 de 42

1

During a keydown event, altKey and ctrlKey will repeat if result of Boolean operator is true

Selecione uma das seguintes:

  • True

  • False

Explicação

Questão 4 de 42

1

The Array.from() method will not work in which of the following browsers

Selecione uma das seguintes:

  • Internet Explorer

  • Google Chrome

  • Microsoft Edge

  • Mozilla Firefox

Explicação

Questão 5 de 42

1

An HTML file can contain a reference for an external file. The…

Selecione uma das seguintes:

  • Javascript

  • CSS

  • An image

  • All of the above

Explicação

Questão 6 de 42

1

To add a class to an element without overwriting the other class…

Selecione uma das seguintes:

  • element.classList.add()

  • element.className

  • element.classList.contains()

  • element.class

Explicação

Questão 7 de 42

1

What is the property on the event object for a click event…

Selecione uma das seguintes:

  • clickedOn

  • event

  • click

  • rub

Explicação

Questão 8 de 42

1

In order to reduce security problems, JavaScript runs in a restrictive environment called a:

Selecione uma das seguintes:

  • firewall

  • sandbox

  • sean's house

  • tunnel

Explicação

Questão 9 de 42

1

When adding event handler

Selecione uma das seguintes:

  • add event listener

  • add event

  • event

  • event listener

Explicação

Questão 10 de 42

1

Events are fired on the target element and then each of the target element’s parents.

Selecione uma das seguintes:

  • propagation

  • targeting

  • capturing

  • observing

Explicação

Questão 11 de 42

1

Leaf nodes can contain...

Selecione uma das seguintes:

  • HTML nodes

  • HTML tags

  • text content

  • other elements

Explicação

Questão 12 de 42

1

In order to use JavaScript on a web page, there must be a(n) _______ file.

Selecione uma das seguintes:

  • CSS

  • security

  • image

  • HTML

Explicação

Questão 13 de 42

1

When linking to JavaScript in a web page, the defer attribute will:

Selecione uma das seguintes:

  • download the JavaScript file and run it right away

  • defer is not used with JavaScript

  • wait until the page is loaded and then download and run the JavaScript file

  • download the JavaScript file but run it after the page is loaded

Explicação

Questão 14 de 42

1

How would you edit the background color of the element paragraph?

Selecione uma das seguintes:

  • paragraph.style.backgroundcolor

  • paragraph.style.background-color

  • paragraph.backgroundcolor

  • paragraph.style.backgroundColor

Explicação

Questão 15 de 42

1

Which of these is an event?

Selecione uma das seguintes:

  • dblclick

  • click

  • keydown

  • All of the above

Explicação

Questão 16 de 42

1

DOM stand for __________________

Selecione uma das seguintes:

  • Document Object Model

  • Document Overall Method

  • Document variable

  • Document Observer Method

Explicação

Questão 17 de 42

1

In order to reduce security problems, JavaScript runs in a restricted environment…

Selecione uma das seguintes:

  • True

  • False

Explicação

Questão 18 de 42

1

Skip for now

Selecione uma das seguintes:

  • skip

  • skip1

Explicação

Questão 19 de 42

1

An event can be ________

Selecione uma das seguintes:

  • never initiated by the user

  • an interaction with our page

  • a list of node child

  • none of the above

Explicação

Questão 20 de 42

1

Using querySelector(), the . symbol will select elements:

Selecione uma das seguintes:

  • By the class

  • By the tag

  • By the name

  • By the ID

Explicação

Questão 21 de 42

1

Using querySelector(), the # symbol will select elements:

Selecione uma das seguintes:

  • By the class

  • By the tag

  • By the name

  • By the id

Explicação

Questão 22 de 42

1

Which has the highest order of precedence?

Selecione uma das seguintes:

  • Internal Stylesheets

  • the style property

  • Embedded Stylesheets

  • Inherited styles

Explicação

Questão 23 de 42

1

The first thing the browser does when loading a webpage is:

Selecione uma das seguintes:

  • size the HTML file to the screen

  • download the HTML file

  • load the JavaScript DOM functions to the page

  • open a model of the HTML file

Explicação

Questão 24 de 42

1

What are the steps of a webpage being displayed?

Selecione uma das seguintes:

  • a request is made when a link is clicked

  • the page and its resources are downloaded

  • javascript file downloaded and loaded by defer

Explicação

Questão 25 de 42

1

event.repeat will return what type of value if a key is held?

Selecione uma das seguintes:

  • Boolean

  • null

  • number

  • Array

Explicação

Questão 26 de 42

1

Which command allows you to add text directly without first creating a text node?

Selecione uma das seguintes:

  • el.textContent

  • el.appendChild()

  • el.CreateTextNode()

  • el.setAttribute()

Explicação

Questão 27 de 42

1

In HTML, the type attribute is required in the <script> tag

Selecione uma das seguintes:

  • True

  • False

Explicação

Questão 28 de 42

1

You have added an event listen to the following code. Which of these will remove…

beta.addEventListener(‘click’, newgame);

Selecione uma das seguintes:

  • newgame.removeEventListener(‘click’, alpha);

  • beta.removeEventListener();

  • beta.removeEventListener(‘click’, newgame);

  • removeEventListener(‘click’, newgame);

Explicação

Questão 29 de 42

1

When using document.querySelectorAll() it returns:

Selecione uma das seguintes:

  • A list

  • Individual objects for each element selected

  • An array like object

  • An array

Explicação

Questão 30 de 42

1

A URL is used to:

Selecione uma das seguintes:

  • download the closest match

  • get email

  • determine what program should download the file

  • uniquely identifies files on the Web

Explicação

Questão 31 de 42

1

The second parameter of an addEventListener() accepts a ______________ variable.

Selecione uma das seguintes:

  • event

  • array

  • list

  • function

Explicação

Questão 32 de 42

1

The DOM is organized like a _____.

Selecione uma das seguintes:

  • Circle

  • Block

  • Tree

  • Square

Explicação

Questão 33 de 42

1

Like HTML, the default character-set for JavaScript is:

Selecione uma das seguintes:

  • utf-8

  • emoji-23

  • defer

  • type

Explicação

Questão 34 de 42

1

When a user releases a key, which event is sent?

Selecione uma das seguintes:

  • keyup

  • shiftKey

  • space

  • keydown

Explicação

Questão 35 de 42

1

If you have a <p> element stored in the variable para and you want to add text, which command should you use?

Selecione uma das seguintes:

  • para.insert(txt)

  • para.addChild(txt)

  • paragraph.add(txt)

  • para.appendChild(txt)

Explicação

Questão 36 de 42

1

To stop many events that may fire many times in a row, we can use stopPropagation()

Selecione uma das seguintes:

  • True

  • False

Explicação

Questão 37 de 42

1

You can use the function setTimeout() to schedule a function.

Selecione uma das seguintes:

  • True

  • False

Explicação

Questão 38 de 42

1

What is the global variable that contains the DOM?

Selecione uma das seguintes:

  • head

  • window

  • body

  • document

Explicação

Questão 39 de 42

1

What is the advantage of HTTPS over HTTP?

Selecione uma das seguintes:

  • it is less expensive

  • it is encrypted

  • it is faster

  • all of the above

Explicação

Questão 40 de 42

1

In order to use JavaScript on a webpage, you must include the _____.

Selecione uma das seguintes:

  • src

  • script

  • js

  • link

Explicação

Questão 41 de 42

1

Which event relates to the action of a keyboard being pressed?

Selecione uma das seguintes:

  • keyclick

  • keypress

  • keyset

  • keybutton

Explicação

Questão 42 de 42

1

The scroll event is fired every time the page is scrolled.

Selecione uma das seguintes:

  • True

  • False

Explicação