Microsoft

GH-900 practice question 4

GitHub Foundations · free question 4 of 20

Question

If there are multiple README files, which of the following locations will be displayed first?
  • A. docs
  • B. root
  • C. src
  • D. .github Correct

Explanation

When a repository contains more than one README, GitHub picks the one to display in this order: the .github directory, then the repository's root directory, and finally the docs directory. So a README in .github takes precedence over one in the root. A README in src is not surfaced on the repository's main page at all.

Practice the whole free set

Answer all 20 free GH-900 questions with instant feedback, or unlock all 126 questions with Learn and Exam modes.