Python Learn Simpli September 6, 2019 no Comments 1. What cannot be a part of Python module? none Class Keyword Function None 2. what should be a privateĀ in order to make an instance variable prefixed by single under score having single underscore before and after the name prefixed by double under score having double underscore before and after the name None 3. What is meant by self in Python? It is a class attribute. It is reference to object which calls an instance method. It is a built-in function in python It is a keyword. None 4. What is a Python DB-API ? None of these Specification for database connectivity modules Is used to access SQLite database Python module None 5. Which string is not a valid aces mode for opening a file in simultaneous read/write mode in following options? r+ w+ wb+ rw None 6. For what Commit() method should be executed? Refresh data after execution of query Close database Close table Finalize transactions None 7. What becomes the Variable used inside a function? Local variable Global variable None of these Reference variable None 8. which of following answer is true about __init__() method? It is a constructor It calls __new__() method It is a magic method All of the above None 9. Which is not a built-in exception in Python among following options? TypeError KeywordError ImportError ValueError None 10. Which is an incorrect syntax in the following answers? import module from module import function import function from module None Time's up