CS FundamentalsVery hardProduct-company placement · Git
Priya rebases Rahul's three commits onto the latest main. What happens to the author and committer fields of the rewritten commits?
- A. Both fields become Priya, with today's date on each
- B. Both stay as Rahul's original values, since content is unchanged
- C. Author becomes Priya, while committer stays as Rahul
- D. Author stays Rahul (original date); committer becomes Priya, now
Correct answer: D. Author stays Rahul (original date); committer becomes Priya, now
Git tracks who wrote a change (author) separately from who applied it (committer). Rebasing creates new commits, keeping author details by default but setting the committer to whoever ran the rebase at that time, which also contributes to the new hashes.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- Business rules like 'premium customer AND (order > ₹10,000 OR festive season)' are built as small objects with isSatisfiedBy(candidate)…
- A service reuses expensive database connections from a pool instead of opening one per request. One request leaves a connection inside an…
- Following Beizer's guidance for testing two nested loops, how should you start?
- A team builds a thin, working path through every layer of a new system (UI, API, queue, database) with minimal features, and keeps that…
- Using the convention that each if, else-if, for, while, case, && and || adds 1 to the count of decision points, what is the cyclomatic…
- For a 32 KLOC project, the Basic COCOMO organic-mode equation Effort = 2.4 x (KLOC)^1.05 person-months gives approximately how much effort?