IT 117: Intermediate Scripting
Class 7 Ungraded Quiz


  1. Can the key in a dictionary entry be any data type?


  2. Can the value in a dictionary entry be any data type?


  3. Can the value in a dictionary entry be a list?


  4. What string value does Python think of as False in an if statement?


  5. What string value does Python think of as True in an if statement?


  6. What integer value does Python think of as True in an if statement?


  7. What integer value does Python think of as False in an if statement?


  8. What boolean value does Python assign to -1 in an if statement?


  9. What does the clear method of a dictionary object do?


  10. What does the get method of a dictionary object do?