Topics
- Introduction to Git and GitHub
- Working with GitHub Repositories
- Collaboration Features
- Modern Development
- Project Management
- Privacy, Security, and Administration
- Benefits of the GitHub Community
Options:
- A. Git is a command-line tool for tracking file changes, while GitHub is a platform for collaborating on Git repositories.
- B. Git and GitHub are different names for the same tool that is used for version control and collaboration.
- C. Git is a centralized version control system, while GitHub is a cloud-based collaboration platform.
- D. Git is a cloud-based hosting service, while GitHub is a distributed version control system.
Answer: A
Options:
- A. A separate repository for testing before pushing changes to the main repository.
- B. A branch in the repository where changes are pushed for collaboration.
- C. A local copy of the repository stored on a user's machine.
- D. A reference to a repository that is hosted in a separate location.
Answer: D
Options:
- A. To financially support the people and organizations who maintain open-source projects.
- B. To promote GitHub repositories in the marketplace.
- C. To match contributions through GitHub's funding program.
- D. To create a reward system for contributors based on stars.
Answer: A
Options:
- A. To provide a version control system designed for small projects, offering simple tools for organizing files on your laptop.
- B. To provide a folder that stores project files, including documentation, on your local machine.
- C. To provide a cloud-based hosting service for project documentation, providing a secure and centralized location for file storage.
- D. To provide a collaborative space where developers can share and manage code files, track changes, and store revision history.
Answer: D
Question 2: Which of the following is the most efficient way to create a public gist based on another user's gist?
Options:
- A. Request to be added to the existing gist.
- B. Create a new gist and copy the content from the existing gist.
- C. Clone the gist.
- D. Fork the gist.
Answer: D
Options:
- A. Anyone who has commented on the issue or pull request.
- B. Anyone who has an enterprise GitHub account.
- C. Anyone who has a personal GitHub account.
- D. Anyone with write permissions to the repository.
Answer: D
Options:
- A. To provide an easy-to-fill-out form for creating new pull requests.
- B. To automatically label or assign newly created pull requests.
- C. To automatically trigger GitHub Actions workflows.
- D. To easily coerce existing pull requests into a standard format.
Answer: A, B
Options:
- A. Store your coding project(s) in GitHub.
- B. Install the Copilot App on your GitHub organization, account, or server.
- C. Install the Copilot extension for your supported IDE.
- D. Sign and submit the legal disclaimer.
- E. Sign up for a Copilot edition and enable it for your account.
Answer: C, E
Question 2: What is the primary goal of GitHub in terms of integrating tools and providing an ecosystem?
Options:
- A. To develop proprietary tools and provide opinionated integration options.
- B. To offer a diverse range of tools for specific development needs.
- C. To create a unified, standardized ecosystem for all developers.
- D. To bring developers' preferred tools together in one place.
Answer: D
Options:
- A. GitHub Projects has multiple layout views.
- B. GitHub Projects has Insights.
- C. GitHub Projects are Copilot enabled.
- D. GitHub Projects can be connected to third-party tools.
Answer: A, B
Options:
- A. "Pull request merged"
- B. "Pull request opened"
- C. "Auto-archive items"
- D. "Label added to issue"
- E. "Item closed"
Answer: A, C, E
Options:
- A. Repository visibility change.
- B. Repository deletion and transfer.
- C. Repository secrets.
- D. Repository naming convention.
Answer: A, B
Options:
- A. Organization base permissions cannot be applied.
- B. Users cannot create public repositories.
- C. Each GitHub team must be linked to an identity provider group.
- D. Custom repository roles are not available.
Answer: B
Options:
- A. Total number of repositories owned.
- B. Number of stars received on repositories.
- C. Special recognition for significant contributions and milestones.
- D. Virtual trophies awarded for completing coding challenges.
Answer: C
Options:
- A. Free hosting for all repositories.
- B. Building a professional portfolio and learning from others.
- C. Receiving financial support through GitHub Sponsors.
- D. Access to premium features on GitHub.
Answer: B
Practice more: link
Answer: fix, resolves, closed
Answer: code review and discussion through issues and pull requests
Answer: anyone who has commented on the issue or pull request, anyone with write permissions to the repository
Answer: Bug report, Feature request, Custom template
Answer: Create, Delete, Rebuild
Answer: "Pull request opened," "Auto-archive items," "Pull request merged"
Answer: Anyone with the URL for the gist can view the gist.
Answer: git checkout -b newBranchName
Answer: Linux, Windows, and macOS
Answer: a list of the open and closed issues associated with the milestone, each milestone's completion percentage
Answer: local file manipulation and offline work
Answer: a snapshot of the entire repository at a specific point in time, capturing the state of all files in the project
13. While maintaining the gist history, which of the following is the most efficient way to create a public gist based on another user's gist?
Answer: Fork the gist
Answer: historical charts, current charts
Answer: mentions:
Answer: default branch
Answer: Branching creates an isolated environment to try new ideas and make changes without affecting other branches.
Answer: It provides centralized control and streamlined management of user accounts through their identity provider (IdP).
Answer: .github/ISSUE_TEMPLATE
20. As a user, what feature can you use to add an issue to the top of the Issues page for easier visibility?
Answer: Pin the issue
Answer: Require approval before merging changes
Answer: Add topics to classify the repository, Create a README file describing the repository
Answer: Git
Answer: They cannot be merged, and code owners are not automatically requested to review.
25. Without using advanced search syntax, what are some of the available default filters when searching through issues?
Answer: everything assigned to you, everything you have commented on
26. What GitHub feature allows the developer community to financially support the people and organizations who maintain the open source projects they depend on?
Answer: GitHub Sponsors
Answer: Users cannot create public repositories.
Answer: the same repository as your workflow file, any public repository, GitHub Packages
Answer: Pin the discussion
Answer: pull requests created, commits made
Answer: README, .gitignore, and LICENSE
Answer: Markdown
Answer: Install the Copilot extension for your supported IDE, Sign up for a Copilot edition and enable it for your account
Answer: after setting up a sponsored developer profile
35. Copilot for Individuals offers which of the following features that are not offered by Copilot for Business?
Answer: support for personal GitHub accounts, offers multi-line function suggestions
Answer: Codespaces provides terminal access.
Answer: Browse to the repository in GitHub.com and press the period "." key, Open https://github.com/codespaces in the browser, select the repository, and then select the existing Codespace
Answer: settings sync, dotfiles
Answer: to bring developers' preferred tools together in one place
Answer: root
Answer: Q&A
Answer: to provide an easy-to-fill-out form for creating new pull requests, to automatically label or assign newly created pull requests
43. The difference between GitHub Enterprise Server (GHES) and GitHub Enterprise Cloud is that GHES:
Answer: is a self-hosted solution that allows organizations to have full control over their infrastructure
Answer: The feature branch is merged
Answer: ability to create and customize multiple views
46. Which of the following two-factor authentication (2FA) methods can you use to secure a GitHub account?
Answer: authenticator app, security keys, GitHub mobile
Answer: Use github.dev from a web browser
Answer: public GitHub repositories
Answer: Git is a command-line tool for tracking file changes, while GitHub is a platform for collaborating on Git repositories
50. An employee needs to find all issues within organization "Avocado" containing text "404 error" and a "guacamole" label. Which of the following steps would be best to search for these results?
Answer: Enter query org:Avocado is:issue label:guacamole "404 error" in the search bar
Answer: public, internal, and private
Answer: repository visibility change, repository deletion and transfer
Answer: GitHub Projects has multiple layout views, GitHub Projects has Insights
Answer: different
Answer: open source
Answer: Markdown
Answer: Team visibility can be visible or secret, Teams can be nested
Answer: a reference to a repository that is hosted in a separate location
59. An organization in a GitHub enterprise has a base permission of "No permissions." Which users in this enterprise will be able to see all internal repositories within this organization?
Answer: members in the same organization, members in another organization in that enterprise
Answer: in the right sidebar of the pull request, under "Development"
Answer: Secret Scanning, Code Scanning, Dependabot
Answer: Organization base permissions do not apply to outside collaborators
Answer: CI/CD, jobs, steps
64. Which of the following statements most accurately describes who can access a private repository Wiki?
Answer: Wikis can be viewed by the same people who have Read access to the repository
Answer: to provide a collaborative space where developers can share and manage code files, track changes, and store revision history
Answer: Issues are used to track ideas, document feedback, and share information; whereas, pull requests are used to collaborate around proposed changes made to a branch
Answer: special recognition for significant contributions and milestones
Answer: to notify about vulnerabilities in dependencies
Answer: Through the repository settings in the Branches section
Answer: To mark specific points in history as important
Answer: Cloud-hosted development environments
Answer: A CI/CD tool to automate workflows
Answer: Change its visibility in the repository settings
Answer: Organizing and tracking project tasks
Answer: By using the "@" symbol followed by their username
Answer: Groups of issues or pull requests
Answer: Include keywords like "fixes #issue_number" in the commit message
Answer: A copy of a repository under your account
Answer: By submitting a pull request to the project
Answer: A way to fund developers or projects
Answer: A feature for hosting websites directly from a repository
Answer: Through the repository settings under "Manage Access"
Answer: To enable community conversations around projects
Answer: A commit records changes locally, while a pull request proposes changes for merging
Answer: Through the repository settings under "Pages"
Answer: A command-line interface for GitHub
Answer: To categorize issues and pull requests
Answer: By visiting your GitHub profile
Answer: Encrypted environment variables
Answer: By using the git revert
command
Answer: To specify files and directories to be ignored by Git
Answer: Use the command git branch branch_name
Answer: Downloads changes from the remote repository without merging them
Answer: git pull
fetches and merges changes, while git fetch
only downloads changes
Answer: It occurs when changes from different branches conflict during a merge
Answer: Manually edit the conflicting files, then commit the resolved changes
Answer: To temporarily save changes without committing them
Answer: Use git stash apply
or git stash pop
Answer: git reset
undoes commits in history, while git revert
creates a new commit to undo changes
Answer: Creates a copy of a repository on your local machine
Answer: To standardize information in pull requests
Answer: Main (previously Master)
Answer: To provide analytics for repositories
Answer: Use the "Assignees" section in the issue sidebar
Answer: To enforce standards like required reviews before merging
Answer: Click on the "New" button in the Repositories tab
Answer: To track activity and updates on repositories
Answer: Through the repository settings
Answer: Automated processes created with GitHub Actions
Answer: A repository embedded within another repository
Answer: To authenticate securely with GitHub
Answer: To share code snippets or small projects
Answer: Use the command git reset HEAD~
Answer: A platform to find tools and integrations for GitHub
Answer: Shows the commit history
Answer: Through the repository settings under "Webhooks"
Answer: To start a conversation and seek feedback before finalizing changes
Answer: To apply specific commits from one branch to another
Answer: The current state of the working directory and staging area
Answer: Use the command git branch -m old_name new_name
Answer: Shows who made changes to each line of a file
Answer: To facilitate community-driven conversations around a repository
Answer: Use the command git branch -d branch_name
Answer: A personal copy of someone else’s repository
Answer: Click "New pull request" in the repository
Answer: Switches to a different branch or commit
Answer: Fork the repository, make changes, and create a pull request
Answer: To configure attributes for files in a repository
Answer: A set of guidelines for participating in a repository
Answer: A feature that allows financial support for developers and projects
Answer: Configures Git settings like username and email
Answer: To mark specific commits, such as for releases
Answer: A way to group issues and pull requests for a project goal
Answer: Delete the file locally, commit, and push the changes
Answer: To create a compressed archive of a repository
Answer: To specify who is automatically requested for code reviews
Answer: A way to send real-time updates from GitHub to another service
Answer: Use the command git init
Answer: git add
stages changes, and git commit
saves them in the history
Answer: To host websites directly from a GitHub repository
Answer: Use git diff commit1 commit2
Answer: A packaged version of code for distribution
Answer: Use the command git mv old_name new_name
Answer: To integrate changes by moving a branch onto another
Answer: No license unless explicitly added
Answer: To store community health files like issue templates
Answer: Use the command git checkout -- file_name
Answer: To remove untracked files from the working directory
Answer: Uploads local changes to a remote repository
Answer: Fetches and merges changes from a remote repository