McqMate
| Q. |
Which of the statements about modules is false? |
| A. | in the “from-import” form of import, identifiers beginning with two underscores are private and aren’t imported |
| B. | dir() built-in function monitors the items in the namespace of the main module |
| C. | in the “from-import” form of import, all identifiers regardless of whether they are private or public are imported |
| D. | when a module is loaded, a compiled version of the module with file extension .pyc is automatically produced |
| Answer» C. in the “from-import” form of import, all identifiers regardless of whether they are private or public are imported | |
| Explanation: in the “from-import” form of import, identifiers beginning with two underscores are private and aren’t imported. | |
View all MCQs in
Problem Solving and Python ProgrammingNo comments yet