MCQ Answer

Which of the following data structures is returned by the functions globals() and locals()?

Which of the following data structures is returned by the functions globals() and locals()?

निम्नलिखित में से कौन सा डेटा स्ट्रक्चर फंक्शन ग्लोबल्स () और लोकल लोगों () द्वारा रिटर्न की जाती है?
Topic : Functions in Python

A. list लिस्ट

B. set सेट

C. dictionary डिक्शनरी

D. tuple टपल




Correct Answer is :

C. dictionary



Explanation
Both the functions, that is, globals() and locals() return value of the data structure dictionary.
Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2025 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