imperative exercises with answers pdf