1. Which commit message follows a widely adopted conventional style?
Conventional Commits use type(scope?): subject — e.g., feat, fix, chore, docs — aiding automation and changelogs.
Get the Preplance app for a seamless learning experience. Practice offline, get daily streaks, and stay ahead with real-time interview updates.
Get it on
Google Play
4.9/5 Rating on Store
Git & Version Control · Question Set
Collaboration Workflows, Code Review & Best Practices interview questions for placements and exams.
Questions
14
Included in this set
Subject
Git & Version Control
Explore more sets
Difficulty
Mixed
Level of this set
Go through each question and its explanation. Use this set as a focused practice pack for Git & Version Control.
Conventional Commits use type(scope?): subject — e.g., feat, fix, chore, docs — aiding automation and changelogs.
For complete preparation, combine this set with full subject-wise practice for Git & Version Control. You can also explore other subjects and sets from the links below.
CODEOWNERS maps file globs to teams/users, auto-requesting reviews and enforcing approvals.
Change impact analysis plus mandatory checks protects downstream packages.
Branch protection with mandatory reviews and passing CI prevents broken code and history rewrites.
Interactively rebase the feature branch onto the latest main and squash noisy merges into logical commits. This yields a linear, readable history while preserving meaningful changes. Avoid rewriting history only after the branch is shared publicly unless teammates agree.
Actionable comments (specific, respectful), checks for correctness & security, and validation via passing CI/tests. Keep scope focused, request changes with rationale, and approve only when standards are met.
Structured context improves review quality and deploy safety.
Acknowledge the concern, provide evidence (benchmarks, standards), seek compromise, or escalate to documented guidelines/architects. Never ignore feedback; document the decision in the PR for future readers.
Early collaboration reduces rework and aligns on approach.
Enforce squash to keep a clean, one-commit-per-PR history and easy revert. Trade-offs: lose granular interim commits and bisect fidelity; mitigate by writing a thorough squash message and linking PR.
Gentle automation plus education shapes behavior without stalling delivery.
GitHub Flow (trunk-based: small feature branches → PR → merge to main → deploy) fits products that deploy very frequently and value simplicity. Git Flow (long-lived develop, release/hotfix branches) suits scheduled releases and heavier QA gates. Choose the simplest model that matches release cadence and compliance needs.
Smaller diffs are easier to review thoroughly and roll back when needed.
Threat-aware review plus automated secret scanning and SCA improves security posture.