GitHub MCQs with answers Page - 1

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

R

Ravina • 3.59K Points
Extraordinary

Q. What is GitHub primarily used for?

  • (A) Running servers and hosting websites
  • (B) Writing and executing Python scripts
  • (C) Version control and collaboration on code projects
  • (D) Monitoring system performance

S

Satya • 2.31K Points
Master

Q. Which version control system does GitHub use?

  • (A) Mercurial
  • (B) SVN
  • (C) Git
  • (D) Bazaar

S

Satya • 2.31K Points
Master

Q. What is a repository in GitHub?

  • (A) A file storage system
  • (B) A remote desktop connection
  • (C) A central place where code is stored and managed
  • (D) A database system

S

Satya • 2.31K Points
Master

Q. What is the purpose of a pull request on GitHub?

  • (A) To delete a branch
  • (B) To request access to a repository
  • (C) To suggest changes to a codebase
  • (D) To clone a repository

S

Satya • 2.31K Points
Master

Q. Which command is used to copy a GitHub repository to your local machine?

  • (A) git push
  • (B) git commit
  • (C) git fork
  • (D) git clone

S

Satya • 2.31K Points
Master

Q. What is a branch in GitHub?

  • (A) A duplicate of the GitHub server
  • (B) A pointer to the main page
  • (C) An independent line of development
  • (D) A file containing commit history

S

Satya • 2.31K Points
Master

Q. What is 'README.md' used for in a GitHub repository?

  • (A) To track issues
  • (B) To store configuration settings
  • (C) To provide information about the project
  • (D) To backup source code

S

Satya • 2.31K Points
Master

Q. What does 'forking' a repository on GitHub do?

  • (A) Creates a new branch
  • (B) Copies a repository to your own GitHub account
  • (C) Deletes the original project
  • (D) Uploads changes directly

S

Satya • 2.31K Points
Master

Q. Which file is commonly used to specify ignored files in GitHub?

  • (A) .gitignore
  • (B) .readme
  • (C) .nocommit
  • (D) .config

S

Satya • 2.31K Points
Master

Q. What is the purpose of GitHub Actions?

  • (A) To manage issues
  • (B) To automate workflows like building and testing code
  • (C) To write code online
  • (D) To manage SSH keys

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