NIELIT O Level Exam

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 मॉड्यूल के अंडर डिफाइन सभी फंक्शंस की एक लिस्ट प्राप्त करने के लिए, निम्नलिखित में से किस फ़ंक्शन का यूज़ किया जा सकता है?

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.
Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad