GitHub Foundations Practice Exam Part III Flashcards

1
Q

Which security feature of GitHub can you use to prevent pushing secrets to your repo?

a. Secret Scanning
b. Dependency Graph
c. CodeQL Analysis

A

a. Secret Scanning

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which of these elements is NOT typically included in a Git commit?

a. The branch name where the commits it’s made.
b. The SHA-1 hash identifying the commit.
c. The changes made to the code or files.
d. The date and time of the commit.

A

a. The branch name where the commits it’s made.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does Dependabot alerts do?

a. They notify you about outdated dependencies in your repository.
b. They notify you when your repository size exceeds quota.
c. They send notifications about failed build processes.
d. They send alerts about critical software runtime errors.

A

a. They notify you about outdated dependencies in your repository.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which of the following are built-in workflows for GitHub Projects?

a. Code review approved.
b. Item closed.
c. Auto-add to project.
d. Item moved to another column.
e. Card commented on.

A

a. Code review approved.
b. Item closed.
c. Auto-add to project.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How do you subscribe to a notifications thread in GitHub?

a. Click the “Subscribe” button on the right side of an issue or pull request page.
b. Leave a comment on the thread.
c. Fork the repository.
d. Use the “Watch” button at the top of the repository.

A

a. Click the “Subscribe” button on the right side of an issue or pull request page.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are GitHub Wiki pages primarily used for?

a. To provide a platform for user-generated documentation and notes related to a project.
b. To host the static website for the project.
c. To automatically generate code documentation from comments in source code.
d. To store sensitive configuration files.

A

a. To provide a platform for user-generated documentation and notes related to a project.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the primary purpose of GitHub Projects?

a. To offer a project management tool that organizes tasks, issues, and pull requests.
b. To serve as a centralized repository for storing and sharing code.
c. To provide a chat system for real-time collaboration among developers.
d. To automate code compilation and deployment.

A

a. To offer a project management tool that organizes tasks, issues, and pull requests.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which options can you use to configure the visibility of a GitHub repository? (Choose 2)

a. Make the repository public, allowing unrestricted access to the code.
b. Use a VPN to control which users can access the repository.
c. Encrypt the repository content to make it visible only to users with the decryption key.
d. Set the repository as private, restricting access to specific collaborators or teams.

A

a. Make the repository public, allowing unrestricted access to the code.
d. Set the repository as private, restricting access to specific collaborators or teams.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What best describes a GitHub Flow?

a. A method of version control that is exclusive to GitHub and cannot be used with other version control systems.
b. A strict, linear approach to software development that requires sequential completion of tasks.
c. A collaborative workflow that centers around creating branches for new features, code reviews, and pull requests.
d. A system that integrates code changes directly into the master branch without review.

A

c. A collaborative workflow that centers around creating branches for new features, code reviews, and pull requests.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the primary purpose of enabling Two-Factor Authentication (2FA) for your GitHub account?

a. To provide an extra layer of security by requiring a second form of verification besides your password.
b. To enable automated code merging in pull requests.
c. To customize the appearance and theme of your GitHub profile.
d. To increase the storage capacity of your repositories.

A

a. To provide an extra layer of security by requiring a second form of verification besides your password.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the main difference between InnerSource and open source?

a. InnerSource is about private collaboration within an organization, while open source involves public collaboration.
b. InnerSource does not allow code sharing, while open source is based on freely sharing code.
c. InnerSource is only for software development, while open source can be used for any type of project.
d. InnerSource requires a paid subscription, whereas open source is completely free.

A

a. InnerSource is about private collaboration within an organization, while open source involves public collaboration.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Which features can you use to improve your workflow in GitHub Projects? (Choose 2)

a. Labels for categorizing and filtering tasks.
b. Hard disk encryption for securing your project data.
c. Direct messaging for real-time communication with contributors.
d. Custom fields for adding unique information to each task.

A

a. Labels for categorizing and filtering tasks.
d. Custom fields for adding unique information to each task.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What distinguishes GitHub Copilot for Business from GitHub Copilot for Individuals?

a. GitHub Copilot for Business is designed for enterprise-scale deployment and administrative controls, whereas GitHub Copilot for Individuals is for personal use.
b. GitHub Copilot for Business offers cloud-based storage, whereas GitHub Copilot for Individuals offers local storage only.
c. GitHub Copilot for Business allows code sharing, while GitHub Copilot for Individuals does not.
d. GitHub Copilot for Business includes project management tools, whereas GitHub Copilot for Individuals focuses on code completion.

A

a. GitHub Copilot for Business is designed for enterprise-scale deployment and administrative controls, whereas GitHub Copilot for Individuals is for personal use.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Which is NOT a role for GitHub Organization collaborators?

a. Triage
b. Collaborator
c. Admin
d. Write

A

b. Collaborator

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the main feature of the Roadmap layout for GitHub Projects?

a. It facilitates automated code reviews and pull request merges.
b. It provides an interactive Kanban board for managing issues and pull requests.
c. It enables a Gannt chart view to visualize and plan tasks and deadlines in a timeline.
d. It allows to filter items by labels or milestones.

A

c. It enables a Gannt chart view to visualize and plan tasks and deadlines in a timeline.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is Markdown primarily used for on GitHub?

a. For writing formatted text in issues, pull requests, and files like READMES.
b. For styling GitHub Pages with CSS.
c. For querying data in GitHub’s database.
d. For scripting automated actions in GitHub Actions.

A

a. For writing formatted text in issues, pull requests, and files like READMES.

17
Q

Which of the following is a feature of repository templates in GitHub?

