Which of the following statements would create an instance of Firm class correctly?
Correct Answer: None of the above
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Python Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More Python MCQ Questions
In the following code, what will be printed ? class parent: def __init__(self, param): self.v1 = param class child(parent): def __init__(self, param): self.v2 = param obj = child(5) print '%d %d' % (obj.v1, obj.v2)
What function do you use to read a string?
What is the return value of trunc()?
Output of following code? def addItem(l): l += [0] mylist = [1, 2, 3, 4, 5] addItem(mylist) print len(mylist)
orig = { '1' : 1, '2' : 2 } a_copy = orig.copy() orig['1'] = 5 sum = orig['1'] + a_copy['1'] print sum What will be printed in the above Python code?
Which is the main features of Python?
Various email and news clients store messages in a variety of formats, many providing hierarchical and structured folders. Which of the following provides a uniform API for reading the messages stored in all the most popular folder formats?
In Python, what is the default maximum level of recursion?
Object is the base class of new-style datatypes. Which function is not a member of the object class?
Which member of the object class compare two parameters?