GitHub Foundations Practice Exam Part II Flashcards

1
Q

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

a. Triggers
b. Steps
c. Runs
d. On
e. Jobs

A

b. Steps
c. Runs
d. On
e. Jobs

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

How do you add a custom Readme page to your GitHub User Profile?

a. Add a README.md file to the repository and commit it.
b. Turn on custom readme in Account Setting under user profile.
c. Create a new repository with the same name as your GitHub username.
d. Enable GitHub Pages for the repository.
e. Submit a request to GitHub support for profile customization.

A

a. Add a README.md file to the repository and commit it.
c. Create a new repository with the same name as your GitHub username.

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

In a GitHub repository, under the security tab, which of the following alerts might appear?

a. Pull request merging alerts.
b. Workflow run alerts.
c. Commit signature verification alerts.
d. Code Scanning alerts.
e. Dependency review alerts.

A

b. Workflow run alerts.
d. Code Scanning alerts.
e. Dependency review alerts.

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

What are two ways you can collect payments via GitHub Sponsors?

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

A

a. Through GitHub.com
c. Trough Patreon.

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

Which GitHub cloning method requires the use of a Personal Access Token?

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

A

b. GitHub CLI
c. HTTPS

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

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

a. schedule
b. release
c. commit_message_change
d. fork
e. issue_comment

A

a. schedule
b. release
e. issue_comment

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

Which of the following is NOT a GitHub Actions trigger?

a. page_build
c. Runs
b. pull_request
c. push
d. code_review

A

d. code_review

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

What is the difference between GitHub Projects and GitHub Projects Classic?

a. GitHub Projects are only for premium GitHub users while Projects Classic is for free users.
b. GitHub Projects use a board layout while Projects Classic uses a list layout.
c. GitHub Projects provide project management features while Projects Classic are read-only repositories.
d. GitHub Projects are for individual repos while Projects Classic are for organizations.

A

b. GitHub Projects use a board layout while Projects Classic uses a list layout.

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

Which light-weight version control workflow focusing on simplicity and effective use of branches and pull requests?

a. GitHub Flow
b. Trunk-Based Development
c. Continuous Integration (CI) Workflow
d. Centralized Version Control

A

a. GitHub Flow

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

What are the benefits of a decentralized version control system (DVCS)?

a. Improved collaboration efficiency
b. Enhanced security
c. Faster performance
d. Requires constant internet connection for all operations
e. Automatic merging of changes
f. Easier project management

A

a. Improved collaboration efficiency
b. Enhanced security

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

What is the purpose of the CODEOWNERS file?

a. To store passwords and API keys securely
b. To manage permissions and access control of the repository
c. To display the coding standards for the repository
d. To assign automatic review requests to certain team members when changes are made to parts of the codebase.

A

b. To manage permissions and access control of the repository

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

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

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

A

a. Item closed
c. Card commented on
e. Auto-add to project

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

How do you follow people on Github.com?

a. By clicking the ‘Follow’ button on the user’s profile page
b. By starring the user’s repositories
c. By subscribing to the user’s RSS Feed
d. By sending a connection request to the user

A

a. By clicking the ‘Follow’ button on the user’s profile page

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

What configuration options can you set when you Launch a GitHub Codespace?

a. Choose the geographical location of the codespace’s hosted server.
b. Preload the codespace with a selected region of the codebase.
c. Set up specific packages and tools for the codespace.
d. Define environment variables for the codespace.
e. Customize the color theme of the codespace’s editor.

A

c. Set up specific packages and tools for the codespace.
d. Define environment variables for the codespace.
e. Customize the color theme of the codespace’s editor.

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

Where are GitHub workspace files stored in your GitHub Repo?
a. Under the Isrc directory
b. Under the /github/workflows directory
c. In the root directory of the repo
d. Under the /github

A

c. In the root directory of the repo

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

Which of the following statements accurately describes a Centralized Version Control System (CVCS)?

a. It is primarily used for distributed collaboration without a central repository.
b. Developers can work simultaneously on different versions of the files.
c. It allows each developer to have a local copy of the entire development history.
d. Changes are made directly to the central server without local repositories.

A

d. Changes are made directly to the central server without local repositories.

17
Q

What does the “approve” review option do to a GitHub Pull Request?

a. Indicates that changes are required.
b. Merges the Pull Request into the target branch.
c. Locks the Pull Request for further changes.
d. Signals the reviewer’s agreement and satisfaction with the changes, allowing for merging if all policies are met.

