Name: ______________________ Date:
________________
Course: ____________________ Assessment: ☐
Pre-Test ☐ Post-Test
Instructions: Select the best answer for each question. Answer all questions without using notes or outside resources.
1. What is version control primarily used for?
A. Speeding up file transfers
B. Tracking changes to files over time
C. Encrypting files
D. Compressing files
2. Which statement best describes source control?
A. Tracks sources
B. Version control focused on source code
C. Stores backups automatically
D. Cloud storage
3. Why is Git generally better than Google Drive for software development?
A. Google Drive cannot store code files
B. Git automatically tracks files
C. Git supports branching and works well with code files
D. Git is cloud storage
4. What is a repository?
A. A filing cabinet
B. A folder on your computer
C. A project folder containing tracked files and history
D. A cloud-hosted file share
5. A commit is best described as:
A. Uploading files
B. Adding files to the staging area
C. A snapshot of a project or files at a given time
D. A long-term relationship
6. What is the difference between Git and GitHub?
A. Git is the tool; GitHub is the company
B. Git is the version control tool; GitHub hosts Git repositories
C. They are synonymous
D. Git is cloud-based; GitHub is local
7. True or False: git commit moves files to the staging area.
A. True
B. False
8. True or False: Git automatically saves changes between edits like Google Drive or OneDrive.
A. True
B. False
9. True or False: A Git repository is a project folder that Git uses to track files and their history.
A. True
B. False
10. What is a branch?
A. A separate line of development
B. A nested folder
C. A revert point
D. The thing that grows on trees
11. Which is the correct Git workflow?
A. Commit → Working Directory → Staging Area
B. Repository → Commit → Working Directory
C. Working Directory → Staging Area → Commit
D. Staging Area → Commit → Working Directory
12. What is the working directory?
A. Files/folders currently being edited
B. Repository history
C. Temporary location for selected changes
D. Where Git permanently stores history
13. Which command creates a new Git repository?
A. git new
B. git add
C. git init
D. git +
14. Which hidden folder does Git create?
A. .version
B. .repo
C. .gitignore
D. .git
15. Which command stages changes without committing them?
A. git add
B. git commit
C. git --
D. git stage
16. You edited three files and wanted to see if Git detected the changes. Which command do you use?
A. git detect
B. git commit
C. git status
D. git ?
17. You type git commit but Git says there is nothing to commit. Most likely:
A. GitHub is offline
B. Repository corrupted
C. No changes were staged
D. Other
18. Which command displays commit history?
A. git log
B. git status
C. git diff
D. git history
19. What does the .git folder primarily store?
A. Source code
B. Passwords
C. Repository metadata and history
D. The Krabby Patty secret formula
20. You are creating three unrelated projects. Which is the best practice?
A. Separate repository for each
B. One large repository
C. Use a thumb drive
D. git multi /3
1. B
2. B
3. C
4. C
5. C
6. B
7. B
8. B
9. A
10. A
11. C
12. A
13. C
14. D
15. A
16. C
17. C
18. A
19. C
20. A