Data Science Questions and Answers – CLI and Git Workflow – 1

This set of Data Science Multiple Choice Questions & Answers (MCQs) focuses on “CLI and Git Workflow – 1”.

1. Which of the following CLI command can also be used to rename files?
a) rm
b) mv
c) rm -r
d) none of the mentioned
View Answer

Answer: b
Explanation: mv stands for move.

2. Point out the correct statement.
a) CLI can help you to organize messages
b) CLI can help you to organize files and folders
c) Navigation of directory is possible using CLI
d) None of the mentioned
View Answer

Answer: b
Explanation: CLI stands for Command Line Interface.

3. Which of the following command allows you to change directory to one level above your parent directory?
a) cd
b) cd.
c) cd..
d) none of the mentioned
View Answer

Answer: c
Explanation: cd stands for change directory.

4. Which of the following is not a CLI command?
a) delete
b) rm
c) clear
d) none of the mentioned
View Answer

Answer: a
Explanation: rm can be used to remove files and directories.

advertisement
advertisement

5. Point out the wrong statement.
a) Command is the CLI command which does a specific task
b) There is one and only flag for every command in CLI
c) Flags are the options given to command for activating particular behaviour
d) All of the mentioned
View Answer

Answer: b
Explanation: Depending on the command, there can be zero or more flags and arguments.

6. Which of the following systems record changes to a file over time?
a) Record Control
b) Version Control
c) Forecast Control
d) None of the mentioned
View Answer

Answer: b
Explanation: Version control is also known as revision control.

7. Which of the following is a revision control system?
a) Git
b) NumPy
c) Slidify
d) None of the mentioned
View Answer

Answer: a
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.

8. Which of the following command line environment is used for interacting with Git?
a) GitHub
b) Git Bash
c) Git Boot
d) All of the mentioned
View Answer

Answer: b
Explanation: Git for Windows provides a BASH emulation used to run Git from the command line.

advertisement

9. Which of the following web hosting service use Git control system?
a) GitHub
b) Open Hash
c) Git Bash
d) None of the mentioned
View Answer

Answer: a
Explanation: GitHub is a Web-based Git repository hosting service, which offers all of the distributed revision control and source code management (SCM) functionality of Git.

10. cp command can be used to copy the content of directories.
a) True
b) False
View Answer

Answer: a
Explanation: -r flag should be used for copying the content.

advertisement

Sanfoundry Global Education & Learning Series – Data Science.

Here’s the list of Best Books in Data Science.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.