A

d. Signals the reviewer’s agreement and satisfaction with the changes, allowing for merging if all policies are met.

18
Q

What is the use-case for Milestones on GitHub?

a. To monitor the real-time activities in a repository.
b. To implement version control
c. To group together and pull requests for specific features or phases of work.
d. To bookmark repositories for easier access.

A

c. To group together and pull requests for specific features or phases of work.

19
Q

What are the layout configurations available in GitHub Projects?

a. Table
b. Calendar
c. Roadmap
d. Board
e. Timeline

A

a. Table
c. Roadmap
d. Board

20
Q

What does the “base” branch in a pull request represent?

a. The default branch of the repository.
b. The branch into which the changes will be merged.
c. A backup branch that is rarely used or updated.
d. The branch containing the new chances to be merged.

A

b. The branch into which the changes will be merged.

21
Q

What keyboard hotkey will instantly open up GitHub.dev Editor in a GitHub Repo?
a. , (comma)
b. – (hypen)
c. / (forward slash)
d. . (period)

A

d. . (period)

22
Q

What is the difference between a GitHub Issues Template and a GitHub Pull Request Template?

a. A GitHub Issues Template automatically resolves issues, and a Pull Request Template automatically merges pull requests.
b. A GitHub Issues Template guides the creation of new issues, and a Pull Request Template guides the creation of new pull requests.
c. A GitHub Issues Template is for projects, and a Pull Request Template is for code.
d. A GitHub Issues Template is for public repositories, and a Pull Request Template is for private repositories.

A

b. A GitHub Issues Template guides the creation of new issues, and a Pull Request Template guides the creation of new pull requests.

23
Q

What action will pin an issue to the top of the issues page on a GitHub repository?

a. Using the “Pin issue” option.
b. Adding the issue to a project board.
c. Assigning the issue to a milestone.

A

a. Using the “Pin issue” option.

24
Q

When creating private Gists on GitHub, in which way are they not completely secure?

a. They can be accessed by anyone who has the URL.
b. They are publicly visible on your profile.
c. They can be forked by any GitHub user.

A

a. They can be accessed by anyone who has the URL.

25
Q

What best describes a centralized version control system (CVCS)?

a. A system where all file versions are stored on a central server, and clients check out the latest version as needed.
b. A system where each user’s machine serves as a full-fledged repository with complete history and version tracking abilities.
c. A system where the repository is distributed among several nodes, and each node can function independently.

A

a. A system where all file versions are stored on a central server, and clients check out the latest version as needed.

26
Q

Which file is used to configure the developer environment such as programs installed or
base docker image for GitHub Codespaces?

a. .devcontainer/devcontainer.json
b. environment.json
c. github/workflows/setup.yml
d. github/init/setup.json

A

a. .devcontainer/devcontainer.json

27
Q

What are three ways you can clone a repo in Github?

a. SSH
b. HTTPS
c. email
d. FTP
e. GitHub CLI
f. ZIP

A

a. SSH
b. HTTPS
e. GitHub CLI

28
Q

What is the purpose of the CONTRIBUTING file in a GitHub repo?

a. It serves as a guide for future development plans.
b. It outlines instructions and guidelines for contributing to the project.
c. It automatically adds contributors to the project.

A

b. It outlines instructions and guidelines for contributing to the project.

29
Q

What are the benefits of GitHub’s Dev Editor?

a. It supports editing multiple files at the same time.
b. It provides code completion suggestions.
c. It has a terminal for executing commands in your repo.
d. It only supports editing files in the master branch.

A

a. It supports editing multiple files at the same time.
b. It provides code completion suggestions.
c. It has a terminal for executing commands in your repo.

30
Q

What GitHub features allows users use products or features that are available in beta?

a. GitHub Feature Preview
b. GitHub Labs
c. GitHub Feature Preview

A

a. GitHub Feature Preview

31
Q

Which configuration layout options for GitHub Project is only for Roadmaps?

a. Dates
b. Column
c. Group
d. Zoom Level

A

a. Dates

32
Q

When exploring files in a GitHub repo what hotkey can be quickly used to focus the search box to search through files?

a. T
b. P
c. . (period)

A

a. T

33
Q

Which file format are used for Saved Replies?

a. Markdown
b. Comma-Separated Values (CSV)
c. JSON
d. Plain text

A

a. Markdown

34
Q
A