From 3a2e0b112a9bc95dfc86afebd32bc4dbf9215721 Mon Sep 17 00:00:00 2001 From: Jessica Wilkins <67210629+jdwilkin4@users.noreply.github.com> Date: Thu, 18 Sep 2025 09:20:54 -0700 Subject: [PATCH] chore(curriculum): updating git and github quiz questions (#62191) Co-authored-by: Sem Bauke Co-authored-by: Zaira <33151350+zairahira@users.noreply.github.com> Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com> --- .../quiz-git/66f1b06a5a5d10cc100af620.md | 222 +++++++++--------- 1 file changed, 111 insertions(+), 111 deletions(-) diff --git a/curriculum/challenges/english/blocks/quiz-git/66f1b06a5a5d10cc100af620.md b/curriculum/challenges/english/blocks/quiz-git/66f1b06a5a5d10cc100af620.md index cca45d2d7b3..3f9a1e101b9 100644 --- a/curriculum/challenges/english/blocks/quiz-git/66f1b06a5a5d10cc100af620.md +++ b/curriculum/challenges/english/blocks/quiz-git/66f1b06a5a5d10cc100af620.md @@ -17,213 +17,213 @@ To pass the quiz, you must correctly answer at least 18 of the 20 questions belo #### --text-- -Who can use `git`? +What is `git`? #### --distractors-- -Developers +A popular type of accessibility tool. --- -Administrators +A commonly used linter in software projects. --- -Subscribers/Premium Users. +A special type of JavaScript library. #### --answer-- -Everyone +A version control system allows you to track and manage changes in your project. ### --question-- #### --text-- -Why is using version control software a best practice for high performing software and DevOps teams? +Which of the following is a popular cloud based version control provider? #### --distractors-- -A complete long-term change history of every file. +Spring Boot --- -Branching and merging. +Laravel --- -Traceability +Remix #### --answer-- -All of the options. +GitHub ### --question-- #### --text-- -What are the main advantages of using sites like GitHub and GitLab? +What does the `git config` command do? #### --distractors-- -They allow online shopping. +Sets configuration variables for rebasing your changes. --- -They are a social media platform for posting photos. +Sets configurations for managing only remote repositories on GitLab. --- -They only act as cloud storage for individual files. +Sets configurations for resolving merge conflicts. #### --answer-- -They provide version control and collaboration for code development. +Sets configuration variables that are responsible for how Git operates on your machine. ### --question-- #### --text-- -Which command would not display the current `git` version? +Which command shows the currently installed Git version on your machine? #### --distractors-- +`git --versions` + +--- + +`git --setVersion` + +--- + +`git --set` + +#### --answer-- + `git --version` ---- +### --question-- -`git -v` +#### --text-- + +Which of the following is a tool used to do GitHub-specific tasks without leaving the command line? + +#### --distractors-- + +GitHub CI/CD --- -`git version` +GitHub Actions + +--- + +GitHub Pages #### --answer-- -`git v` +GitHub CLI ### --question-- #### --text-- -Which statement is true regarding encryption? +Which of the following is a feature that lets you automate workflows directly in your GitHub repository including building, testing, and deploying your code? #### --distractors-- -SSH keys cannot be used for encrypting data and communication. +GitHub Pipelines --- -Neither GPG keys nor SSH keys can be used for encrypting data and communication. +GitHub Cloud --- -GPG keys can only be used for encrypting images and not for any other type of data. +GitHub API #### --answer-- -GPG keys can be used for encrypting data and communication. +GitHub Actions ### --question-- #### --text-- -Who can you share a repository with? +Which of the following commands will initialize an empty `git` repository? #### --distractors-- -Friends/classmates +`git status` --- -Co-workers +`git set` --- -Strangers +`git log` #### --answer-- -All of the options. +`git init` ### --question-- #### --text-- -What is the advantage of a `git` repository? +What does the `git push` command do? #### --distractors-- -When we work on an open-source repository, it becomes easy to detract from the project. +This command is used to push up the entire Git history to GitHub. --- -By using GitHub or any other repository management tool, it's easy to develop robust ignorance of the project. +This command is used to push up changes from the remote repository to your local machine. --- -Markdown allows you to use a simple text editor to write unformatted text documents. +This command is used to push up your code to GitHub and automatically merge it into the `main` branch. #### --answer-- -The repositories that you create on GitHub or Bitbucket can also integrate with different CI/CD tools like Jenkins. +This command is used to push your local commits to a remote repository. ### --question-- #### --text-- -Which `push` command is correct? +Which of the following commands is used to clone a repository? #### --distractors-- -`git push BRANCH-NAME` +`git cloning` --- -`git push -r REMOTE-NAME BRANCH-NAME` +`git cloned` --- -`git push REMOTE-NAME BRANCH-NAME --notforce` +`git clones` #### --answer-- -`git push REMOTE-NAME BRANCH-NAME` +`git clone` ### --question-- #### --text-- -What is the correct way to contribute to other people's repositories? +Which of the following commands is used to list all prior commits with helpful information like the author, date of commit, commit message and commit hash? #### --distractors-- -`git add`, `git commit`, `git clone`, `git push` +`git rebase` --- -`git clone`, `git commit`, `git add`, `git push` - ---- - -None of the options. - -#### --answer-- - -`git clone`, `git add`, `git commit`, `git push` - -### --question-- - -#### --text-- - -`git checkout` works hand-in-hand with? - -#### --distractors-- - -`git pull` - ---- - -`git push` +`git status` --- @@ -231,139 +231,139 @@ None of the options. #### --answer-- -`git branch` +`git log` ### --question-- #### --text-- -You created a branch named `"alex"` for his work. Which command should you run to switch to that branch? +Which of the following commands will list all remote repositories associated with your local Git repository? #### --distractors-- -`git checkout` +`git rebase -v` --- -`git checkout alex branch` +`git pull -v` --- -`git checkout -- alex` +`git checkout -v` #### --answer-- -`git checkout alex` +`git remote -v` ### --question-- #### --text-- -Which of the following is true? +What does the `git reset` command do? #### --distractors-- -Developers must wait for the maintainer to approve their changes. +This command allows you to reset all attempts at resolving merge conflicts. --- -Both statements are true. +This command allows you to reset all attempts at a `git rebase`. --- -Both statements are false. +This command allows you to reset all commits for the repository. #### --answer-- -Team members can work simultaneously without impacting each other's contributions. +This command allows you to reset the current state of a branch. ### --question-- #### --text-- -Where can a contributor make a pull request? +What is a pull request? #### --distractors-- -GitHub.com +A request to combine a sequence of commits from one branch onto another. --- -GitHub Codespaces. +A request to resolve all merge conflicts. --- -GitHub Mobile. +A request to remove all commits from a repository. #### --answer-- -All of the options. +A request to pull changes in from your branch into the target branch. ### --question-- #### --text-- -Why are code reviews important? +What does the `main` branch represent in a project? #### --distractors-- -Promoting secrecy among teams. +It represents the primary documentation branch for an application. --- -Keeping innovation private. +It represents the hotfix branch for an application. --- -Decreasing effectiveness. +It represents the main feature branch for an application. #### --answer-- -Coaching new developers. +It represents the primary or production branch for an application. ### --question-- #### --text-- -What is the file structure required for a GitHub Pages site? +What is GitHub Pages best used for? #### --distractors-- -All files must be in a `src` folder. +It is best deploying C# and Unity games. --- -Only CSS files are allowed in the root. +It is best for deploying Python-only applications. --- -JavaScript files cannot be included. +It is best for deploying backend heavy websites. #### --answer-- -HTML files should be in the root directory. +It is best for deploying static sites. ### --question-- #### --text-- -How do you troubleshoot a 404 error on your GitHub Pages site? +Which of the following commands is used to show the current state of your working directory? #### --distractors-- -Clear your browser cache. +`git show` --- -Check if the correct branch is published. +`git check` --- -Ensure the file names match the links exactly. +`git update` #### --answer-- -All of the options. +`git status` ### --question-- @@ -391,65 +391,65 @@ What command do you use to fetch changes from the remote repository? #### --text-- -What should you add to your `.gitignore` to ignore all log files in your repository? +What is a `.gitignore` file? #### --distractors-- -`log/*` +A special type of file used to show your entire `git` history. --- -`logs/*.log` +A special type of file used to show diffs in your changes. --- -`**/*.log` +A special type of file used to resolve conflicts for a project. #### --answer-- -`*.log` +A special type of file used to tell `git` not to track certain files and folders in a project. ### --question-- #### --text-- -What is a common branching strategy for managing features in `git`? +Which of the following commands is used to list all of your local branches? #### --distractors-- -Monolithic branching: A single central branch for all development work. +`git show` --- -Single branching: A method where only one branch is used for all changes. +`git log` --- -Nested branching: A branching strategy that creates branches within branches. +`git list` #### --answer-- -Feature branching: A strategy where separate branches are created for each feature development. +`git branch` ### --question-- #### --text-- -What happens if you encounter a conflict during a rebase? +Which of the following commands is used to move or combine a sequence of commits from one branch onto another? #### --distractors-- -The rebase automatically completes. +`git remote` --- -The changes are lost. +`git merge` --- -The rebase fails and cannot be retried. +`git switch` #### --answer-- -You must resolve the conflict before continuing the rebase. +`git rebase`