Python Learn Simpli September 6, 2019 no Comments 1. Value of __name__ attribute of a module may be equal to ‘main’ when it is the first module in a package it is imported by another script None of these it is executed from interpreter None 2. Which is an incorrect syntax in the following answers? import function from module from module import function import module None 3. Which is not iterable Objects in Python among following options ? Dictionary String Number None 4. Which string is not a valid aces mode for opening a file in simultaneous read/write mode in following options? rw w+ r+ wb+ None 5. What is meant by self in Python? It is a built-in function in python It is a keyword. It is reference to object which calls an instance method. It is a class attribute. None 6. Which is TRUE about Python function among following answers? All of above Function can return another function. It can be passed to another function as argument. It is a first order object. None 7. What does REPL stands for in Python? READ, EVALUATE, PRINT, LOOP READ, EDIT, PRINT, LOOP RETRIEVE, EVALUATE, PRINT, LOOP NOne None 8. Which is not a built-in exception in Python among following options? TypeError ImportError KeywordError ValueError None 9. What kind of relationship exists between inherited class and base class? Both None HAS A IS A None 10. What is a Python DB-API ? Specification for database connectivity modules None of these Is used to access SQLite database Python module None Time's up