Python Learn Simpli September 6, 2019 no Comments 1. Which string is not a valid aces mode for opening a file in simultaneous read/write mode in following options? rw w+ wb+ r+ None 2. 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 Each block must have same indent level. None None 3. What is a Python DB-API ? Specification for database connectivity modules None of these Python module Is used to access SQLite database None 4. For what Commit() method should be executed? Finalize transactions Refresh data after execution of query Close database Close table None 5. Which is an incorrect syntax in the following answers? import function from module from module import function import module None 6. which of following answer is true about __init__() method? It is a constructor All of the above It is a magic method It calls __new__() method None 7. What is ‘global’ in Python? none Keyword Built-in module Built-in function None 8. Which is not iterable Objects in Python among following options ? Dictionary Number String None 9. which of the following keyword(s) used along with ‘else’ clause in Python try if while all of the above None 10. Value of __name__ attribute of a module may be equal to ‘main’ when it is imported by another script it is executed from interpreter None of these it is the first module in a package None Time's up