Dविभाजन और विजय सिद्धांत (Divide and conquer principle)Divide and conquer principle
सही उत्तर / Answer: (D)
हल / Solution
अपघटन का मतलब है एक बड़ी और जटिल समस्या को छोटे-छोटे, सँभालने लायक हिस्सों में तोड़ना। हर हिस्से को अलग से हल करके फिर पूरे सिस्टम में जोड़ा जाता है। इसी सोच को विभाजन और विजय (Divide and conquer) सिद्धांत कहते हैं। Structured design का top-down तरीक़ा इसी पर चलता है। Binary search और Quicksort इस सिद्धांत पर बने algorithm हैं, ख़ुद सिद्धांत नहीं। 'Group and merge' कोई मानक नाम नहीं है।
Decomposition means breaking a large, complex problem into smaller parts that are easier to handle. Each part is solved on its own, and the parts are then joined to form the full system. This idea is called the divide and conquer principle. Top-down structured design works this way. Binary search and Quicksort are algorithms that use this principle, but they are not the principle itself. 'Group and merge' is not a standard term.
प्रश्न 2उत्तर + हल
निम्नलिखित में से कौन-सा एक सिस्टम में मॉड्यूलों के बीच संबंध की मज़बूती को दर्शाता है?
Which among the following refers to the strength of the relationship between modules in a system?
Aयुग्मन (Coupling)Coupling
Bसंसंजन (Cohesion)Cohesion
Cनियंत्रण का विस्तार (Span of control)Span of control
Dमॉड्यूलरिटी और विभाजन (Modularity and partitioning)Modularity and partitioning
सही उत्तर / Answer: (A)
हल / Solution
युग्मन (Coupling) बताता है कि दो मॉड्यूल एक-दूसरे पर कितने निर्भर हैं, यानी उनके बीच संबंध कितना मज़बूत है। अच्छे design में coupling कम रखी जाती है। संसंजन (Cohesion) मॉड्यूल के भीतर के तत्वों का आपसी जुड़ाव है, मॉड्यूलों के बीच का नहीं। Span of control बताता है कि एक मॉड्यूल सीधे कितने मॉड्यूलों को बुलाता है। Modularity सिस्टम को हिस्सों में बाँटने की प्रक्रिया है, संबंध की मज़बूती का माप नहीं।
Coupling tells how much two modules depend on each other, that is, how strong the relationship between them is. A good design keeps coupling low. Cohesion is about how closely the elements inside one module are related, not the link between modules. Span of control is the number of modules directly called by a module. Modularity is the act of dividing a system into parts, not a measure of the strength of links.
प्रश्न 3उत्तर + हल
डिज़ाइन चरण में ध्यान देने का मुख्य क्षेत्र कौन-सा है?
In the design phase, which is the primary area of concern?
Aआर्किटेक्चर (Architecture)Architecture
Bडेटा (Data)Data
Cइंटरफ़ेस (Interface)Interface
Dउपरोक्त सभीAll of the above
सही उत्तर / Answer: (D)
हल / Solution
Pressman के अनुसार डिज़ाइन मॉडल के कई हिस्से होते हैं। डेटा डिज़ाइन में डेटा संरचनाएँ तय होती हैं। आर्किटेक्चर डिज़ाइन में बड़े घटक और उनके आपसी संबंध तय होते हैं। इंटरफ़ेस डिज़ाइन बताता है कि सिस्टम उपयोगकर्ता और दूसरे सिस्टमों से कैसे बात करेगा। चौथा हिस्सा घटक-स्तर (component level) डिज़ाइन है। दिए गए तीनों ही डिज़ाइन की मुख्य चिंताएँ हैं, इसलिए 'उपरोक्त सभी' सही है।
Pressman describes the design model as having several parts. Data design decides the data structures. Architectural design decides the major components and how they connect. Interface design decides how the software talks to users, hardware and other systems. Component-level design then fills in the details of each module. Architecture, data and interface are all primary concerns of the design phase, so 'All of the above' is the right answer.
प्रश्न 4उत्तर + हल
नई प्रणाली का मॉडल बनाने में निम्नलिखित में से कौन-सा/से उपकरण प्रयोग होता है/होते हैं?
Which of the following tools is (are) used in modelling the new system?
Aनिर्णय तालिका (Decision table)Decision table
Bडेटा डिक्शनरी (Data dictionary)Data dictionary
Cडेटा प्रवाह आरेख (Data flow diagram)Data flow diagrams
Dये सभीAll of these
सही उत्तर / Answer: (D)
हल / Solution
संरचित विश्लेषण में नई प्रणाली का मॉडल कई औज़ारों से मिलकर बनता है। DFD दिखाता है कि डेटा किन प्रक्रियाओं से होकर बहता है। डेटा डिक्शनरी हर डेटा प्रवाह, डेटा भंडार और डेटा तत्व का अर्थ और रूप लिखती है। निर्णय तालिका किसी प्रक्रिया के अंदर की शर्तें और उनसे होने वाले काम साफ़ दिखाती है। तीनों मिलकर नई प्रणाली का पूरा मॉडल बनाते हैं, इसलिए 'ये सभी' सही है।
Structured analysis models a new system with several tools that work together. The data flow diagram shows how data moves through processes and stores. The data dictionary defines the meaning and structure of every data flow, data store and data element in the DFD. A decision table shows the conditions and actions inside a process in a clear tabular form. All three are used to model the new system, so 'All of these' is correct.
प्रश्न 5उत्तर + हल
सॉफ़्टवेयर डिज़ाइन में किस प्रकार के अमूर्तन (abstraction) का उपयोग होता है?
What types of abstraction are used in software design?
Aनियंत्रण (control)Control
Bडेटा (data)Data
Cप्रक्रियात्मक (procedural)Procedural
Dउपरोक्त सभीAll of the above
सही उत्तर / Answer: (D)
हल / Solution
अमूर्तन (abstraction) का मतलब है बेकार ब्योरा छिपाकर सिर्फ़ ज़रूरी बात दिखाना। Pressman डिज़ाइन में तीन तरह का अमूर्तन बताते हैं। प्रक्रियात्मक अमूर्तन में निर्देशों के एक क्रम को एक नाम मिलता है, जैसे 'open door'। डेटा अमूर्तन में डेटा के समूह को एक नाम मिलता है, जैसे 'door' के गुण। नियंत्रण अमूर्तन में नियंत्रण का तरीका छिपा रहता है, जैसे synchronization। तीनों प्रयोग होते हैं, इसलिए 'उपरोक्त सभी' सही है।
Abstraction means hiding unneeded detail and showing only what matters at a given level. Pressman lists three kinds used in software design. Procedural abstraction names a sequence of instructions, such as 'open door'. Data abstraction names a collection of data, such as the attributes of a door. Control abstraction hides a control mechanism, such as a synchronization semaphore, without giving its inner details. All three are used, so 'All of the above' is correct.
प्रश्न 6उत्तर + हल
नियंत्रण प्रवाह आरेख (control flow diagram) —
Control flow diagrams are:
Aघटना-आधारित (event driven) सिस्टम का मॉडल बनाने के लिए ज़रूरी हैंneeded to model event driven systems
Bरीयल-टाइम सिस्टम का मॉडल बनाने में उपयोगी हैंuseful for modeling real-time systems
Cडेटा प्रवाह आरेखों की जगह प्रयोग होते हैंused in place of data flow diagrams
Da और b दोनोंBoth a and b
सही उत्तर / Answer: (D)
हल / Solution
Pressman के अनुसार कई सिस्टम डेटा से नहीं, घटनाओं (events) से चलते हैं — जैसे सेंसर का संकेत या बटन दबना। ऐसे event driven और real-time सिस्टम का मॉडल बनाने के लिए control flow diagram (CFD) चाहिए। इसलिए a और b दोनों सही हैं। पर CFD, DFD की जगह नहीं लेता। वह DFD के साथ बनाया जाता है और नियंत्रण वाला हिस्सा अलग से दिखाता है। इसलिए विकल्प c ग़लत है।
Many systems are driven by events rather than by data, for example a sensor signal or a key press. Pressman explains that such event-driven and real-time systems need a control flow diagram (CFD) to model how events and control signals move through the system. So statements a and b are both true. A CFD does not replace the DFD, though. It is drawn alongside the DFD to show the control part separately, so option c is wrong.
प्रश्न 7उत्तर + हल
किस प्रकार का DFD सिस्टम की प्रक्रियाओं और उसमें डेटा के प्रवाह पर ध्यान देता है?
Which type of DFD concentrates on the system processes and the flow of data in the system?
Aतार्किक DFD (Logical DFD)Logical DFD
Bभौतिक DFD (Physical DFD)Physical DFD
CA और B दोनोंBoth A and B
Dइनमें से कोई नहींNone of the above
सही उत्तर / Answer: (A)
हल / Solution
तार्किक DFD (logical DFD) यह बताता है कि सिस्टम क्या करता है — कौन-सी प्रक्रियाएँ हैं और उनके बीच डेटा कैसे बहता है। इसमें यह नहीं दिखाया जाता कि काम किस मशीन, व्यक्ति या फ़ाइल से होगा। भौतिक DFD (physical DFD) इसी का लागू होने वाला रूप है। वह हार्डवेयर, सॉफ़्टवेयर, फ़ाइलें और लोग दिखाता है। इसलिए प्रक्रिया और डेटा-प्रवाह पर ध्यान तार्किक DFD का है, 'दोनों' या 'कोई नहीं' सही नहीं।
A logical DFD shows what the system does: its business processes and how data flows between them. It ignores how the work is carried out, so no hardware, people, file types or programs appear in it. A physical DFD shows the implementation, that is, which devices, files, programs and people perform each step. So the DFD that concentrates on processes and the flow of data is the logical DFD, not both and not neither.
प्रश्न 8उत्तर + हल
निम्नलिखित में से किसे सिस्टम डिज़ाइन चरण का उपकरण (tool) नहीं माना जाता?
Which of the following is not considered a tool at the system design phase?
Aडेटा प्रवाह आरेख (Data-flow diagram)Data-flow diagram
सिस्टम विश्लेषण और डिज़ाइन में ऐसे औज़ार चाहिए जो प्रक्रिया, डेटा और तर्क दिखाएँ। DFD डेटा का बहाव दिखाता है। निर्णय तालिका शर्तें और उनसे होने वाले काम दिखाती है। सिस्टम फ़्लोचार्ट दिखाता है कि इनपुट, फ़ाइल, प्रोसेस और आउटपुट किस क्रम में चलते हैं। पाई चार्ट सिर्फ़ किसी पूरे के भाग प्रतिशत में दिखाता है। यह रिपोर्ट में आँकड़े दिखाने का ग्राफ़ है, डिज़ाइन का औज़ार नहीं।
System design needs tools that describe processes, data and logic. A data flow diagram shows how data moves. A decision table lays out conditions and the actions they trigger. A system flowchart shows the sequence of inputs, files, processing steps and outputs. A pie chart only shows how a whole is divided into percentage shares. It is a way to present figures in a report, not a system design tool.
प्रश्न 9उत्तर + हल
डिज़ाइन चरण के बाद तैयार किए गए दस्तावेज़ को ______ कहते हैं।
The document prepared after the design phase is known as ______.
सिस्टम विकास के हर चरण के अंत में एक दस्तावेज़ बनता है। विश्लेषण चरण के बाद आवश्यकताओं का दस्तावेज़ (system या requirements specification) बनता है। डिज़ाइन चरण के बाद design specification बनता है। इसमें मॉड्यूल, डेटा संरचना, इंटरफ़ेस और फ़ाइलों का पूरा ब्योरा होता है, ताकि प्रोग्रामर इसी से कोड लिख सके। performance specification सिर्फ़ गति और क्षमता जैसी शर्तें बताता है। इसलिए सही उत्तर design specification है।
Each phase of system development ends with a document. After analysis, the system (requirements) specification is prepared. After the design phase, the design specification is prepared. It describes the modules, data structures, interfaces, files and outputs in enough detail that programmers can write code from it. A performance specification only lists targets such as speed and capacity. So the document produced after design is the design specification.
प्रश्न 10उत्तर + हल
निम्नलिखित में से कौन मापता है कि एक मॉड्यूल के अंदर के तत्व आपस में कितनी मज़बूती से जुड़े हैं?
Which among the following measures how strongly the elements within a module are related?
Aयुग्मन (Coupling)Coupling
Bसंसंजन (Cohesion)Cohesion
Cसमुच्चयन (Aggregation)Aggregation
Dवंशानुक्रम (Inheritance)Inheritance
सही उत्तर / Answer: (B)
हल / Solution
संसंजन (cohesion) किसी एक मॉड्यूल के अंदर की एकजुटता है। यह बताता है कि मॉड्यूल के सारे तत्व एक ही काम के लिए कितनी मज़बूती से जुड़े हैं। युग्मन (coupling) अलग-अलग मॉड्यूलों के बीच की निर्भरता मापता है, अंदर की नहीं। अच्छे डिज़ाइन में ऊँचा cohesion और कम coupling चाहिए। Aggregation और inheritance object-oriented संबंध हैं, कोई माप नहीं। इसलिए सही उत्तर cohesion है।
Cohesion measures how strongly the elements inside one module belong together, that is, how focused the module is on a single task. Coupling measures something different: how dependent separate modules are on each other. Good structured design aims for high cohesion and low coupling. Aggregation and inheritance are object-oriented relationships between classes, not measures of module strength. So the measure described in the question is cohesion.
आगे के 20 प्रश्नों के उत्तर और हल app मेंFliQi Question Bank — अभ्यास, हल और आपकी प्रगति
कार्यात्मक संसंजन (functional cohesion) का क्या अर्थ है?
What is the meaning of functional cohesion?
Aसारे operations एक ही कार्य का हिस्सा हैं और एक ही procedure में रखे गए हैंOperations are part of a single functional task and are placed in the same procedure
Bएक ही डेटा तक पहुँचने वाले सारे operations एक class में परिभाषित हैंAll operations that access the same data are defined within one class
Cमॉड्यूल के बाहर से डेटा लेने वाले सारे operationsAll operations that access data from outside the module