diff --git a/assignments/quiz10.md b/assignments/quiz10.md new file mode 100644 index 0000000..bb6cf45 --- /dev/null +++ b/assignments/quiz10.md @@ -0,0 +1,143 @@ + + +# Quiz 10 + +## Problem 1 + +> The browser's location object is used to move through the user's browsing + history. +> +> 1. True +> 2. False + +**B**. False + +## Problem 2 + +> The History AP's go() method can be passed a string value of a url to have the + user's browser go to that new resource. +> +> 1. True +> 2. False + +**B**. False + +## Problem 3 + +> The History AP's pushState() method is used to add a new history entry to the + user's browser history. +> +> 1. True +> 2. False + +**A**. True + +## Problem 4 + +> Internally the JavaScript Date object stores the date as a Number which is the + number of seconds since January 1, 1970 UTC. +> +> 1. True +> 2. False + +**B**. False + +## Problem 5 + +> You can not instantiate an instance of the Math object with the new keyword. +> +> 1. True +> 2. False + +**A**. True + +## Problem 6 + +> The two lines of code below are functionality exactly the same. +> +> ```js +> let x = new Image(); +> let x = document.createElement('img'); +> ``` +> +> 1. True +> 2. False + +**A**. True + +## Problem 7 + +> You can use the following to get the last value in an array named people. +> +> ```js +> people.at(-1); +> ``` +> +> 1. True +> 2. False + +**A**. True + +## Problem 8 + +> The map() array method wil terate over an aray and run the function passed as + the argument in order to modity each elementin the array it was caled on. +> +> 1. True +> 2. False + +**B**. False + +## Problem 9 + +> Which object function we discussed below will execute a function and pass as + its arguments a new value of this and an array of additional arguments? +> +> 1. bind +> 2. import +> 3. call +> 4. apply + +**D**. apply + +## Problem 10 + +> When using ES6 modules any import statements must be the first lines in the + module before any other code. +> +> 1. True +> 2. False + +**A**. True + +## Problem 11 + +> These are the correct basic steps and syntax to include a module into your + javascript logic. +> +> ```js +> +> ``` +> +> 1. True +> 2. False + +**B**. False + +## Problem 12 + +> What is the result for: +> +> ``` +> Math.sqrt(Math.floor(9.5)); +> ``` +> +> 1. 3.08 +> 2. NaN +> 3. 3 +> 4. Syntax error + +**C**. 3