Imperative programming (source code)

= Imperative programming
{scope}
{title2=4216}

Solutions to all eight questions of the 18 June 2014 paper. The <Scala> fragments use the paper's Scala 2 style. Unless stated otherwise, <array> dimensions and <array indices> meet the supplied preconditions, and size calculations fit `Int`.<Imperative Programming examination paper by the University of Oxford (2014)>[Cover and pp. 2–15, Questions 1–8]{ref}