M
Q. What will be the output of the following
Python code?
1. class father:
2. def __init__(self, param):
3. self.o1 = param
4.
5. class child(father):
6. def __init__(self, param):
7. self.o2 = param
8.
9. >>>obj = child(22)
10. >>>print "%d %d" % (obj.o1, obj.o2)
Explanation by: Mr. Dubey
self.o1 was never created.
You must be Logged in to update hint/solution
Be the first to start discuss.
Related MCQs
Q. The results of structured analysis can be easily understood by ordinary customers.
Q. The working memory of the problem solver is like its _________________
Q. method is used to map logical addresses of variable length onto physical memory.
Q. The qualitative or quantitative attribute of a variable or set of variables is termed as
Q. IEEE802.11a and IEEE802.11b uses ____________ band
Q. Common deep learning applications include____
Q. The 4×4 byte matrices in the AES algorithm are called_______.
Q. A property can be declared inside a class, struct, Interface.
Question analytics

Discusssion
Login to discuss.