Which programming pays more attention on data rather than functions?

2024

Which programming pays more attention on data rather than functions?

  1. A.

    Structured Programming

  2. B.

    Conventional Programming

  3. C.

    Object Oriented Programming

  4. D.

    Procedural Programming

Attempted by 308 students.

Show answer & explanation

Correct answer: C

The correct answer is Object-Oriented Programming (OOP). Unlike other paradigms that prioritize functions or procedures, OOP organizes code around data (objects) and the methods that operate on that data.

Key Characteristics:

  • Data Encapsulation: Data is bundled with the methods that manipulate it.

  • Data Hiding: Internal data is protected from external interference.

  • Inheritance and Polymorphism: Allow for flexible data modeling.

In contrast, Structured, Conventional, and Procedural programming focus primarily on the sequence of actions (functions) to be performed, treating data as secondary to the logic.

हिन्दी उत्तर:

सही उत्तर ऑब्जेक्ट ओरिएंटेड प्रोग्रामिंग (OOP) है। अन्य पैराडाइम के विपरीत जो फंक्शन्स या प्रक्रियाओं पर जोर देते हैं, OOP कोड को डेटा (ऑब्जेक्ट्स) और उन डेटा पर कार्य करने वाली विधियों के चारों ओर संरचित करता है।

मुख्य विशेषताएँ:

  • डेटा एनकैप्सुलेशन: डेटा को उस विधि के साथ बांधा जाता है जो उसे संभालती है।

  • डेटा छिपाना: आंतरिक डेटा को बाहरी हस्तक्षेप से सुरक्षित रखा जाता है।

  • विरासत और बहुआकारिता: लचीले डेटा मॉडलिंग की अनुमति देती हैं।

इसके विपरीत, स्ट्रक्चर्ड, कन्वेंशनल और प्रोसीजरल प्रोग्रामिंग मुख्य रूप से किए जाने वाले कार्यों (फंक्शन्स) की अनुक्रम पर ध्यान केंद्रित करते हैं, डेटा को तर्क के सापेक्ष द्वितीयक मानते हैं।

Explore the full course: Rssb Basic Computer Instructor