Exam 3- 2011

B list all of the methods defined in this code

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: .g(2)) # Statement 4 (a) List all of the instance variables created in this code. (b) List all of the methods defined in this code. (c) List at least one of the objects created in this code. (d) List all of the classes defined in this code. (e) Which methods are called during the execution of Statement 2? (f) Which methods are called during the execution of Statement 4? CS 115 Exam 3, Fall 2011 Page 2 of 11 Assume that there is a Python dictionary called bonuses that stores the end ­of ­ year bonuses of some employees. For example: bonuses = {'John': 3000, 'Paul': 1500, 'George': 2000} Note: do NOT assume that these are the actual keys and values in the dictionary. This is just an example. Assume that the variable employee contains the name of an employee, and the variable base contains that employee’s base salary....
View Full Document

This note was uploaded on 02/08/2014 for the course CS 115 taught by Professor Staff during the Fall '08 term at Sonoma.

Ask a homework question - tutors are online