wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Fundamentals II - Initial Evaluation

Total questions: 20

Worksheet time: 13mins

Name
Class
Date
1.

What can we store with LocalStorage?

a)

a png file

b)

plain text

c)

a json file

d)

a pdf file

2.

Which of these are verbs we can use for communicating with an API?

a)

POST

b)

CREATE

c)

DELETE

d)

PUT

e)

NEW

3.

How do we add file.txt to the local staging area?

a)

git push file.txt

b)

git add file.txt

c)

git file.txt

d)

git commit file.txt

4.

Fill the command we must use to switch to the "dev" branch in git:

git (a)   dev

5.

It cannot be updated or re-declared into the scope

a)

function

b)

var

c)

let

d)

const

6.
a)

one

b)

two

c)

three

d)

error

7.

4. How do you check the state of your local git repository since your last commit?

a)

Git commit

b)

Git status

c)

Git check

d)

Git diff

8.

6. What's the git command that downloads your repository from GitHub to your computer?

a)

Git fork

b)

Git commit

c)

Git clone

d)

Git push

9.

8. Which is the correct order to submit your changes from the working directory all the way to the remote repository?

a)

Git add, git commit, git push

b)

Git push, git add, git commit

c)

Git add, git push, git commit

d)

Git commit, git add, git push

10.

In JavaScript, which method converts JSON data to a JavaScript object?

a)

JSON.fromString()

b)

JSON.parse()

c)

JSON.toObject()

d)

JSON.stringify()

11.

What extension in used to save a JSON file?

a)

.js

b)

.xsl

c)

.json

d)

.xml

12.

Which of those requests are idempotent? (Idempotency means that multiple identical requests will have the same result)

a)

POST

b)

PUT

c)

PATCH

d)

DELETE

13.

Which of these options are correct for setting a value in localStorage?

a)

localStorage.myCat = 'Garfield';

b)

localStorage['myCat'] = 'Garfield';

c)

localStorage.setItem('myCat', 'Garfield');

d)

localStorage('myCat') = 'Garfield'

14.

Which of this staments about localStorage are true?

a)

data stored in localStorage is lost when the browser is closed or restarted

b)

data stored in localStorage persists until explicitly deleted

c)

we can store infinite data in localStorage

d)

we can only store 5MB of data in localStorage

15.

5. How do you supply a commit message to a commit?

a)

Git message "I'm coding!"

b)

Git commit "I'm coding!"

c)

Git commit -m "I'm coding!"

d)

Git add "I'm coding!"

16.

Right command to stage ALL files

a)

git add

b)

git add .

c)

git add <fileName>

d)

We can't do that

17.

Choose a correct endpoint

a)

https://www.recipes.io/all

b)

get recipes all

c)

fetch all recipes

d)

What's an endpoint?

18.

Fill the gap in this fetch request:

fetch(url)

.then(response => response. (a)   ())

.then(data=> alert(data[0].id));

19.

How do we say to the fetch request if we want to make a POST to send data?

a)

with the first fetch parameter as a string: fetch("POST",url)

b)

with the second parameter as a string: fetch(url,"POST")

c)

setting method inside an object as second param: fetch(url, { method: "POST",... })

d)

setting method inside an object as first param: fetch({ method: "POST",... },url)

20.

2. Which command should you use to initialize a new git repository?

a)

Git install

b)

Git bash

c)

Git start

d)

Git init