You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: c3_introduction_git_github/m3_working_with_remotes/graded_assessment/module_3_graded_assessment.md
+50-10Lines changed: 50 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,41 +11,81 @@ This graded quiz assesses your understanding of the concepts and procedures cove
11
11
<br>
12
12
13
13
### Question 1
14
+
Which of the following files/folders are automatically created after initializing a new Git repository?
14
15
15
-
16
+
- codespace
17
+
- git operations
18
+
- README.md
19
+
-**.git folder**
16
20
17
21
### Question 2
22
+
When creating a new repository on Github, what will selecting _public_ repository access allow others to do?
18
23
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.**
20
28
21
29
### Question 3
30
+
What happens when the `git clone` command is used? Select all that apply.
22
31
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.**
24
36
25
37
### 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?
26
39
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.
28
44
29
45
### Question 5
46
+
What will the command `git status` show?
30
47
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
32
52
33
53
### Question 6
54
+
Git uses the term "commit". In more common terms, how would you describe a commit?
34
55
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.**
36
60
37
61
### Question 7
62
+
Every commit has an associated commit message from the user describing the changes. What must you include in a commit message?
38
63
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
40
68
41
69
### 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?
42
71
43
-
72
+
-`git add example.py`
73
+
-`git add README.md`
74
+
-**`git push origin main`**
75
+
-`git commit`
44
76
45
77
### 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?
46
79
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.
48
84
49
85
### Question 10
86
+
What is the git pull command used for?
50
87
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