M02 SELF-CHECK
Module 2 self-check
Five questions · 4/5 to pass · unlimited retry
Your result
Not attempted
Read the correct answers and explanations
Question 1
The current contents for the next commit.
Correct: staging records content at the time of selection.
- The current contents for the next commit.: Correct: staging records content at the time of selection.
- Every future edit to the same file.: Later edits can remain unstaged and need separate review.
- A remote upload destination.: Remotes configure destinations; staging chooses snapshot contents.
Question 2
The relevant repository states agree under tracking/ignore rules.
Correct: it describes Git state, not engineering correctness.
- All physical behavior is correct.: Repository state does not measure hardware.
- The relevant repository states agree under tracking/ignore rules.: Correct: it describes Git state, not engineering correctness.
- Every test ran successfully.: Test success requires an actual command and result.
Question 3
Terminal working directory and expected root files.
Correct: relative paths follow the terminal location.
- Terminal working directory and expected root files.: Correct: relative paths follow the terminal location.
- Account billing plan.: Billing cannot explain a local relative-path mismatch.
- Warning threshold implementation.: Changing policy does not fix a wrong folder.
Question 4
git restore --staged -- build-note.tmp
Correct: this updates staging and retains working content in the specified state.
- git restore --staged -- build-note.tmp: Correct: this updates staging and retains working content in the specified state.
- Delete the entire repository.: Deletion loses useful work and does not match the task.
- git restore -- README.md: This targets another file and working content, not the unwanted staging selection.
Question 5
The staged version shown by the cached comparison.
Correct: inspect and restage if the later edit should be included.
- Both versions automatically.: A commit records one selected snapshot, not both versions.
- Only the latest editor text.: Later working edits do not automatically join staging.
- The staged version shown by the cached comparison.: Correct: inspect and restage if the later edit should be included.