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.
Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 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 Best Website and Software Company in Allahabad