GitHub Foundations Practice Exam Flashcards

1
Q

What project management feature in GitHub can simply track the amount of open and closed tasks for a specific goal?

a. GitHub Wiki
b. GitHub Notifications
c. GitHub Discussions
d. GitHub Milestones

A

d. GitHub Milestones

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

What does forking a repo in GitHub do?

a. It deletes the original repository.
b. It contributes your changes directly to the original repository.
c. It pins the repository to your GitHub homepage.
d. It creates a personal copy of the repository in your account.

A

d. It creates a personal copy of the repository in your account.

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

What best describes a GitHub Repo?

a. A project management tool exclusively for tracking issues and tasks.
b. A collection of files and folders stored on GitHub.
c. A communication platform for developers.
d. A version control system.

A

b. A collection of files and folders stored on GitHub.

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

Which Git command allows you to check out and create a new branch simultaneously?

a. git branch new-branch
b. git checkout -b new-branch
c. git merge new-branch
d. git init new-branch

A

b. git checkout -b new-branch

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

To perform a pull request in a GitHub repository, which of the following conditions must be true?

a. The target branch must exist in the repository.
b. You must have commit access to the repository.
c. You must have a fork of the repository.
d. The repository must be private.

A

a. The target branch must exist in the repository.

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

What are the differences between GitHub for individuals and GitHub Business?

a. GitHub Business provides SAML single sign-on support while GitHub Individual does not.

b. GitHub Individuals comes with a built-in C|/CD tool, while GitHub Business requires additional setup for CI/CD.

c. GitHub Individuals allow creating organizations, while GitHub Business does not.

d. GitHub Business allows unlimited collaborators in private repositories, GitHub Individuals allows unlimited collaborators only in public repositories.

A

a. GitHub Business provides SAML single sign-on support while GitHub Individual does not.

d. GitHub Business allows unlimited collaborators in private repositories, GitHub Individuals allows unlimited collaborators only in public repositories.

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

How can you make a copy of a public Gist on GitHub and maintain its version history?

a. By downloading and uploading the Gist files to your account.
b. By using the ‘Fork’ button on the Gist page.
c. By using the ‘Star’ button on the Gist page.
d. By creating a new Gist and copying the content manually.
e. By cloning the Gist repository using Git.

A

b. By using the ‘Fork’ button on the Gist page.

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

Which of the following are actual push notifications that you can receive from GitHub Mobile?

a. Direct Mentions
b. Review Requested
c. Pull Request Review
d. Workflow Runs
e. Assigned
f. Deployment Review

A

a. Direct Mentions
b. Review Requested
c. Pull Request Review
e. Assigned

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

Which type of GitHub repository is unique to GitHub Enterprise accounts?

a. Internal Repositories
b. Forked Repositories
c. Private Repositories
d. Public Repositories

A

a. Internal Repositories

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

What best describes the use-case for Personal Access Tokens (PATs) in GitHub?

a. For two-factor authentication during sign-in
b. To encrypt repository data
c. Is a replacement for password authentication when using the GitHub API or Git over HTTPS.
d. To provide administrative access to all repositories in an organization

A

c. Is a replacement for password authentication when using the GitHub API or Git over HTTPS.

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

Which of the following are attributes that can be defined in a GitHub Actions workflow file? (Choose 3)

a. jobs
b. on
c. triggers
d. runs
e. steps

A

a. jobs
b. on
e. steps

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

What best describes the differences between GitHub.com, GitHub Desktop, and GitHub Mobile?

a. GitHub Mobile is for Linux, GitHub.com is mobile-only, GitHub Desktop is for cloud storage

b. Github.com, GitHub Desktop and GitHub Mobile are identical services with different names:

c.
- Github.com is a web-based Git repository hosting service
- GitHub Desktop is a GUI client for Git
- GitHub Mobile allows repository management on mobile device

d.
- GitHub Desktop is a code review web service
- GitHub Mobile is for desktop software development
- GitHub.com is a cloud storage tool

A

Figure this one out

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

Which GitHub personal plan offers Dependabot alerts? (Choose 2)

a. GitHub Enterprise
b. GitHub Free
c. GitHub Pro
d. GitHub Team

A

b. GitHub Free
c. GitHub Pro

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

What CodeQL Analysis peform in GitHub?

a. It monitors commit activity and contributor statistics.
b. It manages software workflows like building, testing, and deploying code.
c. It automates the analysis of code for detecting vulnerabilities and errors.
d. It scans for sensitive information in the repository.

A

c. It automates the analysis of code for detecting vulnerabilities and errors.

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

What is the use-case for using saved replies in GitHub? (Choose 2)

a. To pre-load common responses for issues and pull request reviews.
b. To quickly reply to common questions or recurring themes in your repositories.
c. To bookmark repositories for future visit.
d. To save a draft of the code you are writing.

A

a. To pre-load common responses for issues and pull request reviews.
b. To quickly reply to common questions or recurring themes in your repositories.

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

What are special profile badges that can be earned appear on your GitHub Profile by completing certain objectives?

a. Sponsor Badge
b. GitHub Achievements
c. GitHub Stars Program Badge
d. Contributor Badge

A

b. GitHub Achievements

16
Q

Which three files can be automatically created during the initial creation of a GitHub repository? (Choose 3)

a. LICENSE
b. README.md
c. CHANGELOG.md
d. CONTRIBUTING.md
e. gitignore

