End-of-course graded assessment Git

End-of-course graded assessment Git

  1. Which of the following is a Centralised Version Control System?

    • Subversion

    • Git

    • Mercurial

  2. In Bash, which of the following commands will change the working directory?

    • rm

    • mkdir

    • cd

  3. In Bash, which of the following commands will move a file?

    • pwd

    • mv

    • touch

  4. Which of the following can be used to find all unique text lines in a file?

    • Uniq

    • Grep

    • Pipe

  5. Which Git command is used to upload the latest changes to a remote repository?

    • git push

    • git pull

    • git clone

  6. True or false. Changes must be added to the Git staging area before they are committed.

    • true

    • false

  7. Which of the following Git commands can be used to create a local branch named test? Select all that apply.

    • git branch test

    • git checkout -b test

    • git push origin test

  8. Which of the following Git commands can be used to check local changes? Select all that apply.

    • git diff

    • git status

    • git remote -v

  9. In the following differential output, which is the first deleted line?

     @@ @@
     Red
     +Blue
     -Green
     -Yellow
    
    • Red

    • Blue

    • Green

    • Yellow

  10. When copying a repository on Github to your own repository on Github, what is this action commonly known as?

    • Merging

    • Forking

    • Cloning