Font size
WorksheetsFundamentals II - Initial Evaluation
Total questions: 20
Worksheet time: 13mins
What can we store with LocalStorage?
a png file
plain text
a json file
a pdf file
Which of these are verbs we can use for communicating with an API?
POST
CREATE
DELETE
PUT
NEW
How do we add file.txt to the local staging area?
git push file.txt
git add file.txt
git file.txt
git commit file.txt
Fill the command we must use to switch to the "dev" branch in git:
git (a) dev
It cannot be updated or re-declared into the scope
function
var
let
const
one
two
three
error
4. How do you check the state of your local git repository since your last commit?
Git commit
Git status
Git check
Git diff
6. What's the git command that downloads your repository from GitHub to your computer?
Git fork
Git commit
Git clone
Git push
8. Which is the correct order to submit your changes from the working directory all the way to the remote repository?
Git add, git commit, git push
Git push, git add, git commit
Git add, git push, git commit
Git commit, git add, git push
In JavaScript, which method converts JSON data to a JavaScript object?
JSON.fromString()
JSON.parse()
JSON.toObject()
JSON.stringify()
What extension in used to save a JSON file?
.js
.xsl
.json
.xml
Which of those requests are idempotent? (Idempotency means that multiple identical requests will have the same result)
POST
PUT
PATCH
DELETE
Which of these options are correct for setting a value in localStorage?
localStorage.myCat = 'Garfield';
localStorage['myCat'] = 'Garfield';
localStorage.setItem('myCat', 'Garfield');
localStorage('myCat') = 'Garfield'
Which of this staments about localStorage are true?
data stored in localStorage is lost when the browser is closed or restarted
data stored in localStorage persists until explicitly deleted
we can store infinite data in localStorage
we can only store 5MB of data in localStorage
5. How do you supply a commit message to a commit?
Git message "I'm coding!"
Git commit "I'm coding!"
Git commit -m "I'm coding!"
Git add "I'm coding!"
Right command to stage ALL files
git add
git add .
git add <fileName>
We can't do that
Choose a correct endpoint
https://www.recipes.io/all
get recipes all
fetch all recipes
What's an endpoint?
Fill the gap in this fetch request:
fetch(url)
.then(response => response. (a) ())
.then(data=> alert(data[0].id));
How do we say to the fetch request if we want to make a POST to send data?
with the first fetch parameter as a string: fetch("POST",url)
with the second parameter as a string: fetch(url,"POST")
setting method inside an object as second param: fetch(url, { method: "POST",... })
setting method inside an object as first param: fetch({ method: "POST",... },url)
2. Which command should you use to initialize a new git repository?
Git install
Git bash
Git start
Git init
