Unit 5: Version Control - Subjective Questions

CSE111 — Orientation To Computing • Practice Questions with Detailed Answers

20 questions

1

Define version control and explain why it is important in software development.

2

What is Git? Describe its main features.

3

What is GitHub? Explain how it is related to Git.

4

Distinguish between Git and GitHub.

5

Describe the steps required to install Git and verify that the installation was successful.

6

Explain how to perform the initial Git configuration after installing Git. Why is this configuration necessary?

7

Describe the complete process of creating a GitHub account and profile, including important security and profile settings.

8

What is a Git repository? Differentiate between a local repository and a remote repository.

9

Describe how to create a new local Git repository using the command line.

10

Explain the difference between git init and git clone. Give a suitable use case for each command.

11

Describe how to add a new file to a Git repository and include it in the next commit.

12

Explain the three main areas of Git: the working directory, staging area, and repository.

13

What is a commit in Git? Describe the information stored in a commit and the qualities of a good commit message.

14

Explain the complete workflow for creating and inspecting a commit after modifying several project files.

15

Compare git add, git commit, and git push. Explain the role of each command in a Git and GitHub workflow.

16

What is a branch in Git? Explain the advantages of using branches.

17

Describe how to create, switch to, inspect, and delete a branch in Git.

18

Explain how to create a new profile branch, add a profile file, commit the change, and merge it into the main branch.

19

Describe how to connect a local Git repository to a new GitHub repository and publish its commits.

20

Explain the purpose of git status, git log, git diff, and git branch when managing a local repository.