GitHub Foundations #10 Bonus — Full-Scale Practice Exam (50 Questions with Explanations)

24 min read

This is the stage where you confirm that the concepts covered from #1 through #9 have actually settled in. You will work through 50 questions arranged to match the seven domains of the real GitHub Foundations exam. This is the final post of the series.

The real exam gives you 120 minutes for 75 scored questions. This practice exam uses 50 questions, so the time limit and passing line are scaled proportionally. If you get 38 or more questions (76%) right, you are in passing range and can go ahead and book the exam.

How to take it #

  • Aim to finish within 90–110 minutes (the real exam is 75 questions in 120 minutes; this one is scaled to 50)
  • Answer one question at a time, but resist checking the explanation immediately — grade yourself after finishing all 50
  • 38 or more correct (76%) puts you in passing range
  • If one domain keeps tripping you up, go back to the corresponding post (#2–#9) and review

Domain distribution #

The official domain weights are published in the official study guide and can be revised. This practice exam uses its own distribution that weights collaboration features and Git/GitHub basics more heavily.

DomainQuestionsRange
Domain 1: Introduction to Git and GitHub10Q1–Q10
Domain 2: Working with repositories7Q11–Q17
Domain 3: Collaboration features14Q18–Q31
Domain 4: Modern development7Q32–Q38
Domain 5: Project management3Q39–Q41
Domain 6: Privacy, security, and administration6Q42–Q47
Domain 7: The GitHub community3Q48–Q50

Domain 1: Introduction to Git and GitHub (Q1–Q10) #

Q1. Which statement correctly describes the relationship between Git and GitHub?
Q2. Which Git area is used to select the changes that will go into the next commit?
Q3. Which command moves a modified file into the staging area?
Q4. What does Git store with each commit?
Q5. What does git init actually do?
Q6. Which statement about distributed version control systems is correct?
Q7. How do you set the author name and email recorded in commits?
Q8. Which statement correctly describes a GitHub organization account?
Q9. What information does git status show?
Q10. Which of the following is NOT part of a commit object?

Domain 2: Working with repositories (Q11–Q17) #

Q11. Which statement correctly describes a fork?
Q12. What characterizes a new repository created from a template repository?
Q13. Which statement correctly describes the relationship between a tag and a release?
Q14. What is the main purpose of a gist?
Q15. What role does the README.md file in the repository root play?
Q16. Which statement is correct about the code in a public repository that has no LICENSE file?
Q17. Who can see a repository with internal visibility?

Domain 3: Collaboration features (Q18–Q31) #

Q18. Which notation, written in a Pull Request body, automatically closes Issue 12 when the PR is merged?
Q19. What are labels used for?
Q20. Which statement correctly describes a milestone?
Q21. Where do Issue templates live?
Q22. What happens when you mention @username in an Issue comment?
Q23. Which syntax creates a checklist item in GitHub Flavored Markdown?
Q24. Which syntax creates a multi-line code block in GitHub Flavored Markdown?
Q25. Which statement correctly describes a Pull Request?
Q26. What characterizes a draft Pull Request?
Q27. Which of the following is NOT a state you can choose when submitting a Pull Request review?
Q28. What does the CODEOWNERS file do?
Q29. What does the Squash and merge strategy do?
Q30. When is Discussions a better fit than Issues?
Q31. Which statement correctly describes GitHub Pages?

Domain 4: Modern development (Q32–Q38) #

Q32. Which hierarchy of GitHub Actions terms is correct?
Q33. Where, and in what format, do GitHub Actions workflow files live?
Q34. How do you define when a workflow runs?
Q35. What is a GitHub Actions runner?
Q36. What is the difference between Codespaces and the github.dev editor?
Q37. Which statement correctly describes GitHub Copilot?
Q38. Which statement correctly describes GitHub Packages?

Domain 5: Project management (Q39–Q41) #

Q39. Which combination of views does GitHub Projects provide?
Q40. Which is an example of what GitHub Projects built-in automation can do?
Q41. What can you check in a repository’s Insights tab?

Domain 6: Privacy, security, and administration (Q42–Q47) #

Q42. Which repository role allows triage work — labeling Issues and PRs and assigning owners — without code push permission?
Q43. What does two-factor authentication (2FA) protect?
Q44. How does a fine-grained personal access token differ from a classic token?
Q45. What can branch protection rules enforce?
Q46. Which of the following is NOT a Dependabot capability?
Q47. What does secret scanning’s push protection feature do?

Domain 7: The GitHub community (Q48–Q50) #

Q48. Which statement correctly describes InnerSource?
Q49. What is the role of the CONTRIBUTING.md file?
Q50. Which statement correctly describes GitHub Sponsors?

Scoring and next steps #

  • 43 or more correct — You are well prepared. Go ahead and book the real exam.
  • 38–42 correct — You are in passing range. Review the domains of the questions you missed in the corresponding posts, then book.
  • 37 or fewer correct — Return to the domains where your misses cluster (#2–#9), rebuild the concepts, and retake this practice exam a few days later.

The real exam has more questions and more varied wording than this practice set, but the range of concepts it asks about is the same. If you have trained yourself to pair each feature’s name precisely with its role, you will have plenty of time.

This concludes the GitHub Foundations series.

X