Question 57Asked in Bihar STET 2024 Paper II Computer Science, 11 Jun 2024, Shift 2 (3:00 PM)

What is the primary function of a namespace in OOP?ओओपी में नेमस्पेस का प्राथमिक कार्य क्या है?

ओओपी में नेमस्पेस का प्राथमिक कार्य क्या है?
  1. AGroup related classes and functionsसमूह से संबंधित कक्षाएं और कार्य
  2. BManage object referencesऑब्जेक्ट संदर्भों का प्रबंधन करें
  3. CDefine instance variablesइंस्टेंस चर को परिभाषित करें
  4. DStore data valuesडेटा मान संग्रहीत करें
Show answerHide answer

Correct answer: (A) Group related classes and functionsसमूह से संबंधित कक्षाएं और कार्य

Explanation

A namespace groups related classes, functions and variables under one name, which keeps code organized and avoids name clashes.Namespace संबंधित classes, functions और variables को एक नाम के अंतर्गत समूहित करता है, जिससे कोड व्यवस्थित रहता है और नामों का टकराव नहीं होता।

From Bihar STET 2024 Paper II Computer Science PYQ, 11 Jun 2024, Shift 2 (3:00 PM)

This is question 57 of Bihar STET 2024 Paper II Computer Science PYQ, 11 Jun 2024, Shift 2 (3:00 PM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.