Which programming paradigm focuses on breaking down a program into smaller…
2025
Which programming paradigm focuses on breaking down a program into smaller procedures or functions?
- A.
Object-Oriented Programming
- B.
Procedural Programming
- C.
Functional Programming
- D.
Imperative Programming
Attempted by 548 students.
Show answer & explanation
Correct answer: B
The question asks about the programming paradigm that focuses on breaking down a program into smaller procedures or functions.
Option A: Object-Oriented Programming focuses on organizing code around objects and classes. It emphasizes data encapsulation and inheritance, not breaking code into procedures. Therefore, this option is incorrect.
Option B: Procedural Programming organizes code into procedures or functions. It emphasizes step-by-step execution and modular code blocks. This matches the question's focus on breaking programs into smaller procedures. Therefore, this option is correct.
Option C: Functional Programming treats computation as the evaluation of mathematical functions. It avoids changing state and mutable data, focusing on function composition. This paradigm does not primarily focus on procedures or functions in the procedural sense. Therefore, this option is incorrect.
Option D: Imperative Programming describes how to perform tasks using statements that change program state. It focuses on commands and control flow, not modular procedures. This does not match the emphasis on breaking code into functions or procedures. Therefore, this option is incorrect.
हिन्दी उत्तर:
प्रश्न उस प्रोग्रामिंग पैरेडाइम के बारे में पूछता है जो किसी प्रोग्राम को छोटे-छोटे प्रोसिजर या फ़ंक्शन में विभाजित करने पर केंद्रित होता है।
विकल्प A: ऑब्जेक्ट-ओरिएंटेड प्रोग्रामिंग कोड को ऑब्जेक्ट और क्लासेस के आसपास व्यवस्थित करने पर ध्यान केंद्रित करता है। यह डेटा एनकैप्सुलेशन और विरासत पर जोर देता है, प्रोसीजर को तोड़ने पर नहीं। इसलिए, यह विकल्प गलत है।
विकल्प B: प्रोसिजरल प्रोग्रामिंग कोड को प्रोसीजर या फ़ंक्शन में व्यवस्थित करता है। यह स्टेप-बाय-स्टेप निष्पादन और मॉड्यूलर कोड ब्लॉक्स पर जोर देता है। यह प्रश्न के लक्ष्य के साथ मेल खाता है जो कोड को छोटे प्रोसीजर में तोड़ने पर केंद्रित है। इसलिए, यह विकल्प सही है।
विकल्प C: फंक्शनल प्रोग्रामिंग गणितीय फ़ंक्शन के मूल्यांकन के रूप में गणना को देखता है। यह राज्य और परिवर्तनीय डेटा को बदलने से बचता है, फ़ंक्शन संयोजन पर ध्यान केंद्रित करता है। यह पैरेडाइम प्रोसीजरल अर्थ में प्रोसीजर या फ़ंक्शन पर प्राथमिक रूप से ध्यान केंद्रित नहीं करता है। इसलिए, यह विकल्प गलत है।
विकल्प D: इम्पेरेटिव प्रोग्रामिंग कार्यों को कैसे करना है, उसके बारे में बताता है जिसमें प्रोग्राम राज्य को बदलने वाले स्टेटमेंट शामिल होते हैं। यह कमांड और नियंत्रण प्रवाह पर जोर देता है, मॉड्यूलर प्रोसीजर पर नहीं। यह प्रोसीजर या फ़ंक्शन में कोड को तोड़ने पर ध्यान केंद्रित करने के लक्ष्य से मेल नहीं खाता है। इसलिए, यह विकल्प गलत है।