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

Object Oriented Modeling using UML — प्रश्न और उत्तर

SAD · 39 जाँचे हुए (verified) प्रश्न

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

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

भाषा
प्रश्न 1उत्तर + हल
Behavior diagrams (व्यवहार आरेख) में क्या-क्या शामिल है?
Behavior diagrams include
  1. AUse case diagrams
  2. BState diagrams
  3. CActivity diagrams
  4. Dउपरोक्त सभीAll of these

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

हल / Solution
UML 2.x में आरेख दो समूहों में बँटे हैं, structure diagrams और behavior diagrams। Behavior diagrams सिस्टम का गतिशील बर्ताव दिखाते हैं। इस समूह में use case diagram, activity diagram और state machine diagram आते हैं। Sequence, communication और timing जैसे interaction diagrams भी इसी का हिस्सा हैं। दिए गए तीनों आरेख behavior diagrams हैं, इसलिए कोई एक विकल्प अधूरा है और उत्तर "उपरोक्त सभी" है।
In UML 2.x, diagrams are split into two groups: structure diagrams and behavior diagrams. Behavior diagrams show the dynamic behaviour of a system. This group has the use case diagram, activity diagram and state machine diagram. Interaction diagrams such as sequence, communication and timing are also part of it. All three given diagrams are behavior diagrams, so any single option is incomplete, and the answer is "All of these".
प्रश्न 2उत्तर + हल
______ आरेख समय-उन्मुख (time oriented) होता है।
Which ______ diagram is time oriented?
  1. ASequence
  2. BCollaboration
  3. CActivity
  4. Dइनमें से कोई नहींNone of the mentioned

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

हल / Solution
Sequence diagram में संदेश ऊपर से नीचे समय के क्रम में दिखाए जाते हैं। हर object की एक खड़ी lifeline होती है और नीचे जाने का मतलब है आगे का समय। इसलिए यह समय-उन्मुख आरेख है। Collaboration diagram में समय का क्रम सिर्फ़ संदेशों पर लिखे अंकों से पता चलता है, उसका ध्यान objects के आपसी जुड़ाव पर होता है। Activity diagram काम के बहाव और निर्णयों को दिखाता है। इसलिए उत्तर sequence है।
In a sequence diagram, messages are shown from top to bottom in time order. Each object has a vertical lifeline, and moving down means later time. So it is a time-oriented diagram. In a collaboration diagram, time order is known only from numbers on the messages, and its focus is on how objects are linked. An activity diagram shows the flow of work and decisions. So the answer is sequence.
प्रश्न 3उत्तर + हल
UML में class और object के नाम में क्या-क्या हो सकता है?
What can the names of UML classes and objects consist of?
  1. Aअंक (Digits)Digits
  2. Bअक्षर (Letters)Letters
  3. Cविराम चिह्न (Punctuation characters)Punctuation characters
  4. Dउपरोक्त सभीAll of these

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

हल / Solution
UML में class या object का नाम एक text string होता है। Booch की UML User Guide के अनुसार इसमें कितने भी अक्षर, अंक और कुछ विराम चिह्न हो सकते हैं। जैसे Customer, Sensor2 या java::awt::Rectangle। केवल colon (:) जैसे कुछ चिह्न अलग अर्थ के लिए बचाकर रखे जाते हैं, क्योंकि object के नाम में colon class का नाम अलग करता है। इसलिए कोई एक विकल्प अधूरा है और उत्तर "उपरोक्त सभी" है।
In UML the name of a class or object is a text string. As per Booch in the UML User Guide, it may have any number of letters, digits and certain punctuation marks, such as Customer, Sensor2 or java::awt::Rectangle. Only a few marks like the single colon are kept for a special use, because in an object name the colon separates the class name. So any single option is incomplete, and the answer is "All of these".
प्रश्न 4उत्तर + हल
Structural diagrams सिस्टम के स्थिर पहलुओं या संरचना को नहीं दर्शाते। यह कथन —
Structural diagrams do not capture the static aspects or structure of a system. This statement is
  1. Aसत्यTrue
  2. Bअसत्यFalse
  3. Cआंशिक रूप से सत्यPartially true
  4. Dआंशिक रूप से असत्यPartially false

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

हल / Solution
यह कथन असत्य है। Structural diagrams का काम ही सिस्टम के स्थिर पहलू और उसकी संरचना दिखाना है। Class, object, component, deployment, package और composite structure diagram इसी समूह में आते हैं। ये बताते हैं कि सिस्टम किन हिस्सों से बना है और वे कैसे जुड़े हैं। समय के साथ बदलता व्यवहार behavior diagrams दिखाते हैं। कथन पूरी तरह उलटा है, इसलिए "आंशिक" वाले विकल्प भी ठीक नहीं हैं।
The statement is false. The very job of structural diagrams is to show the static aspects and structure of a system. Class, object, component, deployment, package and composite structure diagrams are in this group. They show what parts the system is made of and how they are linked. Behaviour over time is shown by behavior diagrams. The statement is fully reversed, so the "partially" options are not right either.
प्रश्न 5उत्तर + हल
UML कोई programming language नहीं है, बल्कि एक दृश्य (visual) भाषा है। यह कथन —
UML is not a programming language; it is rather a visual language. This statement is
  1. Aसत्यTrue
  2. Bअसत्यFalse
  3. Cआंशिक रूप से सत्यPartially true
  4. Dकहा नहीं जा सकताCannot be determined

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

हल / Solution
यह कथन सत्य है। UML एक मानक दृश्य मॉडलिंग भाषा है, जिसे OMG ने बनाया है। इसमें आरेखों के ज़रिए सिस्टम की बनावट और व्यवहार दिखाया जाता है, ताकि डिज़ाइन सबकी समझ में आए। UML का code सीधे compile होकर नहीं चलता, जैसे Java या C++ का चलता है। कुछ tools आरेख से code का ढाँचा बना देते हैं, पर इससे UML programming language नहीं बन जाती। इसलिए बाक़ी विकल्प ग़लत हैं।
The statement is true. UML is a standard visual modelling language made by the OMG. It uses diagrams to show the structure and behaviour of a system, so that everyone can understand the design. UML is not compiled and run like Java or C++. Some tools can create a code skeleton from diagrams, but that does not make UML a programming language. So the other options are wrong.
प्रश्न 6उत्तर + हल
Sequence diagram ______ उन्मुख (oriented) होता है।
A sequence diagram is ______ oriented.
  1. ATime
  2. BClass
  3. CActivity
  4. Dइनमें से कोई नहींNone of these

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

हल / Solution
Sequence diagram समय-उन्मुख (time oriented) होता है। इसमें objects ऊपर एक पंक्ति में रहते हैं और हर object से नीचे एक lifeline जाती है। संदेश ऊपर से नीचे समय के क्रम में लिखे जाते हैं, यानी ऊपर का संदेश पहले और नीचे का बाद में भेजा जाता है। Collaboration या communication diagram objects के आपसी संगठन पर ध्यान देता है। Class और activity इस आरेख की मुख्य दिशा नहीं हैं। इसलिए उत्तर time है।
A sequence diagram is time oriented. Objects sit in a row at the top, and a lifeline runs down from each object. Messages are drawn from top to bottom in time order, so a message higher up is sent before one lower down. A collaboration or communication diagram focuses on how objects are organised. Class and activity are not the main focus of this diagram. So the answer is time.
प्रश्न 7उत्तर + हल
______ किसी मॉडल किए गए सिस्टम की बनावट का किसी एक निश्चित समय पर पूरा या आंशिक दृश्य दिखाता है।
______ shows a full or partial view of the structure of a modelled system at a specific time.
  1. ASequence diagram
  2. BObject diagram
  3. CCollaboration diagram
  4. DClass diagram

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

हल / Solution
Object diagram किसी एक पल पर सिस्टम का snapshot है। इसमें उस समय मौजूद objects, उनके attributes के मान और objects के बीच के links दिखते हैं। Class diagram भी बनावट दिखाता है, पर वह हर समय के लिए सामान्य ढाँचा है, किसी ख़ास पल का नहीं। Sequence और collaboration diagram बनावट नहीं, बल्कि objects के बीच संदेशों का व्यवहार दिखाते हैं। इसलिए उत्तर object diagram है।
An object diagram is a snapshot of the system at one moment. It shows the objects that exist at that time, the values of their attributes and the links between them. A class diagram also shows structure, but it is a general template for all times, not one moment. Sequence and collaboration diagrams show messages between objects, which is behaviour, not structure. So the answer is the object diagram.
प्रश्न 8उत्तर + हल
UML का ______ किसी सॉफ़्टवेयर सिस्टम का अवलोकन (overview) देता है।
The UML ______ gives an overview of a software system.
  1. AClass diagram
  2. BAttributes की सूचीList of attributes
  3. COperations की सूचीList of operations
  4. Dउपरोक्त सभीAll of the above

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

हल / Solution
Class diagram पूरे सिस्टम का एक नज़र में चित्र देता है। इसमें सभी classes, उनके attributes, operations और आपसी संबंध एक साथ दिखते हैं। इसी से पता चलता है कि सिस्टम किन हिस्सों से बना है। Attributes की सूची या operations की सूची सिर्फ़ किसी एक class का एक हिस्सा बताती है, पूरे सिस्टम का अवलोकन नहीं देती। ये दोनों class diagram के अंदर ही आते हैं। इसलिए "उपरोक्त सभी" भी ग़लत है।
A class diagram gives a one-look picture of the whole system. It shows all classes, their attributes, operations and links together. From it we learn what parts the system is made of. A list of attributes or a list of operations only tells one part of one class and gives no overview of the whole system. Both lists live inside the class diagram. So "All of the above" is also wrong.
प्रश्न 9उत्तर + हल
UML रियल-टाइम सिस्टम का वर्णन कर सकता है। यह कथन —
UML can describe real-time systems. This statement is
  1. Aसत्यTrue
  2. Bअसत्यFalse
  3. Cइनमें से कोई नहींNot any
  4. DदोनोंBoth

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

हल / Solution
यह कथन सत्य है। UML सामान्य उद्देश्य की मॉडलिंग भाषा है और रियल-टाइम सिस्टम का भी वर्णन कर सकती है। ऐसे सिस्टम घटनाओं पर तय समय में प्रतिक्रिया देते हैं। State machine diagram घटनाओं पर अवस्था का बदलना दिखाता है। Sequence और timing diagram संदेशों का क्रम और समय की सीमा दिखाते हैं। रियल-टाइम के लिए MARTE जैसी UML profile भी बनी है। इसलिए "असत्य" ग़लत है।
The statement is true. UML is a general-purpose modelling language and can describe real-time systems too. Such systems must react to events within a fixed time. A state machine diagram shows state changes on events. Sequence and timing diagrams show the order of messages and time limits. There is even a UML profile called MARTE made for real-time systems. So "False" is wrong.
प्रश्न 10उत्तर + हल
निम्नलिखित में से कौन-सा user और सॉफ़्टवेयर की अंतःक्रिया को दिखाता है, पर सॉफ़्टवेयर के आंतरिक कामकाज के बारे में कुछ नहीं बताता?
Which of the following represents the interaction of the user with the software but tells nothing about the internal working of the software?
  1. AUse case diagram
  2. BActivity diagram
  3. CClass diagram
  4. Dउपरोक्त सभीAll of the above

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

हल / Solution
Use case diagram user view का आरेख है। इसमें actors और use cases दिखते हैं, यानी कौन user सिस्टम से कौन-सा काम करवाता है। सिस्टम वह काम अंदर कैसे करता है, यह इसमें नहीं दिखता। इसलिए इसे black box नज़रिया कहते हैं। Activity diagram काम के अंदरूनी चरण और बहाव दिखाता है। Class diagram अंदर की बनावट दिखाता है। ये दोनों आंतरिक बातें बताते हैं, इसलिए "उपरोक्त सभी" भी ग़लत है।
A use case diagram belongs to the user view. It shows actors and use cases, that is, which user gets which task done by the system. It does not show how the system does that task inside, so it is a black box view. An activity diagram shows the inner steps and flow of work. A class diagram shows the inner structure. Both tell about internal working, so "All of the above" is also wrong.
आगे के 20 प्रश्नों के उत्तर और हल app मेंFliQi Question Bank — अभ्यास, हल और आपकी प्रगति
App खोलिए
प्रश्न 11उत्तर app में
निम्नलिखित में से कौन-सा UML आरेख सॉफ़्टवेयर के संरचनात्मक दृश्य (structural view) को दर्शाता है?
Which of the following UML diagrams represents the structural view of the software?
  1. AClass diagram
  2. BObject diagram
  3. Ca और b दोनोंBoth a and b
  4. Dइनमें से कोई नहींNone of the above
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 12उत्तर app में
Unified Modeling Language (UML) के माध्यम से सॉफ़्टवेयर के कितने views (दृश्य) दिखाए जा सकते हैं?
How many views of the software can be represented through the Unified Modeling Language (UML)?
  1. AचारFour
  2. BपाँचFive
  3. CनौNine
  4. Dइनमें से कोई नहींNone of the above
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 20उत्तर app में
Object क्या है?
What is an object?
  1. AObject किसी class का instance हैAn object is an instance of a class
  2. BObject वह ढाँचा है जिससे class बनाई जाती हैAn object is the template from which a class is made
  3. CObject किसी class का instance नहीं हैAn object is not an instance of a class
  4. Dउपरोक्त सभीAll of the mentioned
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 22उत्तर app में
संकल्पनात्मक स्तर (conceptual level) पर class diagram में क्या शामिल होना चाहिए?
At the conceptual level, class diagrams should include
  1. Aकेवल operationsoperations only
  2. Bकेवल attributesattributes only
  3. COperations और attributes दोनोंboth operations and attributes
  4. Dइनमें से कोई नहींnone of the mentioned
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 23उत्तर app में
जिन सिस्टमों में एक साझा डेटाबेस (shared database) के साथ अंतःक्रिया होती है, उन्हें क्या माना जा सकता है?
Systems that involve interaction with a shared database can be considered as
  1. ASoftware-basedsoftware-based
  2. BTransaction-basedtransaction-based
  3. CServer-basedserver-based
  4. DClient-basedclient-based
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 24उत्तर app में
UML को _________ का वर्णन करने के लिए डिज़ाइन किया गया था।
The UML was designed for describing _________
  1. AObject-oriented systemsobject-oriented systems
  2. BArchitectural designarchitectural design
  3. CSRS
  4. DObject-oriented systems और architectural design दोनोंboth object-oriented systems and architectural design
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 25उत्तर app में
किसी class की ज़िम्मेदारियाँ (class responsibilities) किससे परिभाषित होती हैं?
Class responsibilities are defined by
  1. Aकेवल उसके attributes सेits attributes only
  2. Bउसके collaborators सेits collaborators
  3. Cकेवल उसके operations सेits operations only
  4. Dउसके attributes और operations दोनों सेboth its attributes and operations
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 26उत्तर app में
निम्नलिखित में से कौन-सा UML आरेख नहीं है, जिसका उपयोग सिस्टम विश्लेषण मॉडल (analysis model) बनाने में होता है?
Which of the following is not a UML diagram used in creating a system analysis model?
  1. AActivity diagram
  2. BClass diagram
  3. CData flow diagram
  4. DState diagram
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 27उत्तर app में
सिस्टम के हार्डवेयर और सॉफ़्टवेयर तत्वों को मॉडल करने के लिए कौन-से UML नोटेशन इस्तेमाल किए जा सकते हैं?
Which UML notations can be used to model the hardware and software elements of a system?
  1. AActivity diagrams
  2. BClass diagrams
  3. CDeployment diagrams
  4. Dउपरोक्त सभीAll of the above
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 28उत्तर app में
Class किसी object का डिज़ाइन-विवरण (design description) होती है। Class से बनी ठोस इकाई को क्या कहा जाता है?
A class is the design description of an object. What is the concrete entity created from a class called?
  1. AInstance
  2. BObject
  3. CCase
  4. Da और b दोनोंBoth a and b
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 30उत्तर app में
निम्नलिखित में से कौन-सी वह व्यवस्था है जिसमें class hierarchy के अलग-अलग objects के पास एक ही नाम की अलग-अलग methods हो सकती हैं?
Which of the following is a mechanism that allows several objects in a class hierarchy to have different methods with the same name?
  1. AAggregation
  2. BPolymorphism
  3. CInheritance
  4. Dइनमें से कोई नहींNone of the above
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
Object Oriented Modeling using UML के सभी 39 प्रश्न — उत्तर, हल और अभ्यास

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

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

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

SAD के दूसरे topics

सभी topics