Git Quiz – GitHUb MCQ Questions practice online Post comments:0 Comments Post published:25 January 2024 GitHub MCQ Questions In this GitHub MCQ Quiz we will conduct a 18 questions related to GitHub to increase and test your knowledge in GitHub Start QuizPage 1 of 18 What is GitHub primarily used for? Social Networking Code Collaboration and Version Control Cloud Storage Video Streaming Page 2 of 18 Which command is used to clone a repository from GitHub to your local machine? git clone git fetch git pull git commit Page 3 of 18 In Git, what does a "commit" represent? A new file A deleted file A new branch A saved change Page 4 of 18 What is a pull request in GitHub? A request for code deletion A request to merge changes A request for repository deletion A request for access permission Page 5 of 18 Which Git command is used to stage changes for a commit? git commit git push git add git merge Page 6 of 18 What is the purpose of the .gitignore file? To list contributors To ignore specific files in version control To set repository permissions To configure webhook settings Page 7 of 18 Which GitHub feature is used for tracking and managing tasks? Issues Projects Pull Requests Gists Page 8 of 18 What is the purpose of the "fork" operation on GitHub? To create a new branch To merge two repositories To revert a commit To copy a repository to your GitHub account Page 9 of 18 Which license is commonly used to open-source software on GitHub? Creative Commons Apache License GPL (GNU General Public License) MIT License Page 10 of 18 What is the purpose of a GitHub Gist? A code review tool A way to share and collaborate on snippets of code A short-lived branch A tool for repository statistics Page 11 of 18 Which GitHub feature is used for continuous integration and deployment? Actions Workflows Integrations Pipelines Page 12 of 18 How can you undo the last Git commit? git revert git remove git reset --hard git cancel Page 13 of 18 What is the purpose of the GitHub "README" file? To store sensitive information To provide information about the repository To track changes in the repository To define repository access permissions Page 14 of 18 What is the difference between "git pull" and "git fetch"? git pull updates the remote repository, while git fetch only retrieves changes They are the same command git fetch updates the local repository, while git pull only retrieves changes git fetch is used for creating a new branch, while git pull is for merging branches Page 15 of 18 What is a GitHub webhook used for? To create a new repository To delete a repository To share code snippets To trigger events in external systems based on repository events Page 16 of 18 Which Git command is used to view the commit history? git log git history git show git status Page 17 of 18 What is the purpose of GitHub Actions? To create branches To automate workflows and tasks To delete repositories To share code snippets Page 18 of 18 Which file is commonly used for automated testing configuration in a GitHub repository? .testconfig .travis.yml .config.yml .automate Leave a Reply Cancel replyCommentEnter your name or username to comment Enter your email address to comment Enter your website URL (optional) Save my name, email, and website in this browser for the next time I comment.