Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
Submit quiz 10
Browse files Browse the repository at this point in the history
  • Loading branch information
hanggrian committed Nov 17, 2023
1 parent d3ca032 commit 4d5711c
Showing 1 changed file with 143 additions and 0 deletions.
143 changes: 143 additions & 0 deletions assignments/quiz10.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
<style type="text/css">ol { list-style-type: upper-alpha; }</style>

# 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
> <script type="import">
> import statements
> Embedded JS Code
> </script>
> ```
>
> 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

0 comments on commit 4d5711c

Please sign in to comment.