CLI and Git Workflow

Question 1
Marks : +2 | -2
Pass Ratio : 100%
Which of the following is a revision control system?
Git
NumPy
Slidify
None of the mentioned
Explanation:
Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
Question 2
Marks : +2 | -2
Pass Ratio : 100%
Point out the correct statement.
You don’t need GitHub to use Git
CLI can help you to organize files and folders
Navigation of directory is possible using CLI
None of the mentioned
Explanation:
CLI stands for Command Line Interface.
Question 3
Marks : +2 | -2
Pass Ratio : 100%
Which of the following command allows you to change directory to one level above your parent directory?
cd
cd.
cd..
none of the mentioned
Explanation:
cd stands for change directory.
Question 4
Marks : +2 | -2
Pass Ratio : 100%
Which of the following command updates tracking for files that are modified?
git add .
git add -u
git add -A
none of the mentioned
Explanation:
The git add command adds a change in the working directory to the staging area.
Question 5
Marks : +2 | -2
Pass Ratio : 100%
cp command can be used to copy the content of directories.
True
False
Explanation:
-r flag should be used for copying the content.
Question 6
Marks : +2 | -2
Pass Ratio : 100%
Point out the wrong statement.
You need GitHub to use Git
GitHub allows you to share repositories with others
GitHub allows you to access others repositories
All of the mentioned
Explanation:
GitHub can store a remote copy of your repository.
Question 7
Marks : +2 | -2
Pass Ratio : 100%
Which of the following systems record changes to a file over time?
Record Control
Version Control
Forecast Control
None of the mentioned
Explanation:
Version control is also known as revision control.
Question 8
Marks : +2 | -2
Pass Ratio : 100%
Which of the following command line environment is used for interacting with Git?
GitHub
Git Bash
Git Boot
All of the mentioned
Explanation:
Git for Windows provides a BASH emulation used to run Git from the command line.
Question 9
Marks : +2 | -2
Pass Ratio : 100%
Point out the wrong statement.
Command is the CLI command which does a specific task
There is one and only flag for every command in CLI
Flags are the options given to command for activating particular behaviour
All of the mentioned
Explanation:
Depending on the command, there can be zero or more flags and arguments.
Question 10
Marks : +2 | -2
Pass Ratio : 100%
Which of the following command is used to give a message description?
git command -m
git command -d
git command -message
none of the mentioned
Explanation:
This only updates your local repository.