Quiz
Week 1 Quiz
This quiz has question types that open in the usual player.
Questions in this quiz (22)
1The 6 primitive data types of javascript are
- Aboolean, number, string, null, undefined, object/symbol
- Bboolean, integer, float, string, null, undefined, object
- Cboolean, integer, number, string, object, undefined
2<details> was added in html 5
- ATrue
- BFalse
3When an event happens on an element, it first runs the handlers on it, then on its parent, then all the way up on other ancestors.
This is called [blank_start]bubbling[blank_end].- Abubbling
4[blank_start]Trickling[blank_end] is event propagation from a parent element down through its children.
- ATrickling
5A [blank_start]callback[blank_end] function is a function a passed to another function.
- Acallback
6Functions can be stored in a variable and then called using the variable.
- ATrue
- BFalse
7Javascript functions can be hoisted.
- ATrue
- BFalse
8Arrow functions have a 'this' keyword
- ATrue
- BFalse
9Arrow functions are not hoisted.
- ATrue
- BFalse
10Use the [blank_start]innerHTML[blank_end] method to get the content of an element.
- AinnerHTML
11Use document.[blank_start]getElementByTagName[blank_end] to find an element by tag name.
- AgetElementByTagName
12Use document.[blank_start]getElementByClassname[blank_end] to get an element by class.
- AgetElementByClassname
13Use element.[blank_start]attribute[blank_end] to add a new attribute to an element.
- Aattribute
14Use element.[blank_start]style[blank_end].property to change the style of an element.
- Astyle
15Use document.[blank_start]createElement[blank_end] to create an HTML element.
- AcreateElement
16Use document.getElementById(id).event to add an event handle to an element.
- ATrue
- BFalse
17After assigning a function to a variable, the function can be using the following syntax:
variableName(args)- ATrue
- BFalse
18Template literals:
Offer a way to define [blank_start]multi-line[blank_end] strings.
All you to [blank_start]interpolate[blank_end] variables.- Amulti-line
- Binterpolated
- Cquery
- Dconnector strings
- Einterpolate
- Fassign
- Gcompare
- Hname
19IIFE stands for [blank_start]immediately invoked function expression[blank_end].
- Aimmediately invoked function expression
- Bimmediately invoked function exception
- Cimminently iterable function expression
- Dimmediately invoked fractional expressio
- Einvestors iraq forum express
20Use [blank_start]document.appendChild[blank_end] to add an HTML element.
- Adocument.appendChild
- Bdocument.append
- Cdocument.access
- Ddocument.alert
21Use [blank_start]document.removeChild[blank_end] to remove an HTML element.
- Adocument.removeChild
- Bdocument.remove
- Cdocument.reverse
- Ddocument.relocate
- Edocument.abandonChild
22document.getElementById('button').addEventListener('click', () => {
// do something
})
This is an example of a(n) [blank_start]event listener[blank_end].- Aevent listener
- Bevent handler
- Cevent
- Dexception handler
Information
- Description
- Programming Quiz on Week 1 Quiz, created by Wesley Letcher on 11/06/2019.
- Author
- Wesley Letcher
- Language
- English
- Views
- 0
- Tags
- Rating
- No ratings yet Rate this quiz