GitHub MCQs with answers Page - 2

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

S

Satya • 3.38K Points
Extraordinary

Q. What is the default branch name on GitHub?

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

S

Satya • 3.38K Points
Extraordinary

Q. Which symbol is used to mention users on GitHub?

  • (A) #
  • (B) @
  • (C) $
  • (D) &

S

Satya • 3.38K Points
Extraordinary

Q. What is an issue in GitHub?

  • (A) A critical error in the code
  • (B) A feature or bug report tracked by the repository
  • (C) A branch of the repository
  • (D) A Git configuration

S

Satya • 3.38K Points
Extraordinary

Q. How do you contribute to an open-source project on GitHub?

  • (A) Clone the project and make local changes
  • (B) Fork the project, make changes, and create a pull request
  • (C) Create a GitHub Gist
  • (D) Send an email to the repo owner

S

Satya • 3.38K Points
Extraordinary

Q. What does 'git push' do?

  • (A) Downloads code from GitHub
  • (B) Creates a new branch
  • (C) Uploads local changes to GitHub
  • (D) Deletes a repository

S

Satya • 3.38K Points
Extraordinary

Q. What is GitHub Pages used for?

  • (A) Creating private repositories
  • (B) Managing user access
  • (C) Hosting static websites directly from a repository
  • (D) Viewing commit history

S

Satya • 3.38K Points
Extraordinary

Q. Which of the following is a valid way to create a new repository on GitHub?

  • (A) Using the GitHub mobile app
  • (B) Sending an email to GitHub support
  • (C) Using the GitHub website or API
  • (D) Typing 'new repo' in terminal

S

Satya • 3.38K Points
Extraordinary

Q. What does 'git pull' do?

  • (A) Uploads your changes to GitHub
  • (B) Deletes your branch
  • (C) Fetches and integrates changes from GitHub into your local repo
  • (D) Pushes commits to the staging area

S

Satya • 3.38K Points
Extraordinary

Q. How can you see the history of changes in a GitHub repository?

  • (A) View the network graph
  • (B) Use the commit history feature
  • (C) Open the pull request tab
  • (D) Open the README file

S

Satya • 3.38K Points
Extraordinary

Q. Which of these is used to write documentation on GitHub?

  • (A) Markdown
  • (B) HTML only
  • (C) LaTeX
  • (D) Plain text

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