Python Learn Simpli September 6, 2019 no Comments 1. which of following answer is true about __init__() method? It calls __new__() method It is a constructor All of the above It is a magic method None 2. What kind of relationship exists between inherited class and base class? HAS A Both IS A None None 3. Which string is not a valid aces mode for opening a file in simultaneous read/write mode in following options? wb+ r+ rw w+ None 4. Which is not iterable Objects in Python among following options ? String Number Dictionary None 5. what should be a private in order to make an instance variable having double underscore before and after the name prefixed by double under score having single underscore before and after the name prefixed by single under score None 6. Which is TRUE about Python function among following answers? All of above It can be passed to another function as argument. It is a first order object. Function can return another function. None 7. Difference between range() and randrange() functions? Option A is correct range() generates a sequence of numbers, randrange() selects one number from the range randomly Both None 8. What is ‘global’ in Python? Built-in module none Keyword Built-in function None 9. What is meant by self in Python? It is a built-in function in python It is a class attribute. It is a keyword. It is reference to object which calls an instance method. None 10. What cannot be a part of Python module? Class Function Keyword none None Time's up