Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1git merge feature-login # no review requested | AChecklist: none. Reviewer checks: code style only | |
| 2Review status: approved by author (self-approved) | BThe only person who checked the code is the one who wrote it, so there is no second reviewer to spot mistakes. | |
| 3Time pressure leads to a rushed review where the reviewer approves the change without reading it properly. | CReview time: 2 minutes. Comment: LGTM, approved. 40 files changed | |
| 4A review with no security checklist does not check for known flaws such as missing input validation or hard-coded secrets. | DSkipping the code review because of the deadline lets unreviewed changes be merged, so flaws such as SQL injection can reach production. Reviews should be required for every merge. | |
| 5if (deadline_close) { skip_code_review(); merge(); } | EAn unreviewed change is merged straight into the main code, so a security flaw can reach production unnoticed. | |
| 6required_reviewers = 0 # developers merge their own code | FSetting no required reviewers means there is no second reviewer, so the author can merge their own flawed code. At least one other person should be required to approve each change. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
ineffective code review — Code review that is skipped, rushed, done only by the author or lacks a security checklist, so flaws get merged and reach production.IF reviewer = author THEN
DISPLAY "Author reviewed own code"
END IFIF checklistUsed = FALSE THEN
DISPLAY "No checklist used"
END IFIF reviewMinutes < 5 THEN
DISPLAY "Review was rushed"
END IFIF approvals = 0 AND merged = TRUE THEN
DISPLAY "Unreviewed change in production"
END IFreviewed ← FALSE
IF reviewed = FALSE THEN
DISPLAY "Review skipped"