A

a. LICENSE
b. README.md
e. gitignore

17
Q

Explain the difference between GitHub Desktop and github.com:

a. GitHub Desktop is used for issue tracking and project management, whereas github.com is solely for code hosting.
b. Github.com offers version control services, while GitHub Desktop does not support version control.
c. GitHub Desktop is an alternative cloud-based hosting service like github.com, but with a focus on private repositories.
d. GitHub Desktop is a graphical user interface (GUI) application that simplifies the use of Git and GitHub, while github.com is the website and cloud-based hosting service for Git repositories.

A

d. GitHub Desktop is a graphical user interface (GUI) application that simplifies the use of Git and GitHub, while github.com is the website and cloud-based hosting service for Git repositories.

18
Q

In a GitHub repository, where are Issue Forms templates stored?

a. In the templates/issues/ directory
b. In the .github/ISSUE_TEMPLATE/ directory
c. In the .github/ISSUE_FORMS/ directory
d. In the docs/ directory

A

b. In the .github/ISSUE_TEMPLATE/ directory

19
Q

How can you make a specific issue more visible in your repository by fixing it at the top of the issue list?

a. By pinning the issue.
b. By creating a pull request of the issue.
c. By assigning it to the most active contributor.
d. By tagging it with a “high priority” label.

A

a. By pinning the issue.

20
Q

When using GitHub’s advanced search, which of the following syntax options correctly searches an organization for pull requests that contain information about payments?

a. org:organization_name is:pr payments
b. user:organization_name pulls about:payments
c. repo:organization_name/type:pulls payments
d. organization_name/payments in:pulls

A

a. org:organization_name is:pr payments

21
Q

What are two ways you can collect payments via GitHub Sponsors? (Choose 2)

a. Direct Bank Transfer
b. Through GitHub.com
c. Through Patreon
d. By Mail

A

b. Through GitHub.com
c. Through Patreon

22
Q

Which GitHub service allows you to access GitHub on the go?

a. GitHub Mobile
b. GitHub Connect
c. GitHub Actions
d. GitHub Desktop

A

a. GitHub Mobile

23
Q

What best describes GitHub Projects?

a. A leaderboard of the most popular repositories on GitHub
b. A marketplace for buying and selling source code.
c. A task management tool to plan and track work, using cards and columns
d. A feature for hosting and sharing PDF documents.

A

c. A task management tool to plan and track work, using cards and columns

24
Q

What best describes GitHub Copilot?

a. It is GitHub’s cloud-hosted CI/CD service.
b. It is GitHub’s service for automating pull request reviews.
c. It is GitHub’s repository dashboard for understanding project activity.
d. It is GitHub’s Al-powered code completion tool

A

d. It is GitHub’s Al-powered code completion tool

25
Q

Which GitHub cloning method requires to use a Personal Access Token? (Chose 2)

a. GitHub CLI
b. ZIP
c. HTTPS
d. SSH

A

a. GitHub CLI
d. SSH

26
Q

What is GitHub Sponsors?

a. A program that financially supports open-source contributors
b. A service that adds sponsored advertisements to your repo
c. A system that matches open-source developers with corporate sponsors for job opportunities
d. A feature that promotes popular repos on the GitHub homepage

A

a. A program that financially supports open-source contributors

27
Q

What does the on: attribute do in a GitHub Actions workflow file?

a. It defines the location of the workflow file in the repository.
b. It indicates the time when the workflow should run.
c. It designates the programming language used in the workflow.
d. It specifies the events that trigger the workflow.

A

d. It specifies the events that trigger the workflow.

28
Q

What is the difference between GitHub Codespaces and Github.dev?

a. GitHub Codespaces is a real-time collaboration tool, while GitHub.dev is a version control system.
b. GitHub Codespaces is a full, cloud-hosted development environment, while GitHub.dev is an Al-powered code review tool.
c. GitHub Codespaces is a cloud-based code editor, while GitHub.dev is a full development environment hosted on the cloud.
d. GitHub Codespaces provides a complete, configurable, and collaborative development environment in the cloud, while GitHub.dev is a lightweight, instant code editor available directly in the browser from any repository.

A

d. GitHub Codespaces provides a complete, configurable, and collaborative development environment in the cloud, while GitHub.dev is a lightweight, instant code editor available directly in the browser from any repository.

29
Q

What does pinning a GitHub issue do?

a. It keeps the issue at the top of the issue list for increased visibility.
b. It secures the issue with extra encryption for privacy.
c. It marks the issue as resolved.
d. It archives the issue for long-term storage.

A

a. It keeps the issue at the top of the issue list for increased visibility.

30
Q

How can you follow an organization on GitHub.com?

a. By subscribing to the organization’s RSS Feed.
b. By clicking the “Follow” button on the organization’s profile.
c. By starring the organization’s repositories.
d. By creating a pull request on the organization’s repository.

A

b. By clicking the “Follow” button on the organization’s profile.

31
Q

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

a. Item added to project.
b. Code changes requested.
c. Item reopened.
d. Auto-archive items.
e. Pull request merged.

A

a. Item added to project.
b. Code changes requested.
e. Pull request merged.

32
Q

Which GitHub Repository Insight provides a summary of activity, including a list of recent pull requests, and issues that have been opened and closed?

a. Code frequency.
b. Pulse
c. Contributors
d. Traffic

A

b. Pulse