Python Learn Simpli September 6, 2019 no Comments 1. What kind of relationship exists between inherited class and base class? HAS A Both None IS A None 2. Which is not a built-in exception in Python among following options? KeywordError TypeError ImportError ValueError None 3. which of following answer is true about __init__() method? All of the above It is a constructor It calls __new__() method It is a magic method None 4. What is a Python DB-API ? Specification for database connectivity modules None of these Is used to access SQLite database Python module None 5. What cannot be a part of Python module? Class Function Keyword none None 6. What is ‘global’ in Python? Built-in function Built-in module none Keyword None 7. For what Commit() method should be executed? Finalize transactions Close table Refresh data after execution of query Close database None 8. Which statements is not true in the following options? Statements in a block must have same indent level. Indent length may vary for each block None Each block must have same indent level. None 9. What becomes the Variable used inside a function? None of these Local variable Reference variable Global variable None 10. what should be a private in order to make an instance variable having single underscore before and after the name having double underscore before and after the name prefixed by single under score prefixed by double under score None Time's up