Skip to main content
๐Ÿ“œ WAYPOINT LESSON

Exam #2: the traps change

โญโญโญ advancedโณ 10 min read๐Ÿ“ Lesson 245 of 256

Dead variables, near-miss clauses, order assumptions, mirror misapplications โ€” same topics, subtler failures.

Exam #2 changes the traps, not the topics. Where Exam #1 tested whether you knew the mechanism, this one tests whether you hold it under misdirection:

  • The dead-variable trap: a plausible variable is updated and never read โ€” options built on it are wrong.
  • The near-miss clause: the spec says "at least 3"; the code and three options say "> 3". Only one option honors the clause.
  • The order trap: two mutations commute in the example but not in general; the options include the commuting reading.
  • The mirror trap: a correct-looking symmetric pairing (i โ†” length - i) applied where the data is NOT symmetric.

Strategy is unchanged โ€” triage, banking, the no-blanks rule โ€” but your expectation should shift: in Exam #2, the first answer that "looks right" is disproportionately the trap. Verification beats recognition one notch harder here.

โšก Now practice

Ready to Code
Exam #2: MCQ sectionFour trap-weighted originals; timed half-section (20 minutes).
4 challenges ยท ยท ~25 min