Last Updated On
Welcome to the GitHub Quiz! This blog post features 25 multiple-choice questions that explore concepts of GitHub.
1. What is GitHub?
Select the best answer
a) A software to draw diagrams
b) A web-based platform for version control and collaboration
c) A mobile app for photo editing
d) A music player
Answer 1
b) A web-based platform for version control and collaboration
GitHub is a web-based platform used for hosting Git repositories. It enables collaboration by providing tools for version control, issue tracking, and project management, making it easier for teams to work together.
2. What is the primary purpose of GitHub?
Choose one option
a) To host Git repositories
b) To write code
c) To debug programs
d) To compile code
Answer 2
a) To host Git repositories
3. GitHub is based on which version control system?
Choose one option
a) Mercurial
b) SVN
c) Git
d) CVS
Answer 3
c) Git
4. Which of these is NOT a feature of GitHub?
Choose one option
a) Repository hosting
b) Issue tracking
c) Video streaming
d) Pull requests
Answer 4
c) Video streaming
5. Which icon is used to “star” a repository?
Choose one option
a) 🛠️
b) ⭐
c) 💬
d) 🔒
Answer 5
b) ⭐
6. What is the purpose of a GitHub repository’s README.md file?
a) To describe the project and provide instructions
b) To store sensitive information
c) To commit code changes
d) To manage branches
Answer 6
a) To describe the project and provide instructions.
The README.md file in a GitHub repository serves as the main documentation for the project. It typically contains a description of the project. It provides instructions on how to install and use it. The README also includes information on how to contribute.
7. What is the purpose of the Issues tab in a repository?
a) Chat with followers
b) Log bugs, tasks, or feature requests
c) Share files
d) View stars
Answer 7
b) Log bugs, tasks, or feature requests
The Issues tab in a repository is used for logging and tracking bugs, tasks, or feature requests. It serves as a project management tool, allowing contributors to identify, discuss, and resolve various issues related to the project.
8. What does the “Fork” button do?
Choose one option
a) Merges two branches
b) Creates a duplicate copy of a repository under your account
c) Deletes the repository
d) Creates a zip file
Answer 8
b) Creates a duplicate copy of a repository under your account
The “Fork” button on platforms like GitHub or GitLab creates a copy of a repository under your own account.
9. What is GitHub Pages used for?
Choose one option
a) Database hosting
b) Deploying static websites
c) Messaging
d) Cloud computing
Answer 9
b) Deploying static websites
GitHub Pages is a feature provided by GitHub that allows users to host static websites directly from their repositories. It is an ideal platform for creating projects, documentation, or personal websites. It leverages static files such as HTML, CSS, and JavaScript. There is no need for server-side processing.
10. Which GitHub feature allows you to manage bugs and tasks?
Choose one option
a) Projects
b) Issues
c) Actions
d) Forks
Answer 10
b) Issues
GitHub Issues is a feature that allows the tracking and management of bugs, tasks, and enhancements within a repository.
11. What does “watching” a repository mean?
Choose one option
a) Getting updates
b) Downloading
c) Editing
d) Sharing
Answer 11
a) Getting updates
“Watching” a repository on platforms like GitHub means subscribing to notifications and updates related to the repository. When you watch a repository, you receive notifications about new releases, pull requests, issues, and any discussions or changes made within that repository.
12. What does a green check mark in a pull request indicate?
Choose one option
a) Merged
b) Pending
c) Failed tests
d) Passed checks
Answer 12
d) Passed checks
In the context of a pull request on platforms like GitHub, a green check mark typically indicates that all checks have passed successfully. This can include automated tests, linting, and other CI/CD pipeline checks that are set to run on the code changes within the pull request.
13. What is the default branch name in a new GitHub repository (as of 2020+)?
Choose one option
a) master
b) default
c) main
d) dev
Answer 13
c) main
Starting from late 2020, GitHub changed the default branch name for new repositories from “master” to “main”. This change was part of a broader effort to make inclusive naming the default across software projects and platforms.
14. What symbol is used to reference users on GitHub?
Choose one option
a) #
b) $
c) @
d) &
Answer 14
c) @ s
15. How can you open a pull request on GitHub?
Choose one option
a) Through the command line
b) Through the repository page on GitHub
c) Only with admin access
d) By watching the repository
Answer 15
b) Through the repository page on GitHub
To open a pull request on GitHub, you first go to the repository page. This is where you have forked or made changes. From there, you click on the “Pull Requests” tab. Next, click on the “New Pull Request” button to propose your changes.
16. Which tab in a GitHub repo lets you download a ZIP of the project?
Choose one option
a) Code
b) Pull requests
c) Issues
d) Actions
Answer 16
a) Code
17. Can you edit a file directly on GitHub without cloning it?
Choose one option
a) No
b) Yes
c) Only admins can
d) Only with GitHub Pro
Answer 17
b) Yes
18. What do you need to clone a GitHub repo?
Choose one option
a) A password
b) A link to the repository
c) A GitHub invitation
d) An SSH certificate
Answer 18
b) A link to the repository
19. What does the “Insights” tab show?
a) Programming errors
b) Contribution and activity stats
c) File size
d) Email history
Answer 19
b) Contribution and activity stats
20. Where is the “README.md” file displayed?
Choose one option
a) Inside the issues
b) At the top of the repository main page
c) In GitHub Pages
d) Hidden from users
Answer 20
b) At the top of the repository main page.
21. What’s the purpose of a commit message?
a) To delete files
b) To describe what changes were made
c) To reset changes
d) To download the code
Answer 21
b) To describe what changes were made
22. What is required to create a GitHub account?
a) Mobile number
b) GitHub invite code
c) Email address
d) GitHub token
Answer 22
c) Email address
23. What does the green “Code” button do on a repo’s main page?
a) Upload files
b) Share a video
c) Lets you clone or download the repository
d) Edit code online
Answer 23
c) Lets you clone or download the repository
24. Which GitHub feature displays the commit history visually?
a) Timeline
b) Graph
c) Network
d) Feed
Answer 24
c) Network
25. Which GitHub feature can automate workflows?
a) GitHub Pages
b) GitHub Actions
c) GitHub Gist
d) GitHub Sponsors
Answer 25
b) GitHub Actions
We would love to hear from you! Please leave your comments and share your scores in the section below