IT 116: Introduction to Scripting
Class 5 Ungraded Quiz

  1. What is the result of the following calculation in Python's interactive mode?
    7 / 2

  2. What is the result of the following calculation in Python's interactive mode?
    7 // 2

  3. What is the result of the following calculation in Python's interactive mode?
    7 % 2

  4. What is the result of the following calculation in Python's interactive mode?
    7 ** 2

  5. What is the result of the following calculation in Python's interactive mode?
    2 + 3 * 5

  6. What is the result of the following calculation in Python's interactive mode?
    (2 + 3) * 5

  7. What arithmetic operators have the highest precedence (parentheses are not operators)?


  8. What arithmetic operators have the next highest precedence?


  9. What arithmetic operators have the next lowest precedence?


  10. What would you type at the end of a line if you wanted to continue a Python statement to the next line?