--- id: act-11-git-test title: Git Test mode: test open_at: 2026-02-01T00:00:00+01:00 close_at: 2026-12-31T23:59:59+01:00 retakes_enabled: true max_attempts: 2 grade_max: 100 time_limit_seconds: 1800 --- ## T1 Type: single_choice Points: 10 Prompt: Which statement matches the Git storage model described in the materials? A) Git stores only line-by-line deltas between versions B) Git stores a stream of snapshots of your project over time C) Git stores changes only on a central server D) Git stores only file timestamps, not content Refs: - mat-07-git#snapshots-not-deltas ## T2 Type: multiple_choice Points: 10 Prompt: In the short status format, which statements are correct? Select ALL that apply. A) The left column refers to the staging area B) The right column refers to the working directory C) '??' means a file is untracked D) '??' means a file is staged Refs: - mat-07-git#short-status-format ## T3 Type: single_choice Points: 10 Prompt: Which command shows the differences you have staged for the next commit? A) git diff B) git diff --staged C) git status D) git log Refs: - mat-07-git#viewing-changes-with-git-diff ## T4 Type: single_choice Points: 10 Prompt: Which command initializes a new Git repository in the current directory? A) git init B) git clone C) git commit D) git remote add Refs: - mat-07-git#getting-a-repository-with-git-init ## T5 Type: single_choice Points: 10 Prompt: In Git, a branch is best described as: A) A lightweight movable pointer to a commit B) A full copy of the repository stored on a server C) A list of ignored files D) A merge conflict marker Refs: - mat-07-git#what-a-branch-is ## T6 Type: multiple_choice Points: 10 Prompt: Select ALL correct statements about HEAD and switching branches. A) HEAD is a special pointer that tells Git what branch you are currently on B) Switching branches updates files in your working directory to match that branch snapshot C) HEAD is the same thing as origin D) git checkout -b both creates a branch and switches to it Refs: - mat-07-git#head-pointer-and-current-branch - mat-07-git#creating-and-switching-branches ## T7 Type: single_choice Points: 10 Prompt: A fast-forward merge occurs when: A) The branches have diverged and Git must create a new merge commit B) The current branch is directly behind the branch being merged, so Git only moves the pointer forward C) A merge conflict is present D) You are in detached HEAD state Refs: - mat-07-git#fast-forward-merges ## T8 Type: multiple_choice Points: 10 Prompt: Select ALL steps that are part of resolving a merge conflict. A) Edit the conflicted file to resolve markers B) Stage the resolved file with git add C) Finish by committing (git commit) D) Delete the remote branch with git push origin --delete Refs: - mat-07-git#merge-conflicts-and-resolution ## T9 Type: single_choice Points: 10 Prompt: In the materials, git pull is described as: A) Fetching remote data without merging B) Fetching and then merging into your current branch C) Creating an annotated tag D) Renaming a remote Refs: - mat-07-git#fetching-and-pulling ## T10 Type: file Points: 10 Prompt: Create file @solutions/act-01-git-test/t10-practical.txt containing commands+output that show: a repo with at least 2 commits on the base branch, one additional branch with one commit, and the outputs of git status -s and git log --oneline --decorate --graph --all. Refs: - mat-07-git#checking-status-with-git-status - mat-07-git#short-status-format - mat-07-git#viewing-history-with-git-log - mat-07-git#creating-and-switching-branches - mat-07-git#divergent-history-and-viewing-the-graph Rubric: - Output shows at least 2 commits on the base branch and at least 1 commit on another branch (5) - Includes git status -s output (2) - Includes git log --oneline --decorate --graph --all output showing the branch structure (2) - Commands and outputs are clearly labeled (1)