Back
COMP2041 · Practice
Past Exam Problems
21T2 Q1 — grep on awards.psv
21T2 Q2 — Male surnames (shell pipeline)
21T2 Q3 — Male surnames (Python)
21T2 Q4 — The missing integer
21T2 Q5 — Years an award was not given
21T2 Q6 — Mirrored files
21T2 Q7 — Print rename-with-extension commands
21T2 Q8 — Print symlink-dedup commands
21T2 Q9 — Word wrap, in place
21T2 Q10 — Remove unbalanced words
21T2 Q11 — Compare two directory trees
21T2 Q12 — Knight's reachable squares
22T2 Q1 — Count enrolments in a program (shell)
22T2 Q2 — Count enrolments in a program (Python)
22T2 Q3 — Happy directories
22T2 Q4 — Enumerate n..m strings
22T2 Q5 — Log rotation
22T2 Q6 — Reorder names (Last, First → First Last)
22T2 Q7 — Git commit summary
22T2 Q8 — Hottest-100 filter
22T2 Q9 — Template expander (subprocess)
22T2 Q10 — equi-group (anagram grouping)
22T2 Q11 — onesie (word ladder, BFS)
22T2 Q12 — Instant-runoff vote count