Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1585cd1

Browse files
contents of graded assessment updated to latest
1 parent 6e19ed8 commit 1585cd1

File tree

1 file changed

+50
-10
lines changed

1 file changed

+50
-10
lines changed

‎c3_introduction_git_github/m3_working_with_remotes/graded_assessment/module_3_graded_assessment.md‎

Lines changed: 50 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,41 +11,81 @@ This graded quiz assesses your understanding of the concepts and procedures cove
1111
<br>
1212

1313
### Question 1
14+
Which of the following files/folders are automatically created after initializing a new Git repository?
1415

15-
16+
- codespace
17+
- git operations
18+
- README.md
19+
- **.git folder**
1620

1721
### Question 2
22+
When creating a new repository on Github, what will selecting _public_ repository access allow others to do?
1823

19-
24+
- Choosing _public_ allows people with a Github account to see and commit to the repository.
25+
- Choosing _public_ allows anyone to see the repository, but only people with a Github account can commit to it.
26+
- Choosing _public_ allows anyone to see and commit to the repository.
27+
- **Choosing _public_ allows anyone to see the repository but you still choose who can commit to it.**
2028

2129
### Question 3
30+
What happens when the `git clone` command is used? Select all that apply.
2231

23-
32+
- **It creates a working copy of the latest version.**
33+
- **It initializes a _.git_ directory.**
34+
- It pulls the latest changes from the remote repository
35+
- **It creates a new directory with the same name as the repository.**
2436

2537
### Question 4
38+
After you set a Github username, any future commits you push to GitHub from the command line will be represented by this name. What happens if you change the name associated with your Git commits?
2639

27-
40+
- This will affect future commits, but you can change the name for past commits using _git config_.
41+
- **This will only affect future commits and won't change the name used for past commits.**
42+
- This will affect future commits and change the name for past commits that you pushed to GitHub from the command line.
43+
- This will affect future commits and automatically change the name for past commits.
2844

2945
### Question 5
46+
What will the command `git status` show?
3047

31-
48+
- The status of files in your staging area but not your working directory
49+
- **The different states of files in your working directory and staging area**
50+
- The status of files in your working directory but not your staging area
51+
- Only the status of files that are staged but not yet committed
3252

3353
### Question 6
54+
Git uses the term "commit". In more common terms, how would you describe a commit?
3455

35-
56+
- Git commit is like adding security to your work.
57+
- Git commit is like getting a sharing link to your work.
58+
- Git commit is like making a copy of your work.
59+
- **Git commit is like saving your work.**
3660

3761
### Question 7
62+
Every commit has an associated commit message from the user describing the changes. What must you include in a commit message?
3863

39-
64+
- The date and time of the commit
65+
- The username and the repository of the commit
66+
- **There are no specific requirements for a commit message.**
67+
- The username and personal access token
4068

4169
### Question 8
70+
After you have committed changes, you can push the committed changes from your local repository to a remote repository on the _main_ branch by using which of the following commands?
4271

43-
72+
- `git add example.py`
73+
- `git add README.md`
74+
- **`git push origin main`**
75+
- `git commit`
4476

4577
### Question 9
78+
Recently, you added files to a remote repository, but not the local repository. Now you want to push changes from the local repository to the remote one. What do you need to do?
4679

47-
80+
- Pull the log files from the remote repository into the local repository, update the local repository log, then push the changes from the local repository to the remote one.
81+
- **Pull the current snapshot/commit in the remote repository to the local repository, update the local repository from the remote repository, then push the changes from the local repository to the remote one.**
82+
- Push the current snapshot/commit in the local repository to the remote repository, update the remote repository from the local repository, then push the changes from the remote repository to the local one.
83+
- Push the log files from the local repository into the remote repository, update the remote repository log, then push the changes from the local repository to the remote one.
4884

4985
### Question 10
86+
What is the git pull command used for?
5087

51-
88+
- To pull the current snapshot/commit in the remote repository to the local repository.
89+
- **To fetch and download content from a remote repository and update the local repository to match that content.**
90+
- To fetch and download content from a local repository and update the remote repository to match that content.
91+
- To clone content from one remote repository and update another remote repository to match that content.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /