FliQi Education App Download
प्रश्न-बैंक · Programmer Java

OOPs Concepts - OOPs Vs Others — प्रश्न और उत्तर

Programmer Java · 23 जाँचे हुए (verified) प्रश्न

  • 23 जाँचे हुए प्रश्न
  • हिंदी + English

पहले 10 प्रश्नों के उत्तर और हल यहीं खुले हैं; बाक़ी 13 के उत्तर और हल FliQi Question Bank app में।

भाषा
प्रश्न 1उत्तर + हल
Procedural programming की तुलना में ऑब्जेक्ट-ओरिएंटेड प्रोग्रामिंग का मुख्य लाभ क्या है?
What is the main advantage of using object-oriented programming over procedural programming?
  1. Aऑब्जेक्ट-ओरिएंटेड प्रोग्रामिंग code की reusability और modularity को बढ़ावा देती है।Object-oriented programming promotes code reusability and modularity.
  2. Bऑब्जेक्ट-ओरिएंटेड प्रोग्रामिंग procedural programming से बेहतर performance देती है।Object-oriented programming allows for better performance compared to procedural programming.
  3. Cऑब्जेक्ट-ओरिएंटेड प्रोग्रामिंग सीखना और समझना आसान है।Object-oriented programming is easier to learn and understand.
  4. Dऑब्जेक्ट-ओरिएंटेड प्रोग्रामिंग में procedural programming से कम lines of code लगती हैं।Object-oriented programming requires fewer lines of code compared to procedural programming.

सही उत्तर / Answer: (A)

हल / Solution
OOP का सबसे बड़ा लाभ reusability और modularity है। Inheritance से पुराना code दोबारा काम आता है। हर class एक अलग इकाई होती है, इसलिए बड़े प्रोजेक्ट सँभालना आसान होता है। OOP तेज़ चलने की गारंटी नहीं देता; objects बनाने में कभी-कभी ज़्यादा समय और memory लगती है। इसे सीखना शुरुआत में कठिन माना जाता है। छोटे प्रोग्राम में code अक्सर ज़्यादा ही बनता है। इसलिए विकल्प 1 सही है।
The biggest advantage of OOP is reusability and modularity. Inheritance lets old code be used again, and each class is a separate unit, so large projects are easier to manage. OOP does not guarantee faster execution; creating objects can cost extra time and memory. It is often considered harder to learn at first. Small programs usually need more code, not less. So option 1 is correct.
प्रश्न 2उत्तर + हल
ऑब्जेक्ट-ओरिएंटेड प्रोग्रामिंग में objects के बारे में निम्नलिखित में से कौन सा कथन सत्य है?
Which of the following statements about objects in object-oriented programming is true?
  1. AObjects classes के instances होते हैं और वास्तविक दुनिया की इकाइयों को दर्शाते हैं।Objects are instances of classes and represent real-world entities.
  2. BObjects का उपयोग classes बनाने के blueprint तय करने में होता है।Objects are used to define blueprints for creating classes.
  3. CObjects संबंधित functions या procedures का संग्रह होते हैं।Objects are collections of related functions or procedures.
  4. DObjects classes से संपर्क करने के interfaces होते हैं।Objects are interfaces for interacting with classes.

सही उत्तर / Answer: (A)

हल / Solution
Object किसी class का instance होता है। Java में new keyword से class का object बनता है। हर object की अपनी state (data) और behaviour (methods) होते हैं, और यह अक्सर किसी वास्तविक चीज़, जैसे student या bank account, को दर्शाता है। विकल्प 2 उलटा है, क्योंकि blueprint तो class है। Object सिर्फ़ functions का संग्रह नहीं होता। Interface Java में एक अलग रचना है। इसलिए विकल्प 1 सही है।
An object is an instance of a class. In Java, the new keyword creates an object from a class. Each object has its own state (data) and behaviour (methods), and it often models a real-world thing such as a student or a bank account. Option 2 is reversed, because the class is the blueprint. An object is not just a set of functions. An interface is a separate Java construct. So option 1 is correct.
प्रश्न 3उत्तर + हल
ऑब्जेक्ट-ओरिएंटेड प्रोग्रामिंग में abstraction का उद्देश्य क्या है?
What is the purpose of abstraction in object-oriented programming?
  1. Aप्रोग्राम को छोटी, सँभालने योग्य इकाइयों में बाँटना।To break down a program into smaller, manageable units.
  2. Bobject का भीतरी ब्योरा छिपाना और केवल उसकी ज़रूरी विशेषताएँ दिखाना।To hide the internal details of an object and only show its essential features.
  3. Cएक ही नाम पर अलग-अलग implementation वाले कई methods बनाना।To define multiple methods with the same name but different implementations.
  4. Dsubclass में superclass के गुण और व्यवहार पाना।To acquire the properties and behaviors of a superclass in a subclass.

सही उत्तर / Answer: (B)

हल / Solution
Abstraction में user को सिर्फ़ वही दिखाया जाता है जो उसके काम का है, भीतर का ब्योरा छिपा रहता है। जैसे car चलाने वाला steering और brake इस्तेमाल करता है, engine कैसे चलता है यह जानना ज़रूरी नहीं। Java में abstract class और interface से abstraction मिलता है। विकल्प 1 modularization है। विकल्प 3 polymorphism है। विकल्प 4 inheritance है। इसलिए सही उत्तर विकल्प 2 है।
Abstraction shows the user only what matters and hides the internal details. A driver uses the steering and brakes without needing to know how the engine works inside. In Java, abstraction is achieved with abstract classes and interfaces. Option 1 describes modularization. Option 3 describes polymorphism through method overloading or overriding. Option 4 describes inheritance. So option 2 is correct.
प्रश्न 4उत्तर + हल
निम्नलिखित में से कौन ऑब्जेक्ट-ओरिएंटेड प्रोग्रामिंग का सिद्धांत नहीं है?
Which of the following is NOT a principle of object-oriented programming?
  1. AEncapsulation
  2. BAbstraction
  3. CStructured programming
  4. DPolymorphism

सही उत्तर / Answer: (C)

हल / Solution
ऑब्जेक्ट-ओरिएंटेड प्रोग्रामिंग के चार मुख्य सिद्धांत हैं — Encapsulation, Abstraction, Inheritance और Polymorphism। Encapsulation data और methods को एक साथ बाँधता है। Abstraction ज़रूरी बातें दिखाकर बाक़ी छिपाता है। Polymorphism एक नाम से कई रूप देता है। Structured programming अपने आप में एक अलग paradigm है, जो प्रोग्राम को functions और साफ़ control structures में बाँटता है। इसलिए यह OOP का सिद्धांत नहीं है।
Object-oriented programming has four main principles: Encapsulation, Abstraction, Inheritance and Polymorphism. Encapsulation binds data and methods together. Abstraction shows only the essential details. Polymorphism lets one name take many forms. Structured programming is a separate paradigm of its own, which organises a program into functions and clear control structures. So it is not a principle of OOP, and option 3 is the answer.
प्रश्न 5उत्तर + हल
ऑब्जेक्ट-ओरिएंटेड प्रोग्रामिंग में class क्या है?
What is a class in object-oriented programming?
  1. Aकिसी object का एक instance।An instance of an object.
  2. Bobjects बनाने का एक blueprint (खाका)।A blueprint for creating objects.
  3. Cसंबंधित functions या procedures का एक संग्रह।A collection of related functions or procedures.
  4. Dobjects से संपर्क करने का एक interface।An interface for interacting with objects.

सही उत्तर / Answer: (B)

हल / Solution
Class एक blueprint या खाका है। यह बताती है कि उससे बने हर object में कौन से fields (data) और कौन से methods होंगे। जैसे Car class से कई car objects बनाए जा सकते हैं। Instance तो object होता है, class नहीं, इसलिए विकल्प 1 उलटा है। Class में सिर्फ़ functions नहीं, data भी होता है। Interface Java में एक अलग रचना है। इसलिए सही उत्तर विकल्प 2 है।
A class is a blueprint. It defines which fields (data) and which methods every object created from it will have. For example, many car objects can be created from one Car class. An instance is an object, not a class, so option 1 is reversed. A class holds data as well as functions, so option 3 is incomplete. An interface is a separate construct in Java. So option 2 is correct.
प्रश्न 6उत्तर + हल
ऑब्जेक्ट-ओरिएंटेड प्रोग्रामिंग में निम्नलिखित में से कौन सी अवधारणा reusability (पुनः उपयोग) को बढ़ावा देती है?
Which of the following concepts promotes reusability in object-oriented programming?
  1. AEncapsulation
  2. BInheritance
  3. CPolymorphism
  4. DAbstraction

सही उत्तर / Answer: (B)

हल / Solution
Inheritance में एक नई class (subclass) किसी मौजूदा class (superclass) के fields और methods अपने आप पा लेती है। Java में यह extends keyword से होता है। इससे पहले से लिखा code दोबारा नहीं लिखना पड़ता, इसलिए इसे reusability का मुख्य साधन माना जाता है। Encapsulation data को छिपाकर सुरक्षित रखता है। Polymorphism एक नाम के कई रूप देता है। Abstraction ज़रूरी बातें दिखाकर बाक़ी छिपाता है। इसलिए उत्तर Inheritance है।
With inheritance, a new class (subclass) automatically gets the fields and methods of an existing class (superclass). In Java this is done with the extends keyword. Existing code does not have to be written again, so inheritance is treated as the main tool for reusability. Encapsulation protects data by hiding it. Polymorphism lets one name take many forms. Abstraction shows only essential details. So the answer is Inheritance.
प्रश्न 7उत्तर + हल
Object-Oriented Paradigm की मूल अवधारणा क्या है?
What is the fundamental concept of the Object-Oriented Paradigm?
  1. AProcedural programming
  2. BFunctions और proceduresFunctions and procedures
  3. CObjects और classesObjects and classes
  4. DConditional statements

सही उत्तर / Answer: (C)

हल / Solution
Object-Oriented Paradigm में प्रोग्राम objects के चारों ओर बनता है। class एक खाका है और object उस खाके से बनी असली इकाई। हर object अपना data और उस पर चलने वाले methods साथ रखता है। Encapsulation, inheritance और polymorphism इन्हीं पर टिके हैं। Procedural programming और functions या procedures अलग paradigm की पहचान हैं। Conditional statements हर भाषा में होते हैं। इसलिए सही उत्तर objects और classes है।
The Object-Oriented Paradigm builds programs around objects. A class is a blueprint, and an object is a real instance made from it. Each object keeps its data together with the methods that work on it. Encapsulation, inheritance and polymorphism all rest on these ideas. Procedural programming and functions or procedures belong to a different paradigm. Conditional statements exist in every language. So the answer is objects and classes.
प्रश्न 8उत्तर + हल
Software architecture के संदर्भ में "monolithic" का क्या अर्थ है?
In the context of software architecture, what does "monolithic" refer to?
  1. Aयह एक ऐसे अकेले, पूरे application को कहते हैं जिसके सभी घटक आपस में कसकर जुड़े होते हैं।It refers to a single, self-contained application where all components are tightly integrated.
  2. Bयह घटकों के बीच साफ़ interfaces वाले modular application architecture को कहते हैं।It refers to a modular application architecture with well-defined interfaces between components.
  3. Cयह स्वतंत्र रूप से deploy होने वाली services वाले distributed system architecture को कहते हैं।It refers to a distributed system architecture with independently deployable services.
  4. Dयह अत्यधिक scalable और fault-tolerant system design को कहते हैं।It refers to a highly scalable and fault-tolerant system design.

सही उत्तर / Answer: (A)

हल / Solution
Monolithic application एक ही इकाई के रूप में बनता और चलता है। इसका user interface, business logic और data access एक ही codebase में कसकर जुड़े रहते हैं। किसी छोटे बदलाव पर भी पूरा application दोबारा deploy करना पड़ता है। स्वतंत्र रूप से deploy होने वाली services microservices की पहचान हैं। साफ़ interfaces वाला modular ढाँचा और ऊँची scalability monolithic की विशेषता नहीं हैं। इसलिए विकल्प 1 सही है।
A monolithic application is built and deployed as one single unit. Its user interface, business logic and data access live in one codebase and are tightly coupled. Even a small change means redeploying the whole application. Independently deployable services describe microservices. A modular design with clean interfaces and high scalability are not what monolithic means. So option 1 is correct.
प्रश्न 9उत्तर + हल
निम्नलिखित में से कौन structured programming का एक मुख्य सिद्धांत है?
Which of the following is a key principle of structured programming?
  1. AEncapsulation
  2. BInheritance
  3. CModularization
  4. DPolymorphism

सही उत्तर / Answer: (C)

हल / Solution
Structured programming का मुख्य सिद्धांत modularization है। यानी बड़े प्रोग्राम को छोटे, अलग-अलग modules या functions में बाँटना। हर module एक काम करता है, इसलिए प्रोग्राम पढ़ने और सुधारने में आसान बनता है। Encapsulation, Inheritance और Polymorphism ऑब्जेक्ट-ओरिएंटेड प्रोग्रामिंग के सिद्धांत हैं। ये classes और objects से जुड़े हैं, structured programming से नहीं। इसलिए सही उत्तर Modularization है।
The key principle of structured programming is modularization. It means splitting a large program into small, separate modules or functions. Each module does one job, so the program is easier to read and fix. Encapsulation, Inheritance and Polymorphism are principles of object-oriented programming. They are tied to classes and objects, not to structured programming. So the correct answer is Modularization.
प्रश्न 10उत्तर + हल
Structured programming में modularization का मुख्य उद्देश्य क्या है?
In structured programming, what is the primary purpose of using modularization?
  1. Aप्रोग्राम की जटिलता बढ़ानाTo increase program complexity
  2. Bप्रोग्राम की पठनीयता घटानाTo decrease program readability
  3. Cप्रोग्राम को छोटी, सँभालने योग्य इकाइयों में बाँटनाTo divide a program into smaller, more manageable units
  4. Dfunctions या procedures की ज़रूरत ख़त्म करनाTo eliminate the need for functions or procedures

सही उत्तर / Answer: (C)

हल / Solution
Modularization का मतलब है बड़े प्रोग्राम को छोटे modules में बाँटना। हर module एक तय काम करता है। इससे प्रोग्राम समझना, जाँचना और बदलना आसान होता है। एक module की ग़लती ढूँढ़ने के लिए पूरा प्रोग्राम नहीं खंगालना पड़ता। modularization जटिलता घटाता है और पठनीयता बढ़ाता है। modules अक्सर functions या procedures के रूप में ही बनते हैं, इसलिए यह उनकी ज़रूरत ख़त्म नहीं करता। इसलिए विकल्प 3 सही है।
Modularization means dividing a large program into small modules, each doing one clear task. This makes the program easier to understand, test and change. To find a bug in one module, you do not have to search the whole program. Modularization reduces complexity and improves readability. Modules are usually written as functions or procedures, so it does not remove the need for them. So option 3 is correct.
आगे के 13 प्रश्नों के उत्तर और हल app मेंFliQi Question Bank — अभ्यास, हल और आपकी प्रगति
App खोलिए
प्रश्न 12उत्तर app में
निम्नलिखित में से कौन सा कथन structured programming paradigm का सबसे अच्छा वर्णन करता है?
Which of the following best describes the structured programming paradigm?
  1. Aयह प्रोग्राम को छोटे, सँभालने योग्य functions या procedures में बाँटने पर ज़ोर देता है।It emphasizes breaking down programs into small, manageable functions or procedures.
  2. Bयह प्रोग्राम की संरचना के लिए objects और classes के उपयोग पर ध्यान देता है।It focuses on the use of objects and classes to structure programs.
  3. Cयह goto जैसे unstructured control flow constructs के उपयोग पर ज़ोर देता है।It emphasizes the use of unstructured control flow constructs like goto statements.
  4. Dइसकी पहचान modularization और abstraction की कमी है।It is characterized by a lack of modularization and abstraction.
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 13उत्तर app में
ऑब्जेक्ट-ओरिएंटेड भाषाएँ किस एप्रोच का अनुसरण करती हैं?
Object-oriented languages follow which approach?
  1. Aटॉप-डाउन एप्रोचTop-down approach
  2. Bबॉटम-अप एप्रोचBottom-up approach
  3. CदोनोंBoth
  4. Dइनमें से कोई नहींNone of these
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 14उत्तर app में
प्रोसीजर-ओरिएंटेड भाषाएँ किस एप्रोच का अनुसरण करती हैं?
Procedure-oriented languages follow which approach?
  1. Aटॉप-डाउन एप्रोचTop-down approach
  2. Bबॉटम-अप एप्रोचBottom-up approach
  3. CदोनोंBoth
  4. Dइनमें से कोई नहींNone of these
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 15उत्तर app में
प्रोसीजर-ओरिएंटेड भाषा क्या है?
What is a procedure-oriented language?
  1. Aप्रोसीजर-ओरिएंटेड भाषा वह भाषा है जिसमें ऑब्जेक्ट-ओरिएंटेड प्रोग्रामिंग की सभी सुविधाएँ शामिल हैंA procedure-oriented Language is a language that incorporates all object-oriented programming features
  2. Bप्रोसीजर-ओरिएंटेड भाषा वह भाषा है जो encapsulation और object identity को support करती हैA procedure-oriented Language is a language that supports encapsulation and object identity
  3. Cप्रोसीजर-ओरिएंटेड भाषा वह भाषा है जिसमें निर्देशों की एक सूची लिखी जाती हैA procedure-oriented Language is a language that consists of writing a list of instructions
  4. Dप्रोसीजर-ओरिएंटेड भाषा वह भाषा है जो Inheritance और Dynamic binding को support नहीं करतीA procedure-oriented Language is a language that does not support Inheritance and Dynamic binding
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 16उत्तर app में
निम्नलिखित में से कौन सा एप्रोच इन्हेरिटेंस और डायनामिक बाइंडिंग के साथ-साथ सभी सुविधाओं का समर्थन करता है?
Which approach among the following supports all the features along with inheritance and dynamic binding?
  1. Aऑब्जेक्ट-बेस्ड एप्रोचObject-based approach
  2. Bऑब्जेक्ट-ओरिएंटेड एप्रोचObject-oriented approach
  3. Cये दोनोंBoth of these
  4. Dइनमें से कोई नहींNone of these
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 17उत्तर app में
कौन सी अवधारणा ऑब्जेक्ट-बेस्ड प्रोग्रामिंग भाषाओं द्वारा समर्थित नहीं है?
Which concept is not supported by object-based programming languages?
  1. AInheritance
  2. BDynamic binding
  3. Cकेवल AOnly A
  4. DA और B दोनोंBoth A and B
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 19उत्तर app में
ऑब्जेक्ट-ओरिएंटेड एप्रोच के बारे में कौन सा सत्य नहीं है?
Which is not true about the object-oriented approach?
  1. Aprocedure की बजाय data पर ज़ोर दिया जाता हैEmphasis is on data rather than procedure
  2. Bdata छिपा रहता है और बाहरी functions उसे access नहीं कर सकतेData is hidden and cannot be accessed by external functions
  3. Cobjects आपस में functions के ज़रिए संवाद करते हैंObjects communicate through functions
  4. Dयह abstract data को support करता है पर class को नहींIt supports abstract data but not the class
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 22उत्तर app में
जावा आंशिक रूप से OOP भाषा क्यों है?
Why is Java a partially OOP language?
  1. Aयह classes के बाहर code लिखने देती हैIt allows code to be written outside classes
  2. Bयह primitive data types की सामान्य घोषणा को support करती हैIt supports usual declaration of primitive data types
  3. Cयह pointers को support नहीं करतीIt does not support pointers
  4. Dयह सभी प्रकार की inheritance को support नहीं करतीIt doesn’t support all types of inheritance
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
OOPs Concepts - OOPs Vs Others के सभी 23 प्रश्न — उत्तर, हल और अभ्यास

FliQi Question Bank app में topic-वार अभ्यास, कठिनाई-स्तर और आपकी प्रगति।

  • पहला test मुफ़्त
  • हिंदी + English
  • जाँचे हुए उत्तर और हल

यह topic किन परीक्षाओं में आता है

Programmer Java के दूसरे topics

सभी topics