पहले 10 प्रश्नों के उत्तर और हल यहीं खुले हैं; बाक़ी 20 के उत्तर और हल FliQi Question Bank app में।
भाषा
प्रश्न 1उत्तर + हल
Behavior diagrams (व्यवहार आरेख) में क्या-क्या शामिल है?
Behavior diagrams include
AUse case diagrams
BState diagrams
CActivity diagrams
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?
ASequence
BCollaboration
CActivity
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?
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
Aसत्यTrue
Bअसत्यFalse
Cआंशिक रूप से सत्यPartially true
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
Aसत्यTrue
Bअसत्यFalse
Cआंशिक रूप से सत्यPartially true
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.
ATime
BClass
CActivity
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.
ASequence diagram
BObject diagram
CCollaboration diagram
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.
AClass diagram
BAttributes की सूचीList of attributes
COperations की सूचीList of operations
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
Aसत्यTrue
Bअसत्यFalse
Cइनमें से कोई नहींNot any
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?
AUse case diagram
BActivity diagram
CClass diagram
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 — अभ्यास, हल और आपकी प्रगति