I Will Pass Quiz

Beschreibung

Good luck everyone!
Tommy Phan
Quiz von Tommy Phan, aktualisiert more than 1 year ago
Tommy Phan
Erstellt von Tommy Phan vor etwa 5 Jahre
16
0

Zusammenfassung der Ressource

Frage 1

Frage
Which of the following will return a live HTML collection?
Antworten
  • document.querySelector()
  • document.getElementByClassName()
  • document.getElementById()
  • document.querySelectorAll()

Frage 2

Frage
Which method would you use to stop a default action?
Antworten
  • stopDefault()
  • preventDefault()
  • endDefault()
  • you can’t stop a default action

Frage 3

Frage
During a keydown event, altKey and ctrlKey will repeat if result of Boolean operator is true
Antworten
  • True
  • False

Frage 4

Frage
The Array.from() method will not work in which of the following browsers
Antworten
  • Internet Explorer
  • Google Chrome
  • Microsoft Edge
  • Mozilla Firefox

Frage 5

Frage
An HTML file can contain a reference for an external file. The…
Antworten
  • Javascript
  • CSS
  • An image
  • All of the above

Frage 6

Frage
To add a class to an element without overwriting the other class…
Antworten
  • element.classList.add()
  • element.className
  • element.classList.contains()
  • element.class

Frage 7

Frage
What is the property on the event object for a click event…
Antworten
  • clickedOn
  • event
  • click
  • rub

Frage 8

Frage
In order to reduce security problems, JavaScript runs in a restrictive environment called a:
Antworten
  • firewall
  • sandbox
  • sean's house
  • tunnel

Frage 9

Frage
When adding event handler
Antworten
  • add event listener
  • add event
  • event
  • event listener

Frage 10

Frage
Events are fired on the target element and then each of the target element’s parents.
Antworten
  • propagation
  • targeting
  • capturing
  • observing

Frage 11

Frage
Leaf nodes can contain...
Antworten
  • HTML nodes
  • HTML tags
  • text content
  • other elements

Frage 12

Frage
In order to use JavaScript on a web page, there must be a(n) _______ file.
Antworten
  • CSS
  • security
  • image
  • HTML

Frage 13

Frage
When linking to JavaScript in a web page, the defer attribute will:
Antworten
  • 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

Frage 14

Frage
How would you edit the background color of the element paragraph?
Antworten
  • paragraph.style.backgroundcolor
  • paragraph.style.background-color
  • paragraph.backgroundcolor
  • paragraph.style.backgroundColor

Frage 15

Frage
Which of these is an event?
Antworten
  • dblclick
  • click
  • keydown
  • All of the above

Frage 16

Frage
DOM stand for __________________
Antworten
  • Document Object Model
  • Document Overall Method
  • Document variable
  • Document Observer Method

Frage 17

Frage
In order to reduce security problems, JavaScript runs in a restricted environment…
Antworten
  • True
  • False

Frage 18

Frage
Skip for now
Antworten
  • skip
  • skip1

Frage 19

Frage
An event can be ________
Antworten
  • never initiated by the user
  • an interaction with our page
  • a list of node child
  • none of the above

Frage 20

Frage
Using querySelector(), the . symbol will select elements:
Antworten
  • By the class
  • By the tag
  • By the name
  • By the ID

Frage 21

Frage
Using querySelector(), the # symbol will select elements:
Antworten
  • By the class
  • By the tag
  • By the name
  • By the id

Frage 22

Frage
Which has the highest order of precedence?
Antworten
  • Internal Stylesheets
  • the style property
  • Embedded Stylesheets
  • Inherited styles

Frage 23

Frage
The first thing the browser does when loading a webpage is:
Antworten
  • 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

Frage 24

Frage
What are the steps of a webpage being displayed?
Antworten
  • a request is made when a link is clicked
  • the page and its resources are downloaded
  • javascript file downloaded and loaded by defer

Frage 25

Frage
event.repeat will return what type of value if a key is held?
Antworten
  • Boolean
  • null
  • number
  • Array

Frage 26

Frage
Which command allows you to add text directly without first creating a text node?
Antworten
  • el.textContent
  • el.appendChild()
  • el.CreateTextNode()
  • el.setAttribute()

Frage 27

Frage
In HTML, the type attribute is required in the <script> tag
Antworten
  • True
  • False

Frage 28

Frage
You have added an event listen to the following code. Which of these will remove… beta.addEventListener(‘click’, newgame);
Antworten
  • newgame.removeEventListener(‘click’, alpha);
  • beta.removeEventListener();
  • beta.removeEventListener(‘click’, newgame);
  • removeEventListener(‘click’, newgame);

Frage 29

Frage
When using document.querySelectorAll() it returns:
Antworten
  • A list
  • Individual objects for each element selected
  • An array like object
  • An array

Frage 30

Frage
A URL is used to:
Antworten
  • download the closest match
  • get email
  • determine what program should download the file
  • uniquely identifies files on the Web

Frage 31

Frage
The second parameter of an addEventListener() accepts a ______________ variable.
Antworten
  • event
  • array
  • list
  • function

Frage 32

Frage
The DOM is organized like a _____.
Antworten
  • Circle
  • Block
  • Tree
  • Square

Frage 33

Frage
Like HTML, the default character-set for JavaScript is:
Antworten
  • utf-8
  • emoji-23
  • defer
  • type

Frage 34

Frage
When a user releases a key, which event is sent?
Antworten
  • keyup
  • shiftKey
  • space
  • keydown

Frage 35

Frage
If you have a <p> element stored in the variable para and you want to add text, which command should you use?
Antworten
  • para.insert(txt)
  • para.addChild(txt)
  • paragraph.add(txt)
  • para.appendChild(txt)

Frage 36

Frage
To stop many events that may fire many times in a row, we can use stopPropagation()
Antworten
  • True
  • False

Frage 37

Frage
You can use the function setTimeout() to schedule a function.
Antworten
  • True
  • False

Frage 38

Frage
What is the global variable that contains the DOM?
Antworten
  • head
  • window
  • body
  • document

Frage 39

Frage
What is the advantage of HTTPS over HTTP?
Antworten
  • it is less expensive
  • it is encrypted
  • it is faster
  • all of the above

Frage 40

Frage
In order to use JavaScript on a webpage, you must include the _____.
Antworten
  • src
  • script
  • js
  • link

Frage 41

Frage
Which event relates to the action of a keyboard being pressed?
Antworten
  • keyclick
  • keypress
  • keyset
  • keybutton

Frage 42

Frage
The scroll event is fired every time the page is scrolled.
Antworten
  • True
  • False
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

Quiz Strategie und Entrepreneurship
benny.biering
Einstufungstest Italienisch Niveau A1.2
SprachschuleAktiv
Genetik
Laura Overhoff
Kapitel 1: Was macht Psychologie einzigartig?
bence-bartos
Mathe Themen Abitur 2016
henrythegeek
Analysis - Abiturvorbereitung Mathe
c.aciksoez
Vetie-Innere 2014
Ju Pi
Vetie Histopatho 2017
Anne Heyne
Repro 2014 Vetie
Anne Käfer
Basiswissen Management Sozialer Dienstleistungen - Dienstleistungscharakteristika
Bernd Leisen
Vetie - Lebensmittel 2016
Kim Langner