Chapter 7

Contents: True/False | Multiple Choice | Discussion | Programs

True/False

  1. True
  2. False
  3. True
  4. False
  5. True
  6. True
  7. False
  8. False
  9. True
  10. False

Multiple Choice

  1. c
  2. c
  3. b
  4. c
  5. b
  6. c
  7. a
  8. c
  9. c
  10. c

Discussion

  1. Answers will vary.

    1. Trees
      Larch
      Done
    2. Trees
      Chestnut
      Done
    3. Spam Please!
      Done
    4. Cheese Shoppe
      Cheddar
      Done
    5. It's a late parrot!
      Done
    6. Cheese Shoppe
      Cheddar
      Done
  2. Simlar in that the try/except conditionally executes a block of code. Different in that the try except does not contain a specific desicion, but executes the except based on an exception that ay be raised by any statement in the try block.

Programming Exercises

Code for Chapter 7 Exercises