

MCQOPTIONS
Saved Bookmarks
1. |
What will be the output of the followingPython code?1. class father:2. def __init__(self, param):3. self.o1 = param4.5. class child(father):6. def __init__(self, param):7. self.o2 = param8.9. >>>obj = child(22)10. >>>print "%d %d" % (obj.o1, obj.o2) |
A. | none none |
B. | none 22 |
C. | 22 none |
D. | error is generated |
Answer» E. | |