Quiz
Week 1 Quiz
This quiz has question types that open in the usual player.
Questions in this quiz (29)
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
3A [blank_start]callback[blank_end] function is a function a passed to another function.
- Acallback
4functions can be stored in a variable and then called using the variable.
- ATrue
- BFalse
5javascript functions can be hoisted.
- ATrue
- BFalse
6arrow functions have a this keyword
- ATrue
- BFalse
7Arrow functions are not hoisted.
- ATrue
- BFalse
8Use element.[blank_start]style[blank_end].property to change the style of an element.
- Astyle
9Use document.getElementById(id).event to add an event handle to an element.
- ATrue
- BFalse
10After assigning a function to a variable, the function can be using the following syntax:
variableName(args)- ATrue
- BFalse
11Template 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
12IIFE 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
13Use [blank_start]document.appendChild[blank_end] to add an HTML element.
- Adocument.appendChild
- Bdocument.append
- Cdocument.access
- Ddocument.alert
14Use [blank_start]document.removeChild[blank_end] to remove an HTML element.
- Adocument.removeChild
- Bdocument.rempove
- Cdocument.reverse
- Ddocument.relocate
15document.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
16Use [blank_start]document.getElementById[blank_end] method to access a method by ID.
- Adocument.getElementById
- Bdocument.getElementByTag
- Cdocument.getId
- Did.selectElement
17[blank_start]<!DOCTYPE!>[blank_end] defines the document type.
- A<!DOCTYPE!>
- B<html>
- C<DOCTYPE>
- D<DOC TYPE>
18<article> was added in HTML 4
- ATrue
- BFalse
19[blank_start]window.alert()[blank_end] writes to an alert box
- Awindow.alert()
- Bconsole.log
- Cwindow.log
- Dconsole.alert
20Use the [blank_start]innerHTML[blank_end] property to get the content of an element.
- AinnerHTML
- Bcontent
- Cval
- Dvalue
21Use [blank_start]document.getElementByX.value[blank_end] to return the value of the value attribute of a text field.
- Adocument.getElementByX.value
- Bdocument.getElementByx.innerHTML
- Cdocument.getElementByX.text
- Ddocument.getElementByX.textvalue
22JSON stands for [blank_start]Javascript Object Notation[blank_end]
- AJavascript Object Notation
- BJavascript Orientation Notation
- CJava Object Notation
- DJavascript Object Nomenclature
23Use [blank_start]document.getElementByTagName[blank_end] to find an element by tag name.
- Adocument.getElementByTagName
- Bdocument.getElement
- Cdocument.getElementByTag
- Ddocument.getTag
24Use [blank_start]document.getElementByClassname[blank_end] to get an element by class.
- Adocument.getElementByClassname
- Bdocument.getClassName
- Cdocument.Class
- Ddocument.getElemementByName
- Edocument.getElementByClass
25When 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
- Bcapturing
- Cpropagating
26[blank_start]Trickling/Capturing[blank_end] is event propagation from a parent element down through its children.
- ATrickling/Capturing
- BInheriting
- CFalling
- DBad Parenting
27Use [blank_start]element.setAttribute[blank_end] to add a new attribute to an element.
- Aelement.setAttribute
- Belement.Attribute
- Celement.Set
- Delement.addAttribute
28Use [blank_start]document.createElement[blank_end] to create an HTML element.
- Adocument.createElement
- Bdocument.Element
- Cdocument.addElement
29[blank_start]<!-- ... -->[blank_end] defines a comment in HTML
- A<!-- ... -->
- B//
- C#
Information
- Description
- Javascript Quiz on Week 1 Quiz, created by Eric Booker on 10/06/2019.
- Author
- Eric Booker
- Language
- English
- Views
- 37
- Tags
- Rating
- 1.0 out of 5 · 2 ratings Rate this quiz