You have a request ? Contact Us Join Us

Version Control | Coursera Quiz Answers

Coursera: Meta iOS Developer Professional Certificate. Module Quiz: Software collaboration, Command Line, Working with Git, End-of-course assessment
Coursera: Version Control
Version Control | Coursera Meta

Discover how contemporary software developers from around the globe work together seamlessly without interfering with each other's code. This involves exploring various version control systems and establishing an efficient software development workflow. Additionally, you will learn some of the most frequently used Linux commands for file management on your hard drive, enabling you to create robust workflows that automate tasks and conserve time and effort. Lastly, you will understand how Git is utilized in software development projects for team file management and will learn to create a repository that effectively handles code revisions.


Notice!
Always refer to the module on your course for the most accurate and up-to-date information.

Attention!
If you have any questions that are not covered in this post, please feel free to leave them in the comments section below. Thank you for your engagement.

Module Quiz: Software collaboration

1. What is Revision History in Version Control?
  • A record of all users in a project
  • A record of all changes in a project
  • A record of all bugs in a project
2. When using a Distributed Version Control System, a connection to a central server is always required to perform an action.
  • True
  • False
3. A Version Control system allows you to roll back your files back to a specific point in time.
  • True
  • False
4. When using a Centralised Version Control system, for other developers to see your changes, you must commit and push them to a central server.
  • True
  • False
5. Version Control is inefficient when multiple developers work on one project.
  • True
  • False
6. _______ automatically packages an application and prepares it for deployment.
  • Continuous Deployment
  • Continuous Integration
  • Continuous Delivery
7. Which of the following are distributed Version Control Systems? Select all that apply.
  • Concurrent Versions System
  • Subversion
  • Mercurial
  • Git
8. What are the main benefits of having a staging environment? Select all that apply.
  • It provides a safe place to test and verify changes prior to being deployed to a live production environment.
  • A staging environment mimics the production environment which allows for more accurate testing to find any possible issues.
  • It allows developers to add new features directly to production.
  • It can allow teams to demo or showcase new features in a controlled environment. 

Module Quiz: Command Line

1. What command do you use to print the current working directory?
  • cd
  • cat
  • pwd
2. What command do you use to search text content?
  • ls
  • grep
  • mkdir
3. Which of the following are standard input/output (I/O) streams? Select all that apply.
  • stdin
  • stderr
  • stdout
4. Pipes are used to pass the output of one command as input to another command.
  • True
  • False
5. What command do you use to list files and directories?
  • ls
  • cd
  • mkdir
6. The mv command is used to create directories.
  • False
  • True
7. Flags can be used to change the behaviour of a command.
  • True
  • False
8. Which of the following are benefits of using the command line? Select all that apply.
  • Automatically correct mistakes in commands
  • Improved performance versus Graphical User Interface
  • Automating tasks
  • Interacting with cloud provider platforms in a consistent way 

Module Quiz: Working with Git

1. The git add command will add files and changes to the staged area.
  • True
  • False
2. What git command will show you the current state of the local working directory?
  • git status
  • git clone
  • git pull
3. What command do you use to upload changes to a remote repository?
  • git push
  • git clone
  • git commit
4. The git diff command will show the revision history of a repository.
  • True
  • False
5. Which command is used to download the latest changes from a remote repository?
  • git pull
  • git push
6. You want to create a new branch named “feature”. Which of the following commands can you use?
  • git clone feature
  • git checkout -b feature
  • git branch feature
7. You’re working on a clothing store application and run the git diff command on your local repository. It outputs the lines below. Which clothing item was removed as part of these changes?
@@ -4,8 +4,8 @@
* Hat
-* Shoes
+* Dress
* Watch
  • Hat
  • Shoes
  • Dress
  • Watch
8. What git command shows who made changes to each line in a specific file?
  • git clone
  • git diff
  • git log
  • git blame 

End-of-course graded assessment

1. Which of the following is a Distributed Version Control System?
  • Git
  • Subversion
  • Concurrent Versions System
2. In Bash, which of the following commands will change the working directory?
  • rm
  • mkdir
  • cd
3. In Bash, which of the following commands will print the current working directory?
  • touch
  • pwd
  • mv
4. Which of the following can be used to search for text in a file?
  • Grep
  • Pipe
  • Uniq
5. Which Git command is used to download the latest changes to a local repository?
  • git pull
  • git push
  • git clone
6. True or false. Changes must be added to the Git staging area before they are committed.
  • true
  • false
7. Which of the following Git commands can be used to create a local branch named test? Select all that apply.
  • git branch test
  • git checkout -b test
  • git push origin test
8. Which of the following Git commands can be used to check local changes? Select all that apply.
  • git diff
  • git status
  • git remote -v
9. In the following differential output, which line was deleted?
@@ @@
Red
Blue
-Green
+Yellow
  • Red
  • Blue
  • Green
  • Yellow
10. When cloning a forked repository, what does the origin refer to?
  • The original repository
  • The forked repository
  • The local repository

Related Articles

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.