Question 37Asked in Bihar STET 2025 Paper II Computer Science, 3 Nov 2025, Shift 2 (2:00 PM) + 1 more paper

What is encapsulation in OOP?ओओपी में एनकैप्सुलेशन क्या है?

ओओपी में एनकैप्सुलेशन क्या है?
  1. AThe ability to inherit properties from multiple classesकई वर्गों से गुणों को विरासत में लेने की क्षमता
  2. BThe process of creating objectsवस्तुओं को बनाने की प्रक्रिया
  3. CThe bundling of data and methods that operate on the dataडेटा और विधियों का बंडलिंग जो डेटा पर काम करता है
  4. DThe use of abstract classes onlyकेवल अमूर्त वर्गों का उपयोग
Show answerHide answer

Correct answer: (C) The bundling of data and methods that operate on the dataडेटा और विधियों का बंडलिंग जो डेटा पर काम करता है

Explanation

Encapsulation bundles data and the methods that operate on that data into a single unit (a class), and usually hides the internal data from outside access.Encapsulation डेटा और उस पर काम करने वाली मेथड को एक इकाई (क्लास) में बाँधता है और आमतौर पर आंतरिक डेटा को बाहरी पहुँच से छिपाता है।

From Bihar STET 2025 Paper II Computer Science PYQ, 3 Nov 2025, Shift 2 (2:00 PM)

This is question 37 of Bihar STET 2025 Paper II Computer Science PYQ, 3 Nov 2025, Shift 2 (2: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.

Asked in 2 papers