Free · no sign-up · no time limit
Ready-made multiple-choice practice quizzes, hand-checked. Take any free quiz online — every answer comes with an explanation, and every quiz page has a full answer key to revise from.
Free · no sign-up · no time limit
Ready-made multiple-choice practice quizzes, hand-checked. Take any free quiz online — every answer comes with an explanation, and every quiz page has a full answer key to revise from.
IT
Test your knowledge of Git repositories, commits, branches, merging, remotes, and common version control workflows. Answer each question to see whether you got it right, with an explanation every time.
A free 12-question multiple-choice practice test on IT. Each question has one correct answer and a short explanation, and the full answer key below the player doubles as a study sheet. No account, no time limit — take it as often as you like.
This is a free, 12-question multiple-choice quiz. Answer each question to see whether you got it right, with an explanation for every answer. There is no sign-up and no time limit — take it as many times as you like, and use the answer key above to revise before or after.
Correct answer: ATo track changes to files and maintain their history
Version control records changes over time, allowing developers to inspect history, collaborate, and restore earlier versions when necessary.
Correct answer: Cgit init
The init command creates the .git directory containing the metadata Git needs to track the repository.
Correct answer: BChoose which changes will be included in the next commit
The staging area lets you prepare a specific set of changes for the next commit instead of committing every modified file.
Correct answer: Dgit add app.js
The add command places the current changes from the specified file into Git's staging area.
Correct answer: AA recorded snapshot of staged changes in repository history
A commit records a project state together with metadata such as its author, timestamp, message, and relationship to previous commits.
Correct answer: BTo provide an independent line of development
Branches allow developers to work on features, fixes, or experiments separately before integrating those changes with other development work.
Correct answer: CCreates a local copy of an existing repository
Cloning creates a local repository based on an existing repository and typically configures the source repository as a remote.
Correct answer: DSends local commits to a remote repository
Pushing transfers commits and updates references on a remote repository, usually after local work has been committed.
Correct answer: AFetch retrieves remote updates without integrating them, while pull retrieves and integrates them
Fetching updates your remote-tracking information without integrating those changes into the current branch, while pulling also performs an integration step.
Correct answer: BWhen Git cannot automatically reconcile competing changes
A conflict occurs when Git lacks enough information to safely combine changes, so a developer must decide how the affected content should look.
Correct answer: CTo define intentionally untracked files or patterns Git should ignore
A .gitignore file contains patterns for files and directories that should generally remain untracked, such as generated files or local configuration.
Correct answer: DReapplies commits onto a different base commit
Rebase moves a sequence of commits by replaying their changes on top of another base, which can produce a cleaner linear history.