GitHub MCQs with answers Page - 12

Here, you will find a collection of MCQ questions on GitHub. Go through these questions to enhance your preparation for upcoming examinations and interviews.

To check the correct answer, simply click the View Answer button provided for each question.

Have your own questions to contribute? Click the button below to share your MCQs with others!

+ Add Question

A

Admin • 831.35K Points
Coach

Q. What is the name of the default branch created in new GitHub repositories (as of recent updates)?

  • (A) master
  • (B) trunk
  • (C) main
  • (D) default

A

Admin • 831.35K Points
Coach

Q. Which GitHub feature allows you to set tasks in the form of checklists?

  • (A) Milestones
  • (B) Issues
  • (C) Projects
  • (D) Gists

A

Admin • 831.35K Points
Coach

Q. What does 'git revert' do?

  • (A) Deletes a file
  • (B) Changes a commit message
  • (C) Creates a new commit that undoes a previous commit
  • (D) Switches branches

A

Admin • 831.35K Points
Coach

Q. Which command is used to switch between branches in Git?

  • (A) git move
  • (B) git checkout
  • (C) git open
  • (D) git switch-to

A

Admin • 831.35K Points
Coach

Q. How do you list all remote URLs associated with a Git repository?

  • (A) git url list
  • (B) git show-remote
  • (C) git remote -v
  • (D) git config --remotes

A

Admin • 831.35K Points
Coach

Q. What is the purpose of GitHub Actions 'workflow_dispatch' trigger?

  • (A) It triggers the workflow on push
  • (B) It triggers the workflow on pull request
  • (C) It allows manual triggering of the workflow
  • (D) It cancels existing workflows

A

Admin • 831.35K Points
Coach

Q. Which command is used to view remote branches in Git?

  • (A) git branch -a
  • (B) git show-remote
  • (C) git list remotes
  • (D) git see all

A

Admin • 831.35K Points
Coach

Q. What is the default file used to license a GitHub repository?

  • (A) LICENSE.txt
  • (B) license.json
  • (C) README.md
  • (D) AUTHORS.md

A

Admin • 831.35K Points
Coach

Q. What is a GitHub release?

  • (A) A deleted tag
  • (B) A file permission change
  • (C) A packaged version of your code for distribution
  • (D) A project board

A

Admin • 831.35K Points
Coach

Q. Which file extension is used for GitHub issue and PR templates?

  • (A) .html
  • (B) .yaml
  • (C) .md
  • (D) .txt

Add MCQ in this Category

If you want to share an MCQ question in this category, it's a great idea! It will be helpful for many other students using this website.

Share Your MCQ