a. They provide pre-configured files and folders for a new repository based on the template.
b. They link the new repository to all previous issues and pull requests of the template repository.
c. They prevent users from making changes to the repository’s code.
d. They automatically commit changes to the repository every day.

A

a. They provide pre-configured files and folders for a new repository based on the template.

18
Q

Which feature in Git allows you to develop new features, fix bugs, or safely experiment with new ideas in isolated environments within the same repository?

a. Commit History
b. Staging Area
c. Merge Requests
d. Git Branch

A

d. Git Branch

19
Q

How can you start a GitHub Codespace? (Choose 2)
a. By selecting the ‘New codespace’ button at the top of a GitHub repository page.
b. By sending a request to GitHub support to set up a codespace for your repository.
c. By cloning the repository to your local machine and then migrating it to a codespace.
d. By opening the repository and using the command palette to create a new codespace.

A

a. By selecting the ‘New codespace’ button at the top of a GitHub repository page.
d. By opening the repository and using the command palette to create a new codespace.

20
Q

Which of the following are true about linking a pull request to an issue? (Choose 2)

a. Linking a pull request to an issue can help provide context and automatically close the issue when the pull request is merged.
b. Linking a pull request to an issue automatically grants write access to the issue for all contributors to the pull request.
c. Linking a pull request to an issue requires administrative access to the repository.
d. Linking a pull request to an issue is achieved by mentioning the issue number in the pull request description.

A

Find the answer

21
Q

How can you add a new file to a GitHub repository?
a. Using the ‘Add file’ button on the repository’s main page and choosing ‘Create new file’ or ‘Upload files’.
b. By creating a new branch for each new file.
c. By directly copying and pasting the file into the browser window.
d. By emailing the file as an attachment to GitHub support.

A

a. Using the ‘Add file’ button on the repository’s main page and choosing ‘Create new file’ or ‘Upload files’.

22
Q

A user with the username merlin99 creates a repo named git-examples, an organization called GitWizards. What would the GitHub repo URL be?

a. https://gitwizards.github.com/merlin99/git-examples
b. https://github.com/merlin99/git-examples
c. https://github.com/merlin99/GitWizards/git-examples
d. https://github.com/GitWizards/git-examples

A

d. https://github.com/GitWizards/git-examples

23
Q

What feature does the Markdown syntax - [] represent in GitHub?

a. An unchecked checkbox in a task list.
b. A code block for highlighting source code.
c. A bullet point in an unordered list.
d. A hyperlink to an external website.

A

a. An unchecked checkbox in a task list.

24
Q

What is the primary benefit of using saved replies in GitHub?

a. To store common responses to issues and pull requests, saving time and maintaining consistency.
b. To visually represent project progress and statistics.
c. To track changes to code in a more efficient way than traditional version control.
d. To automatically merge pull requests without human intervention.

A

a. To store common responses to issues and pull requests, saving time and maintaining consistency.

25
Q

Which filters for issues that do not require advanced syntax can you use on GitHub? (Choose 3)

a. Everything assigned to you.
b. Your Issues.
c. Issues with specific labels.
d. Everything mentioning you.
e. Recently Updated Issues.

A

a. Everything assigned to you.
b. Your Issues.
d. Everything mentioning you.

26
Q

How can you efficiently manage and categorize issues and pull requests in a GitHub project?

a. By using labels to categorize and filter issues and pull requests.
b. By manually emailing collaborators about the status of issues and pull requests.
c. By configuring automated build processes for each issue and pull request.
d. By setting up webhooks to notify external project management tools.

A

a. By using labels to categorize and filter issues and pull requests.

27
Q

What does the term “base branch” refer to in a GitHub repository?

a. A backup branch that is rarely used or updated.
b. The primary branch where all the changes eventually merge.
c. A temporary branch created for specific features or bug fixes.
d. A branch that is only used for deploying code to production.

A

b. The primary branch where all the changes eventually merge.

28
Q

What are GitHub Codespaces?

a. A configurable online development environment hosted by GitHub.
b. A feature that allows you to define and run automated workflows in your repository.
c. An Al-powered coding assistant.
d. A version control system managed by GitHub.

A

a. A configurable online development environment hosted by GitHub.

29
Q

Which of the following actions can you perform with GitHub Pages? (Choose 2)

a. Host a static website directly from a repository.
b. Store and manage database files for dynamic web applications.
c. Customize the site’s appearance using themes.
d. Automatically generate a website from a database schema.

A

a. Host a static website directly from a repository.
c. Customize the site’s appearance using themes.

30
Q

In the GitHub Marketplace what are the type of possible plans (Choose 3).

a. Open-Source
b. Enterprise
c. Free
d. Paid

A

a. Open-Source
c. Free
d. Paid

31
Q

What feature in GitHub allows you to manage and track how many people have access to your repository and their permission levels?

a. Collaborators & Teams section in repository settings
b. The ‘Watchers’ list on the repository main page
c. Branch Protection Rules
d. Repository Insights

A

a. Collaborators & Teams section in repository settings

32
Q

How do you create a Security Policy for your GitHub Repo?

a. Add a SECURITY.md file in the github directory of your repository.
b. Add a file named SECURITY_POLICY.md in the root of your repository.
c. Enable the Security Policy setting under your repository’s settings.
d. Update the README.md file with your security policy details.

A

a. Add a SECURITY.md file in the github directory of your repository.

33
Q

Which of the following are features of the ‘Conversations’ tab in a pull request on GitHub? (Choose 2)
a. Showing all comments and discussions related to the pull request.
b. Providing a summary of repository insights and traffic data.
c. Displaying a list of commits included in the pull request.
d. Showing the status checks and continuous integration build results.

A

a. Showing all comments and discussions related to the pull request.
d. Showing the status checks and continuous integration build results.