Three original learning questions with explanations. This is a short course check, not a certification mock exam or readiness prediction. Public answers support self-review; sign in to save a scored attempt.
Course questions with explanations
Review each question and reveal its explanation without an account. Sign in to save a scored attempt on these same questions. This short check does not predict exam readiness.
1. What does a commit record?
- The staged snapshot
- Every future edit
- The screen display
Show answer and explanation for question 1
Correct answer: A. The staged snapshot
Commits use the staged content.
2. Does .gitignore erase tracked secrets from history?
- No
- Only after renaming
- Yes
Show answer and explanation for question 2
Correct answer: A. No
Ignoring is not history removal or credential revocation.
3. Which command inspects staged changes?
- git diff --cached
- git status --short only
- git push
Show answer and explanation for question 3
Correct answer: A. git diff --cached
The cached diff compares the staged snapshot.
Sign in to take this free practice test and save your result.
Sign in