Glitch DevsJobs

Fundamentals

Git and Web Basics Test

20 multiple choice questions on Git workflows, HTTP, status codes, cookies, CORS and basic web security.

Questions
20
Time
20 min
Pass mark
60%

No account or email needed.

About this test

Whatever language you write, you work with Git and the web. This test covers the Git commands used in a normal team workflow, how HTTP requests and status codes work, and the basics of cookies, CORS and common web security problems.

What it covers

The question set has 24 questions: 14 easy, 10 medium and 0 hard. Each attempt draws 20 of them at random, so a second try is not the same test.

  • Git and the web (24)

Try a few sample questions

These are real questions from the set, with the answers and a short explanation. Read the question, decide, then open it to check.

Sample 1 · Git and the web · easyWhat does git init do?Show the answer
  • Downloads a repository
  • Creates a new Git repository in the current folderCorrect
  • Sends changes to a server
  • Deletes history

git init starts tracking a folder with Git by creating a hidden .git directory.

Sample 2 · Git and the web · easyWhat does git clone do?Show the answer
  • Creates a new branch
  • Copies a remote repository, with its full history, to your machineCorrect
  • Deletes a repository
  • Merges two branches

git clone downloads a repository and sets it up so you can work on it and keep it in sync with the remote.

Sample 3 · Git and the web · easyWhat does git add do?Show the answer
  • Saves a commit
  • Puts changes in the staging area for the next commitCorrect
  • Uploads to a remote
  • Creates a branch

git add chooses which changes will go into the next commit.

How it works

  • 20 multiple choice questions, drawn at random from a larger set.
  • 20 minutes on the clock. The test submits itself when time runs out.
  • Pass mark: 60%.
  • No marks are taken off for wrong answers, so answer every question.
  • Some questions have more than one correct answer. You must pick all of them to score.
  • When you finish you see your score, the correct answers and a short explanation for each.
  • Your answers save as you go, so a dropped connection will not lose your work.
  • Please stay on the test page. Switching to another tab or window is recorded and you will see a warning.
  • Copying text, printing and screenshots are not allowed during the test.

More practice tests

See all practice tests.

Share this test