🎧 New: AI-Generated Podcasts Turn your study notes into engaging audio conversations. Learn more

GitHub Foundations Practice Exam.pdf

Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...

Full Transcript

GitHub Foundations Practice Test Hugo Estrada February 18, 2024 1. What project management feature in GitHub can simply track the amount of open and closed tasks for a specific goal? a. GitHub Wiki...

GitHub Foundations Practice Test Hugo Estrada February 18, 2024 1. 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 2. 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. 3. 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. 4. 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 5. 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. 6. 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. 7. 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. 8. 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 9. Which type of GitHub repository is unique to GitHub Enterprise accounts? a. Internal Repositories b. Forked Repositories c. Private Repositories d. Public Repositories 10. 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 11. 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 12. What best describes the differences between GitHub.com, GitHub Desktop, and GitHub Mobile? a. b. c. d. 13. Which GitHub personal plan offers Dependabot alerts? (Choose 2) a. GitHub Enterprise b. GitHub Free c. GitHub Pro d. GitHub Team 14. 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. 15. 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. 16. 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 17. 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 18. 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. 19. 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 20. 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. 21. 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 22. 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 23. Which GitHub service allows you to access GitHub on the go? a. GitHub Mobile b. GitHub Connect c. GitHub Actions d. GitHub Desktop 24. 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. 25. 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 26. Which GitHub cloning method requires to use a Personal Access Token? (Chose 2) a. GitHub CLI b. ZIP c. HTTPS d. SSH 27. 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 28. 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. 29. 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. 30. 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. 31. 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. 32. 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. 33. 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 34. 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 35. 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. 36. 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. 37. 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 38. Which GitHub cloning method requires the use of a Personal Access Token? a. ZIP b. GitHub CLI c. HTTPS d. SSH 39. Which type of GitHub repository is unique to GitHub Enterprise accounts? a. schedule b. release c. commit_message_change d. fork e. issue_comment 40. Which of the following is NOT a GitHub Actions trigger? a. page_build b. pull_request c. push d. code_review 41. 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. 42. 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 43. 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 44. 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. 45. 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 46. 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 47. 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. 48. 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 49. 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. 50. 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. 51. 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. 52. What are the layout configurations available in GitHub Projects? a. Table b. Calendar c. Roadmap d. Board e. Timeline 53. 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. 54. What keyboard hotkey will instantly open up GitHub.dev Editor in a GitHub Repo? a. , (comma) b. – (hypen) c. / (forward slash) d.. (period) 55. 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. 56. 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. 57. 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. 58. 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. 59. 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 60. What are three ways you can clone a repo in Github? a. SSH b. HTTPS c. email d. FTP e. GitHub CLI f. ZIP 61. 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. 62. 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. 63. 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 64. Which configuration layout options for GitHub Project is only for Roadmaps? a. Dates b. Column c. Group d. Zoom Level 65. 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) 66. Which file format are used for Saved Replies? a. Markdown b. Comma-Separated Values (CSV) c. JSON d. Plain text 67. Which security feature of GitHub can you use to prevent pushing secrets to your repo? a. Secret Scanning b. Dependency Graph c. CodeQL Analysis 68. 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. 69. 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. 70. 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. 71. 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. 72. 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. 73. 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. 74. 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. 75. 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. 76. 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. 77. 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. 78. 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. 79. 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. 80. Which is NOT a role for GitHub Organization collaborators? a. Triage b. Collaborator c. Admin d. Write 81. 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. 82. 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. 83. 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. 84. 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 85. 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. 86. 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. 87. 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. 88. 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 89. What best describes GitHub's open-source mission? a. To provide a platform exclusively for private, commercial software development projects. b. To focus solely on large-scale enterprise software development, rather than individual or community-led projects. c. To prioritize proprietary software development over open-source initiatives. d. To foster innovation and collaboration in software development through the support of open-source projects. 90. 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. 91. 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. 92. 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. 93. 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. 94. 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. 95. 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. 96. 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. 97. In the GitHub Marketplace what are the type of possible plans (Choose 3). a. Open-Source b. Enterprise c. Free d. Paid 98. 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 99. 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. 100. 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.

Use Quizgecko on...
Browser
Browser