MCQ Answer

To obtain a list of all the functions defined under sys module, which of the following functions can be used?

To obtain a list of all the functions defined under sys module, which of the following functions can be used?

Sys मॉड्यूल के अंडर डिफाइन सभी फंक्शंस की एक लिस्ट प्राप्त करने के लिए, निम्नलिखित में से किस फ़ंक्शन का यूज़ किया जा सकता है?
Topic : Modules in Python

A. print(sys)

B. print(dir.sys)

C. print(dir[sys])

D. print(dir(sys))




Correct Answer is :

D. print(dir(sys))



Explanation
The function print(dir(sys)) helps us to obtain a list of all the functions defined under the sys module. The function can be used to obtain the list of functions under any given module in Python.
CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz