This quiz aims at testing your basic knowledge of Version Control System. Don’t forget to push your answers to your remote repository by the end of quiz time. Push all your answers to quiz/1/ folder in your Github project.




  1. Name the three generations of VCS. Briefly describe how each paradigm works and a problem that it resolves in the previous generation.

  2. Which VCS generation does git software belong to?

  3. Which of the following Git commands can add all the new and modified-existing files to the staging area? choose all that apply.

    (A) git add -A
    (B) git add --A
    (C) git add -all
    (D) git add --all
    (E) git add -u
    (F) git add .
    (G) git add .; git add -u
    (H) git add .; git add --u
    (I) git add -u; git add .
    (J) git add --u; git add .

  4. Which of the following Git commands both stages and commits only modified and deleted files but NOT the new files added to the repository since the last commit. Choose all that apply.

    (A) git commit
    (B) git commit -a
    (C) git commit -am

  5. Write down the Git command that lists all Git commands for you.

  6. Write down the Git command that lists all branches for you.

  7. Write down the Git command that creates and checks out a new branch named dev from the current branch.

  8. Perform the following tasks on a Git command-line on your computer and copy and paste the output to your quiz response file.
    1. Initialize an empty project locally on your system in a temporary folder. Copy the command and the Git output here.

    2. Add a README.md file to this project and add your name to it, save it and close it, then stage and commit it.

    3. Now create a new branch dev from the current branch and switch to it.

    4. Modify the README.md file by removing your name. Then, stage and commit the changes to the new branch.

    5. Now merge this dev branch with your main branch and delete the new branch that you just created.

    6. List all existing branches in your project.

  9. (Extra Credit) Write down the Git command that lists all commits made to the project.

Comments