Home Computer Science Advanced Modules MCQ Questions and Answers: Python Online Test

Advanced Modules MCQ Questions and Answers: Python Online Test

262

Advanced Modules MCQ Questions and Answers: Python Online Test

As we’ve seen, a Python module exports all the names assigned at the top level of its file. There is no notion of declaring which names should and shouldn’t be visible outside the module. There’s no way to prevent a client from changing names inside a module if it wants to. In Python, data hiding in modules is a convention, not a syntactical constraint. If you want to break a module by trashing its names, you can, but fortunately, I’ve yet to meet a programmer who would. Some purists object to this liberal attitude toward data hiding, claiming that it means Python can’t implement encapsulation. However, encapsulation in Python is more about packaging than about restricting.

Quiz Description: 

Name: Advanced Modules MCQ Questions and Answers: Python Online Test

Subject:  Python

Topic:  Advanced Modules

Questions: 15 Objective Type Questions

Time Allowed: 15 Minutes

Language: English

Important for:  B. Tech. / M. Tech. Students, B.Sc. / M.Sc. (CS / IT) and aspirants of competitive exams, computer science job interviews, Python job interviews, etc.

Created By: Esha Tripathi

Previous QuizModule Coding MCQ Questions and Answers: Python Online Test
Next QuizModule Packages MCQ Questions and Answers: Python Online Test

LEAVE A REPLY

Please enter your comment!
Please enter your name here