1. 4
  1.  

  2. 1

    Since the answers are right below the questions, these are more like “code snippets” than “exercises”. Many of them might be useful as exercises given the right instructional context.