# End-of-course graded assessment Git

1. **Which of the following is a Centralised Version Control System?**
    
    * <mark>Subversion</mark>
        
    * Git
        
    * Mercurial
        
2. **In Bash, which of the following commands will change the working directory?**
    
    * rm
        
    * mkdir
        
    * <mark>cd</mark>
        
3. **In Bash, which of the following commands will move a file?**
    
    * pwd
        
    * <mark>mv</mark>
        
    * touch
        
4. **Which of the following can be used to find all unique text lines in a file?**
    
    * <mark>Uniq</mark>
        
    * Grep
        
    * Pipe
        
5. **Which Git command is used to upload the latest changes to a remote repository?**
    
    * <mark>git push</mark>
        
    * 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.**
    
    * <mark>git branch test</mark>
        
    * <mark>git checkout -b test</mark>
        
    * git push origin test
        
8. **Which of the following Git commands can be used to check local changes? Select all that apply.**
    
    * <mark>git diff</mark>
        
    * <mark>git status</mark>
        
    * git remote -v
        
9. In the following differential output, which is the first *deleted* line?
    
    ```powershell
    @@ @@
    Red
    +Blue
    -Green
    -Yellow
    ```
    
    * Red
        
    * Blue
        
    * <mark>Green</mark>
        
    * Yellow
        
10. **When copying a repository on Github to your own repository on Github, what is this action commonly known as?**
    
    * Merging
        
    * <mark>Forking</mark>
        
    * Cloning
