ModuleWiseQues
ModuleWiseQues
1. What is Git?
a) A cloud storage service
b) A programming language
c) A distributed version control system
d) A database tool
2. Which command initializes a Git repository?
a) git create
b) git start
c) git init
d) git begin
3. What does git status do?
a) Shows the current state of the working directory and staging
area
b) Commits changes to the repository
c) Switches branches
d) Resets the repository
4. How do you check the configured username in Git?
a) git show user
b) git name --global
c) git get user
d) git config user.name
5. Which file is used to ignore specific files from being tracked?
a) ignore_list.txt
b) .gitignore
c) skip_files.txt
d) exclusion_list.txt
6. What is the default branch created when initializing a repository
in newer versions of Git?
a) main
b) trunk
c) main
d) default
7. Which command clones a repository?
a) git duplicate
b) git clone <repository_url>
c) git copy <repository_url>
d) git fetch
8. What is the purpose of git config --global user.email?
a) Sets the global email for commits
b) Adds an email signature to commits
c) Sends commit notifications
d) Creates an email alias
9. Which of the following is NOT a version control system?
a) Git
b) Dropbox
c) Mercurial
d) Subversion
10.Which Git command lists all the configured remotes?
a) git show remotes
b) git check remotes
c) git remote -v
d) git fetch remotes
Module 2: Git Workflow & Commits
11.Which command shows changes made between two commits?
a) git diff
b) git compare
c) git track
d) git show
12.How do you remove untracked files from the working directory?
a) git clean -f
b) git delete --all
c) git reset --hard
d) git remove