As a GitHub user, where in the UI can you configure two-factor authentication (2FA) to further secure your account?
Correct Answer: D
As a GitHub user, you can configure two-factor authentication (2FA) to secure your account by navigating toSettings -> Password and Authentication -> 2FA. This section in the GitHub user interface allows you to set up and manage your 2FA methods, which provide an additional layer of security beyond just your password.
Question 17
Which of the following best describes GitHub Copilot?
Correct Answer: C
GitHub Copilot is described asan AI pair programmer that offers autocomplete-style suggestions. It is a tool integrated into development environments like Visual Studio Code that helps developers by providing code suggestions as they type. Copilot can suggest entire lines or blocks of code based on the context of what you're writing, making it a valuable assistant in coding, but not a replacement for developers.
Question 18
What are two recommended ways of improving the discoverability of a repository? (Each answer presents a complete solution. Choose two.)
Correct Answer: B,D
Two recommended ways to improve the discoverability of a repository on GitHub are: * B. Create a README file describing the repository: A well-written README file provides essential information about the project, such as what it does, how to use it, and how to contribute. This is often the first thing potential users or contributors will see, making it critical for discoverability. * D. Add topics to classify the repository: Adding topics to your repository helps classify it under specific categories, making it easier for others to find it through GitHub's search and exploration features. Topics act like tags, helping to connect your project with users interested in similar subjects. Registering a repository with GitHub search and adding labels are not applicable actions for improving discoverability in the broader sense.
Question 19
What are the two main reasons why one might fork a repository? (Each answer presents a complete solution. Choose two.)
Correct Answer: B,C
Forking a repository on GitHub is a common practice, especially when contributing to open-source projects or when you want to build on existing work. Here are the two main reasons for forking a repository: * B. To propose changes to the base repository: * One of the primary reasons for forking a repository is to make changes or improvements that you can later propose to the original repository (often called the "upstream" repository). This is typically done through a pull request. By forking the repository, you get your own copy of the project where you can freely experiment, make changes, and then propose those changes back to the original project. * C. To create a new repository based on an existing one: * Forking is also used to create a new repository that is a copy of an existing one. This allows you to work on the project independently of the original repository, effectively creating a new direction for the project or using it as a starting point for a different purpose. This is particularly useful for customization, experimentation, or when you want to build something different while still leveraging the existing codebase. Explanation of Other Options: * A. To create an issue or open a discussion: * This is incorrect because creating an issue or opening a discussion can be done directly on the original repository without needing to fork it. Forking is unnecessary for these actions. * D. To create a new branch to develop a new feature: * While creating a new branch is related to development, it does not require a fork. Branches are typically created within the same repository to work on new features. Forking is used when you need an entirely separate copy of the repository. Given this information, the correct answers areBandC. References: * GitHub Documentation: Fork a repo * GitHub Documentation: About forks
Question 20
What qualifier finds issues that mention a certain user?
Correct Answer: A
The qualifiermentions:is used in GitHub's search functionality to find issues that mention a certain user. For example, if you want to find all issues where a specific user is mentioned, you would usementions:username. This helps in tracking where a user has been involved in discussions across issues or pull requests.