Python Learn Simpli September 6, 2019 no Comments 1. what should be a private in order to make an instance variable prefixed by single under score having double underscore before and after the name prefixed by double under score having single underscore before and after the name None 2. Which is an incorrect syntax in the following answers? from module import function import module import function from module None 3. Which is not a built-in exception in Python among following options? KeywordError TypeError ImportError ValueError None 4. What becomes the Variable used inside a function? None of these Global variable Local variable Reference variable None 5. For what Commit() method should be executed? Refresh data after execution of query Close table Close database Finalize transactions None 6. 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 7. Which statements is not true in the following options? Indent length may vary for each block Each block must have same indent level. Statements in a block must have same indent level. None None 8. What is ‘global’ in Python? none Built-in function Built-in module Keyword None 9. Value of __name__ attribute of a module may be equal to ‘main’ when None of these it is the first module in a package it is imported by another script it is executed from interpreter None 10. What cannot be a part of Python module? Class Function Keyword none None Time's up